User Tools

Site Tools


cangc4-firmware-en

Differences

This shows you the differences between two versions of the page.


cangc4-firmware-en [2024/08/11 18:04] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== CAN-GC4 Firmware ======
 +[[english|{{  rocrail-logo-35.png}}]]
 +[[english|Content]] -> [[english#hardware|Hardware]] -> [[english#merg_cbus|MERG CBUS]]
 +  * [[:can-gca1-en|CAN-GC1]] | [[:can-gca1e-en|CAN-GC1e]] | [[:can-gca2-en|CAN-GC2]] | [[:can-gc3-en|CAN-GC3]] | **[[:can-gc4-en|CAN-GC4]]** | [[:can-gca5-en|CAN-GC5]] | [[:can-gc6-en|CAN-GC6]] | [[:can-gc7-en|CAN-GC7]]
 +    * **[[:cangc4-firmware-en|Firmware]]**
 + \\
  
 +{{http://upload.wikimedia.org/wikipedia/commons/4/47/Puerto_serie_Rs232.png}}\\
 + \\
 +| Firmware version: **1.c** rev.: 489, resonator: **8MHz**, **PIC18F2585** | \\
 + \\
 +The firmware is based on CAN-GC2.\\
 +Boot mode is not supported.\\
 +
 + \\
 +
 +===== Copyrights =====
 +(c) [[http://www.merg.org.uk/|MERG]] (CBUS code.)\\
 +(c) [[http://www.piclist.com/|Bob Ammerman]] (Software UAR(no T) code.)\\
 +(c) [[http://www.rocrail.net|Rob Versluis, rocrail.net]]\\
 +
 +
 + \\
 +===== Features =====
 +  * Configuration over FLiM
 +  * Report RFID (short)events: OPC_DDES/OPC_ASOF¹
 +  * Report GCA93 Sensor events: OPC_ASON/OPC_ASOF
 +  * Positive ID list for generating events. ( For opening doors.;-) //RocHome// )
 +  * Watch dog in each RFID channel for reset in case of interfering signals.
 +¹) Optionally.\\
 +
 + \\
 +
 +===== IDs =====
 +| NMRA Manufacturer ID |  70 |
 +| Product ID |  4 |
 +| Default node number |  115 |
 +| Default CanID |  115 |\\
 +
 +
 + \\
 +=====Files=====
 +==== HEX ====
 +  * https://gitlab.com/rocrail/GCA/-/tree/master/cbus/cangc4/dist/default/production
 +
 +==== Sources ====
 +  * https://gitlab.com/rocrail/GCA/tree/master/cbus
 +
 + \\
 +
 +===== Node Variables =====
 +^ # ^ Description ^
 +|  1 | node configuration |
 +|  2 | CAN-ID |
 +| 3-27 | 5 x 40bit Allowed RFID |
 +
 + \\
 +
 +==== Node configuration byte ====
 +^ Bit ^ Default ^ Function ^ Remark ^
 +| 0x01 | off | Save RFIDs | Used for SoD; Use with care -> Old information is reported! |
 +| 0x02 | off | Check RFIDs | The incoming RFID must be in the list of allowed RFIDs for generating a CBUS event. |
 +| 0x04 | off | Release RFIDs | An event with OPC_ASOF is send after 2 seconds to release the related sensor. |
 +| 0x08 | off | Accessory events for RFIDs | For use in combination with check RFIDs to trigger an output on the CAN-GC2; No RFID event is generated. (Door opener.) |
 +
 + \\
 +
 +===== Node Events =====
 +^ Event# ^ Description ^ Variable ^
 +|  0-7 | RFID | not used |
 +|  8-15 | Block | not used |
 +|  16 | SOD | not used |
 +
 +
 +
 + \\
 + \\
 +===== ID-12 Data Format =====
 +{{:cbus:rfid-dataformat.png}}\\
 +
 + \\
 +
 +
 +===== Development Tools =====
 +  * MPLAB X v1.00
 +  * C18 v3.40
 +  * PICKit 3
 +  * **[[:pic-adap-en|PICKit3 Adapter]]**