User Tools

Site Tools


cbus-en

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cbus-en [2020/07/12 22:12] – [Sites] rjversluiscbus-en [2024/03/10 09:21] (current) rjversluis
Line 8: Line 8:
     * [[:cbus:socketcan-en|RPI-CAN MCP251x Interface (SocketCAN)]]     * [[:cbus:socketcan-en|RPI-CAN MCP251x Interface (SocketCAN)]]
     * [[:can-gca2-en|CAN-GC2]] 16 port programmable I/O     * [[:can-gca2-en|CAN-GC2]] 16 port programmable I/O
 +    * [[:can-gca2a-en|CAN-GC2a]] 16 port programmable I/O Nano based
     * [[:can-gc3-en|CAN-GC3]] DCC Command Station     * [[:can-gc3-en|CAN-GC3]] DCC Command Station
     * [[:can-gc4-en|CAN-GC4]] RFID Concentrator     * [[:can-gc4-en|CAN-GC4]] RFID Concentrator
Line 20: Line 21:
  
 ===== Setup ===== ===== Setup =====
-[[:can-gca1e-en|{{ :cbus:can-gc1e_pict01.jpg?200}}]][[:can-gca1-en|{{ :cbus:can-gc1_pict02.jpg?200}}]] +{{:cbus:rcan-setup-en.jpg?600}}
-{{:cbus:rcan-setup-en.png}}+
  
 ==== CAN-ID ==== ==== CAN-ID ====
