I have purchased a bluesmirf with hopes of running my phoenix without a cable using the serial_cp_h3 program from lynxmotion. I have modified the phoenix code with the following and have it working great with a cable attached.
ControlInput:
;SerialQuery
serout S_OUT,i9600,“Rd”] ; ‘Ready’ to recieve data now
serin S_OUT,i9600,200000,NoData,[str DualShock(0)\7]
CheckSum = DualShock(1) ^ DualShock(2) ^ DualShock(3) ^ |
DualShock(4) ^ DualShock(5) ^ DualShock(6)
I have then hooked up the bluetooth, set the baud for 9600 and used the following program to test the connection of the bluetooth ,this worked just fine.
temp var byte
enablehserial
sethserial h9600,h8databits,hnoparity,h1stopbits
main
hserin 1000,NODATA,[temp]
hserout [0,temp," = Dec:",dec temp]
GOTO MAIN
NODATA
hserout “WAITING FOR DATA”,13]
goto main
After this I again changed the phoenix code as followed and I get no response from my bot.
;HSerialQuery
Hserout"Rd"] ; ‘Ready’ to recieve data now
Hserin 200000,NoData,[str DualShock(0)\7]
CheckSum = DualShock(1) ^ DualShock(2) ^ DualShock(3) ^ |
DualShock(4) ^ DualShock(5) ^ DualShock(6)
I am new to this, so programming is not my strong point. I have looked over examples to get a idea of how this should work and thought I was doing good. But now its time to give up and ask for help “PLEASE”