Hi, I’m trying to use a htc desire phone to connect to a picaxe 28x2 via a bluesmirf reciever but it doesn’t seem to work.
septr increments by 1 with each send even when 10 bytes are sent.
The picaxe only seems to get one byte of rubbish, mainly 255.
I’ve tried various baud rates but no luck.
any ideas ?
thanks
Code below:
’ bluesmirf set at 9600
hsersetup B9600_8, %011 ’ septr increments by 1 with each send but picaxe receives rubbish
main:
debug
pause 500
if hserptr <> 0 then
pause 1000
gosub getScratchPad
’ hserptr = 0
’ hserinflag = 0
endif
goto main
end
'-------------------------------------------------------------
getScratchPad:
get 0, b0
get 1, b1
get 2, b2
get 3, b3
get 4, b4
get 5, b5
return