The bluetooth module I'm currently working with seems to convert binary to hex when I use serrout with it;
I.e. sending 255 is received at the pc terminal side as 323535 ('2' being 32, 5 being 35 ASCII)
How can I convert it back programatically? I am trying to send values between 0-255 to the hex terminal I'm using, which doesn't seem to have any Rx settings. I later want to use VB or Python to interpret the input so simply finding another terminal that can convert it won't cut it.
The Picaxe 18X code I am using is as follows:
Main:
setfreq M8
Serin 6,T9600_8,b1
Sertxd (#b1)
Serout 7,T9600_8,(#b1)
goto main
The 'Sertxd' command is recieved by the picaxe terminal as 255, just the serrout thats the issue.
Is there something I can do here?
I.e. sending 255 is received at the pc terminal side as 323535 ('2' being 32, 5 being 35 ASCII)
How can I convert it back programatically? I am trying to send values between 0-255 to the hex terminal I'm using, which doesn't seem to have any Rx settings. I later want to use VB or Python to interpret the input so simply finding another terminal that can convert it won't cut it.
The Picaxe 18X code I am using is as follows:
Main:
setfreq M8
Serin 6,T9600_8,b1
Sertxd (#b1)
Serout 7,T9600_8,(#b1)
goto main
The 'Sertxd' command is recieved by the picaxe terminal as 255, just the serrout thats the issue.
Is there something I can do here?