Byte vs Byte

Home and building automation using flowstone
Post Reply
User avatar
JB_AU
Posts: 171
Joined: Tue May 21, 2013 11:01 pm

Byte vs Byte

Post by JB_AU »

How do i send 1byte aka 8bits through the comport module?
In my model i have a string i.e. 01001101 , which to me is 8 bits or 1 byte :shock:
If i send this, by firstly choosing the manual override, the log shows 8 bytes sent :?
I think because it is a string, it sends 0.. 1.. 0.. 0.. 1.. 1.. 0.. 1.. , should i be using hex values as i don't see a way for byte?

Next question :roll:

I would like my override switch to send a character to the port '^' (TRUE) or '$' (FALSE) depending on its state, i can then have the mcu flip between sending or receiving states.

:o Exactly 1 year ago i asked for help :o
Attachments
Bt_Present.fsm
(157.28 KiB) Downloaded 4227 times
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

Albert Einstein
User avatar
Walter Sommerfeld
Posts: 250
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany
Contact:

Re: Byte vs Byte

Post by Walter Sommerfeld »

Hi JB,

YUP i would choose Hex mode (use Binary 2 Hex and vice versa)...

send a character to the port '^' (TRUE) or '$' (FALSE) depending on its state

Here i would send a Hex 'Packet' like FF00 and FF01 or similar to switch into manual override!
Then decode/detect it on the receiver side...
Post Reply