WIP
This commit is contained in:
34
Software/Protocol.txt
Normal file
34
Software/Protocol.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
MeyCan: PROTOCOL
|
||||
|
||||
|
||||
|
||||
ArbitartionID:
|
||||
|<-- 13 bits -->| |<-- 16 bits -->|
|
||||
COMMAND DEVICE_ID
|
||||
ABC 0x14 6A
|
||||
|
||||
|
||||
COMMAND: The Command or data type transfered. -> 2^11 = 2048 Package-Types
|
||||
DEVICE_ID: A unique id for the device within the CAN Network (Home) -> 2^18 bit = 65.536 devices allowed
|
||||
|
||||
Packages
|
||||
---------------------------------
|
||||
0xF00: HELLO->ADOPT
|
||||
Payload:
|
||||
2 bytes | DeviceId -> DeviceId Explicit
|
||||
2 bytes | Byte -> Software-Version (1.0)
|
||||
2 bytes | Byte -> Hw Version (4.0
|
||||
|
||||
0x050: Input Switch Triggered
|
||||
-> Broadcast
|
||||
---------------------------------
|
||||
Payload:
|
||||
1 byte| PinId -> Id of the pin of the local board.
|
||||
1 byte| State -> 1 for Switched, 0 for Unswitched
|
||||
|
||||
0x055: Command Set Switch
|
||||
-> Broadcast
|
||||
---------------------------------
|
||||
2 bytes | TargetDeviceId -> The id of the board
|
||||
1 byte | PinId -> Idof the pin of the board
|
||||
1 byte | state -> 1 to swtich on, 0 to switch off
|
||||
Reference in New Issue
Block a user