User Tools

Site Tools


cangc8-firmware-en

Differences

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


cangc8-firmware-en [2025/03/01 01:55] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== CAN-GC8 Firmware ======
 +[[english|{{  rocrail-logo-35.png}}]]
 +[[english|Content]] -> [[english#hardware|Hardware]] -> [[english#merg_cbus|mergCBUS]]
 +  * [[:cbus:overview-en|CAN-GC Overview]]
 +  * [[:can-gca1-en|CAN-GC1]] | [[:can-gca1ev2-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]] | **[[:can-gc8-en|CAN-GC8]]**
 +    * **[[:cangc8-firmware-en|Firmware]]**
  
 + \\
 +
 +
 +
 +
 +
 + \\
 +=====Packet=====
 +The OPC_ACDAT opcode is used to send text blocks to the CAN-GC8.\\
 +The text must be terminated with a zero character.\\
 +A new line can be set with the pipe character: '|'. See **[[:text-en#text_format|Text format]]**.\\
 +
 +====Format====
 +<code>
 +<0xF6> <ADDRhi> <ADDRlo> <Flags (block#)> <Txt0> <Txt1> <Txt2> <Txt3>
 +</code>
 +
 +====Example Trace====
 +<code>
 +OText    0171 text event [-][Good |morning %USER%]
 +OText    0081 try to resolve [USER]
 +OText    0287 send text [Good |morning rob]
 +OCBUS    2132 set display 1:1 to "Good |morning rob"
 +OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=0 text=[Good]
 +OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=1 text=[ |mo]
 +OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=2 text=[rnin]
 +OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=3 text=[g ro]
 +OCBUS    0170 OPC_ACDAT(0xF6) address=1 display=1 line=0 nr=4 text=[b   ]
 +</code>
 +{{:cbus:cangc8-gc2-3.jpg|LED Backlight is missing...}}
 + \\
 +
 +=====Files=====
 +==== Sources ====
 +  * https://gitlab.com/rocrail/GCA/tree/master/cbus
 +
 +==== HEX ====
 +  * https://gitlab.com/rocrail/GCA/-/tree/master/cbus/cangc8/dist/default/production
 +
 +
 + \\
 +
 +=====Links=====
 +  * http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
 +
 + \\
 +=====I/O=====
 +^ Display 1 ^^
 +| SI | RA0 |
 +| CLK | RA1 |
 +| CSB | RA3 |
 +| RS | RA4 | \\
 + \\
 +^ Display 2 ^^
 +| SI | RC0 |
 +| CLK | RC1 |
 +| CSB | RC2 |
 +| RS | RC3 | \\
 + \\
 +
 +
 + \\
 +
 +===== Node Variables =====
 +^ # ^ Description ^
 +|  1 | node configuration; Not used. |
 +|  2 | CAN-ID |
 +| 3,4 | Display configuration |
 +
 + \\
 +
 +=== Display configuration byte ===
 +^ Bit ^  Function  ^ Remark ^
 +|  0-3 | Contrast |  |
 +|  4 | First line double high |  |
 +
 + \\
 +
 +===== Node Events =====
 +^ Event# ^ Description ^ Variable ^
 +|  0,1 | Display 1,2 | not used |
 +
 +
 +
 + \\
 +=====SPI=====
 +
 +{{http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/SPI_timing_diagram2.svg/400px-SPI_timing_diagram2.svg.png}}\\