cangc1-firmware-en
Differences
This shows you the differences between two versions of the page.
— | cangc1-firmware-en [2023/12/20 21:58] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== CAN-GC1 Firmware ====== | ||
+ | [[english|{{ | ||
+ | [[english|Content]] -> [[english# | ||
+ | * [[: | ||
+ | * **[[: | ||
+ | * **[[: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | | :!: The PC interface is __not CBUS compatible__ and works with Rocrail only. | \\ | ||
+ | |||
+ | ===== Copyrights ===== | ||
+ | (c) [[http:// | ||
+ | |||
+ | ===== HEX ===== | ||
+ | This firmware needs a Rocrail [[: | ||
+ | Resonator: **8MHz**, Rocrail 2931+. | ||
+ | * https:// | ||
+ | |||
+ | ====Note==== | ||
+ | Most RS232 legacy ports cannot handle baud rates above 115200.\\ | ||
+ | To use the needed 230400 baud rate an **[[: | ||
+ | The CAN-GC1 can be equipped with an USB Sub-D type connector. | ||
+ | |||
+ | ===== Sources ===== | ||
+ | Compile with the "Case sensitive" | ||
+ | * https:// | ||
+ | \\ | ||
+ | |||
+ | =====Binary Response===== | ||
+ | The official CBUS protocol is in ASCII which doubles the number of bytes.\\ | ||
+ | To prevent frame loss the response from the CAN-GC1 to Rocrail has been made binary.\\ | ||
+ | An ASCII response starts with " | ||
+ | |||
+ | ====Frame ASCII format==== | ||
+ | < | ||
+ | : | ||
+ | :S -> S=Standard X=extended start CAN Frame | ||
+ | hhhh -> SIDH< | ||
+ | Nd -> N=normal R=RTR | ||
+ | 0d -> OPC 2 byte HEXA | ||
+ | 1d-7d -> data 2 byte HEXA | ||
+ | ; -> end of frame | ||
+ | </ | ||
+ | |||
+ | ====Frame Binary format==== | ||
+ | < | ||
+ | : | ||
+ | :s -> s=Standard start CAN Frame | ||
+ | hh -> SIDH< | ||
+ | Nd -> N=normal R=RTR 1 byte | ||
+ | 0d -> OPC 1 byte | ||
+ | 1d-7d -> data 1 byte | ||
+ | ; -> end of frame (should be a checksum in future versions) | ||
+ | </ | ||
+ | Applications should read up to the OPC to determine the data length.\\ | ||
+ | |||
+ | |||
+ | ===== Development Tools ===== | ||
+ | * MPLAB X v1.00 | ||
+ | * mpasm v5.43 | ||
+ | * PICKit 3 | ||
+ | * **[[: | ||