I have been using the bluetooth display on my mobile devices for a while now and it works well. Have had a niggling issue, it's trivial but I thought I'd ask after seen this old thread.
Have had the issue on multiple chips, I encountered it last on a battery charging circuit, thinking it might be due to using a very old 20M chip i tried it on an 08M2 and same issue came up.
here is the test program on 08M2
#picaxe 08M2
setfreq M8
pause 14000 'allow time for pairing
main:
for b1=1 to 5
Serout C.0,T9600_8,("Batt Voltage ", #b1,CR, LF)
pause 1000
next b1
pause 10000
goto main
and here is the output from hyperterminal,
Øtt Voltage 1
Batt Voltage 2
Batt Voltage 3
Batt Voltage 4
Batt Voltage 5
Batt Voltage 1
Batt Voltage 2
Batt Voltage 3
Batt Voltage 4
Batt Voltage 5
Batt Voltage 1
Batt Voltage 2
Batt Voltage 3
Batt Voltage 4
Batt Voltage 5
notice the first line,
Øtt Voltage 1
it should read Batt Voltage 1 but for some reason it mangles the first two characters.
I have tried sending a blank line in advance but it still gets mangled. In the case of the attached program after the initial garbling it runs clean.
I tried it on my windows phone and on an android device and the issue is consistent across devices.
I have not tried it with hserout yet, will give that a try eventually.
any ideas?
thanks in advance.
Have had the issue on multiple chips, I encountered it last on a battery charging circuit, thinking it might be due to using a very old 20M chip i tried it on an 08M2 and same issue came up.
here is the test program on 08M2
#picaxe 08M2
setfreq M8
pause 14000 'allow time for pairing
main:
for b1=1 to 5
Serout C.0,T9600_8,("Batt Voltage ", #b1,CR, LF)
pause 1000
next b1
pause 10000
goto main
and here is the output from hyperterminal,
Øtt Voltage 1
Batt Voltage 2
Batt Voltage 3
Batt Voltage 4
Batt Voltage 5
Batt Voltage 1
Batt Voltage 2
Batt Voltage 3
Batt Voltage 4
Batt Voltage 5
Batt Voltage 1
Batt Voltage 2
Batt Voltage 3
Batt Voltage 4
Batt Voltage 5
notice the first line,
Øtt Voltage 1
it should read Batt Voltage 1 but for some reason it mangles the first two characters.
I have tried sending a blank line in advance but it still gets mangled. In the case of the attached program after the initial garbling it runs clean.
I tried it on my windows phone and on an android device and the issue is consistent across devices.
I have not tried it with hserout yet, will give that a try eventually.
any ideas?
thanks in advance.