Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onos need to have shorter radio messages,to improve long range comunication #76

Open
onosAdmin opened this issue Jan 27, 2018 · 0 comments

Comments

@onosAdmin
Copy link
Collaborator

Onos need to have shorter radio messages,to improve long range comunication.
So the new messages will be:

Standard part to all messages :

"[S_" 3 byte for the start of the message
2 bytes for the address of the node expressed in hex format max number is FF --> 255
1 byte for the type of msg expressed in ascii character
1 byte for the message id (a progressive number from ascii 0 to 9 to identify the message, first time will be 0 next 1 and so on)
"#_]" 3 byte for the end of the message

The message to change the value of a generic digital object node will be:

3 bytes with "[S_" for the start of the message
2 bytes for the address of the node expressed in hex format max number is FF --> 255
1 byte containing "d" for the type of msg , set digital object
2 bytes for the number of the object to change expressed in hexadecimal(for first object of the node it will be "0")
1 byte to tell arduino the value (0 or 1 ) to set the object
1 byte for the message id ,a progressive binary number from 0 to 255
3 bytes with "#]" to close the message
example: [S_01d001x
#] to set the first object (00) of the node to 1, (x is the id value)
[S_01d000x_#] to set the first object (00) of the node to 0, (x is the id value)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant