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.
Command UART hexadecimal
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Command UART hexadecimal
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.matrixtsl.com/wikiv7/index.p ... ccfa4c5efc
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.matrixtsl.com/wikiv7/index.p ... ccfa4c5efc
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel