Skip to content

Library for parsing commands for communication of MCUs [Project abandoned]

Notifications You must be signed in to change notification settings

nikto-b/mcuterminaltranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcuterminaltranslator

Library for parsing commands for communication of MCUs

Package structure:

For multidevice systems:

<type+len, 1 byte><checksum, 2 bytes><payload, len + 1 bytes>

For 1-1 systems:

<type+len, 1 byte><checksum, 2 bytes><payload, len bytes>

Payload structure:

For multidevice systems:

<device id, 1 byte><data, len bytes>

For 1-1 systems:

<data, len bytes>

max len: 63 bytes

Types:

command: 0b01;
var: 0b10;
array: 0b11;

Structure of var payload:

<id, 1 byte><var bytes>

Structure of array payload:

<id, 1 byte><array bytes>

Structure of zero byte:

ttllllll

where: t - type bits; l - len bits
id of array or variable will be at first byte of payload Max len of cmd: 1 byte(255 commands)
Min len of array/variable: 2 bytes

Structure of checksum generation:

sum of all bytes + 1

About

Library for parsing commands for communication of MCUs [Project abandoned]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published