Line 33: Line 33:
 | Serial | 230400 | **[[:can-gca1-en|CAN-GC1]]** | GCA | Uses **[[:cangc1-firmware-en#binary_response|binary responses]]** to improve through put. (Not MERG compatible.) | Invalid | | Serial | 230400 | **[[:can-gca1-en|CAN-GC1]]** | GCA | Uses **[[:cangc1-firmware-en#binary_response|binary responses]]** to improve through put. (Not MERG compatible.) | Invalid |
 | Serial | 115200 | **[[http://www.merg.org.uk/merg_resources/cbus.php|CANRS]]** | MERG | Deprecated; It is not fast enough to keep up with CBUS at full speed! | Invalid | | Serial | 115200 | **[[http://www.merg.org.uk/merg_resources/cbus.php|CANRS]]** | MERG | Deprecated; It is not fast enough to keep up with CBUS at full speed! | Invalid |
 +| Serial | 115200 | **[[:sprog-en#pi-sprog_3|Pi-Sprog]]** | Sprog |  |  |
 | SocketCAN | - | **[[:rocnet:pi01can-en|Pi01CAN]]** | GCA | **[[https://en.wikipedia.org/wiki/SocketCAN|SocketCAN]]** compatible devices. | Yes | | SocketCAN | - | **[[:rocnet:pi01can-en|Pi01CAN]]** | GCA | **[[https://en.wikipedia.org/wiki/SocketCAN|SocketCAN]]** compatible devices. | Yes |
 | LAWICEL / SLCAN | 115200...500000 | **[[http://www.fischl.de/usbtin/|USBTin]]** | Thomas Fischl | Tiny USB interface. | Yes | | LAWICEL / SLCAN | 115200...500000 | **[[http://www.fischl.de/usbtin/|USBTin]]** | Thomas Fischl | Tiny USB interface. | Yes |
Line 52: Line 53:
 The hostname and port for the TCP/IP interface.\\ The hostname and port for the TCP/IP interface.\\
 In case of SocketCAN the host name is the device name. Default **can0**\\ In case of SocketCAN the host name is the device name. Default **can0**\\
 + \\
 +====Protocol====
 +|  :!: Set to CBUS only if a CANGC1, CANGC1e and/or CANGC3 is connected. :!:  |
 +Enable CAN protocols.\\
 +Default is RCAN and CBUS parallel.\\
 +RCAN uses extended CAN frames, and is used by WIO modules with CAN interface.\\
 +//CBUS modules do not evaluate extended CAN frames, and WIO modules do not evaluate standard CAN frames.//\\
  
 + \\
 +====RCAN====
 +=== CS Node ID ===
 +Redirect all mobile commands with Node ID zero to the Command Station with this Node ID.\\
 +Mostly used in combination with __**[[:arduino:wioctrl-en|WIO-Control]]**__ and __**[[:gca-wioprog-en|WIO-Prog]]**__.\\
 + \\
  
-==== Short events ====+ 
 + \\ 
 +====CBUS==== 
 +=== Short events ===
 Use the short version of the accessory events; Event number only. (Recommended)\\ Use the short version of the accessory events; Event number only. (Recommended)\\
 The long events are based on node number and event number.\\ The long events are based on node number and event number.\\
  
  
-==== Fastclock ====+=== Fastclock ===
 Send **[[:cbus:can-gc7-firmware#opc|fast clock packets]]** on the CBUS.\\ Send **[[:cbus:can-gc7-firmware#opc|fast clock packets]]** on the CBUS.\\
 It is recommended to set this enabled in case of using a TCP/IP connection to prevent idle timeout disconnection.\\ It is recommended to set this enabled in case of using a TCP/IP connection to prevent idle timeout disconnection.\\
  
-==== Command Ack ====+=== Command Ack ===
 | :!: Use only in case of data loss in combination with WiFi. | | :!: Use only in case of data loss in combination with WiFi. |
 Activates the command acknowledgment handshake.\\ Activates the command acknowledgment handshake.\\
Line 72: Line 89:
  \\  \\
  
-==== FONFOF ==== +=== Heartbeat ===
-Use the OPC_DFON/OPC_DFOF instead of OPC_DFUN. (Not implemented by CANCMD.)\\ +
- +
-==== Heartbeat ====+
 Sends every second an event# 4712 OPC_ACON/OPC_ACOF on the bus to be able to check for hardware/cable problems.\\ Sends every second an event# 4712 OPC_ACON/OPC_ACOF on the bus to be able to check for hardware/cable problems.\\
 The LEDs on the modules should flash every second.\\ The LEDs on the modules should flash every second.\\
 A CAN-GC2 can be programmed on this event# to be able to add a LED mounted on the dashboard.\\ A CAN-GC2 can be programmed on this event# to be able to add a LED mounted on the dashboard.\\
  
 +  * **Note:** In order not to trigger unwanted SoD queries with the heartbeat, the selected address must be outside the address range defined by **[[#SoD|SoD]]**.
  
-==== SoD ==== +=== SoD === 
-"Start of Day" address for query all input states.\\+"Start of Day" address offset for the query of all input states.\\
 This must be programmed as event in all input nodes which should report.\\ This must be programmed as event in all input nodes which should report.\\
 +Alternatively, all GC2 modules can be set to SoD address++. The second field is the number of modules, and the third the sleep time (ms) between SoD queries.
 +This option avoids a CAN bus burst at SoD.\\
  
-==== Slot purge time ====+ 
 +=== Slot purge time ===
 CS timeout for updating DCC mobile decoders.\\ CS timeout for updating DCC mobile decoders.\\
 If a loco becomes idle before this time out a keep alive command is send to the CS.\\ If a loco becomes idle before this time out a keep alive command is send to the CS.\\
 :!: The hardware purgetime is 20 seconds, so this value should be **set to less then 20** to assure the slot is not purged during automatic runs!\\ :!: The hardware purgetime is 20 seconds, so this value should be **set to less then 20** to assure the slot is not purged during automatic runs!\\
  
-==== Decoder check ====+=== Decoder check ===
 Check if all __**[[:accdec-gen-en|Decoders]]**__ are online. (NET-ID=CAN-ID, Bus=Node Number)\\ Check if all __**[[:accdec-gen-en|Decoders]]**__ are online. (NET-ID=CAN-ID, Bus=Node Number)\\
 The default interval is 10 seconds.\\ The default interval is 10 seconds.\\
Line 98: Line 116:
  \\  \\
  
-==== CS Node ID ==== 
-Redirect all mobile commands with Node ID zero to the Command Station with this Node ID.\\ 
-Mostly used in combination with __**[[:arduino:wioctrl-en|WIO-Control]]**__ and __**[[:gca-wioprog-en|WIO-Prog]]**__.\\ 
- \\ 
 ===== FLAT Addressing ===== ===== FLAT Addressing =====
 CBUS addressing is **[[:addressing-en#flat_accessory_decoder_address_fada|FLAT]]**, __only the bus and address values are used.__\\ CBUS addressing is **[[:addressing-en#flat_accessory_decoder_address_fada|FLAT]]**, __only the bus and address values are used.__\\
Line 111: Line 125:
  \\  \\
  
-===== Resources ===== 
- 
-==== Kits & PCBs ==== 
-  * http://www.merg.org.uk/kits.php (Members only.) 
-  * http://www.phgiling.net/ **[[:english#merg_cbus|CBUS-GCA]]** 
  
cbus-en.1594584736.txt.gz · Last modified: 2020/07/12 22:12 by rjversluis