Page 1 of 1

Command UART hexadecimal

Posted: Tue Nov 15, 2016 7:22 pm
by cb28
Bonjour,

Je demande comment envoyer et recevoir des commandes via UART en hexadécimal ?
Merci d'avance pour vous réponse.

Google translation :

Hello,

I ask how to send and receive commands via UART in hexadecimal?
Thank you in advance for your reply.

Re: Command UART hexadecimal

Posted: Tue Nov 15, 2016 8:18 pm
by Benj
Hello,

I think this video will help explain things if you need to do things like parse/generate ASCII hex strings.

https://www.youtube.com/watch?v=gavpYt-SqcY&t=127s

For just hex values as bytes they can simply be represented as decimal 0 to 255 or hex 0x00 to 0xFF or binary 0b00000000 to 0b11111111 they are all one in the same on the micro and Flowcode.

Some examples here.

http://www.flowcode.co.uk/wikiv7/index.p ... ccfa4c5efc

Re: Command UART hexadecimal

Posted: Tue Nov 15, 2016 10:16 pm
by cb28
Thank you very much for the links. :D