This commit is contained in:
Meydin87
2022-09-04 07:22:05 +02:00
parent f9ce4589b9
commit 204d7580c3
10 changed files with 1607 additions and 0 deletions

34
Software/Protocol.txt Normal file
View 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