cbus-en
Differences
This shows you the differences between two versions of the page.
— | cbus-en [2024/10/14 16:36] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== CANBUS ====== | ||
+ | [[: | ||
+ | [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== Setup ===== | ||
+ | {{: | ||
+ | |||
+ | ==== CAN-ID ==== | ||
+ | The CAN-ID used for the CAN Interface like CANGC1(e) and SocketCAN.\\ | ||
+ | The default is 1 and is the best choice for all interface types.\\ | ||
+ | |||
+ | |||
+ | ==== Sub-Library ==== | ||
+ | The connected CAN nterface: | ||
+ | ^ Type ^ BPS ^ Kit code ^ Manufacturer ^ Remark ^ Extended Frames ^ | ||
+ | | TCP/IP | 10/100 MBPS | **[[: | ||
+ | | USB | 500000 | **[[http:// | ||
+ | | Serial | 230400 | **[[: | ||
+ | | Serial | 115200 | **[[http:// | ||
+ | | Serial | 115200 | **[[: | ||
+ | | SocketCAN | - | **[[: | ||
+ | | LAWICEL / SLCAN | 115200...500000 | **[[http:// | ||
+ | | TCP/IP | WiFi | **[[: | ||
+ | | USB | 115200...500000 | **[[: | ||
+ | **Note:** //Extended frame support is needed in case WIO-02 and/or WIO-Prog2 are on the same CAN bus.//\\ | ||
+ | \\ | ||
+ | |||
+ | |||
+ | ====DTR==== | ||
+ | Determine the serial DTR level on startup. None is default.\\ | ||
+ | Some Windows device driver do not set this signal accordantly and must be set to " | ||
+ | |||
+ | |||
+ | ====Binary==== | ||
+ | Only in combination with Sub-Library TCP and WIO-CAN.\\ | ||
+ | \\ | ||
+ | ==== Device ==== | ||
+ | The serial device used for the CAN interface.\\ | ||
+ | ^ Kit code ^ Windows ^ Linux ^ Remark ^ | ||
+ | | CANUSB | COM5...COMn | / | ||
+ | | CAN-GC1, CANRS | COM1...COM4 | / | ||
+ | |||
+ | ==== Host/Port ==== | ||
+ | The hostname and port for the TCP/IP interface.\\ | ||
+ | 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 __**[[: | ||
+ | \\ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | ====CBUS==== | ||
+ | === Short events === | ||
+ | Use the short version of the accessory events; Event number only. (Recommended)\\ | ||
+ | The long events are based on node number and event number.\\ | ||
+ | |||
+ | |||
+ | === Fastclock === | ||
+ | Send **[[: | ||
+ | It is recommended to set this enabled in case of using a TCP/IP connection to prevent idle timeout disconnection.\\ | ||
+ | |||
+ | === Command Ack === | ||
+ | | :!: Use only in case of data loss in combination with WiFi. | | ||
+ | Activates the command acknowledgment handshake.\\ | ||
+ | A next command can only be send if the interface did acknowledged the previous command.\\ | ||
+ | This handshake prevents loss of commands due buffer overflow. (10/100MBit → 125kBit)\\ | ||
+ | Other manufacturers, | ||
+ | | Only the **[[: | ||
+ | \\ | ||
+ | |||
+ | === Heartbeat === | ||
+ | Sends every second an event# 4712 OPC_ACON/ | ||
+ | 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.\\ | ||
+ | |||
+ | * **Note:** In order not to trigger unwanted SoD queries with the heartbeat, the selected address must be outside the address range defined by **[[# | ||
+ | |||
+ | === SoD === | ||
+ | "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.\\ | ||
+ | Alternatively, | ||
+ | This option avoids a CAN bus burst at SoD.\\ | ||
+ | |||
+ | |||
+ | === Slot purge time === | ||
+ | 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.\\ | ||
+ | :!: 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 === | ||
+ | Check if all __**[[: | ||
+ | The default interval is 10 seconds.\\ | ||
+ | A power off will be issued if a decoder is not responding. (Lost node.)\\ | ||
+ | Loco sessions will be invalidated if the GC3(CANCMD) was lost.\\ | ||
+ | | If a CAN-ID is found, which is not in the decoder list, it will be automatically added for checking. (It will be saved in the accessory decoder table, flagged as generated.) | | ||
+ | \\ | ||
+ | |||
+ | ===== FLAT Addressing ===== | ||
+ | CBUS addressing is **[[: | ||
+ | ^ Rocrail ^ CBUS ^ Range ^Remark ^ | ||
+ | | - | CAN ID | 0...255| Unique number within a CAN segment to be used in the CAN transport layer.\\ //This is the low part of the CAN **[[http:// | ||
+ | | Node-ID| Node-ID | 0...65535 | Used for **[[: | ||
+ | | Address | Event number | 0...65535 | ||
+ | | Gate | Added to the address of output objects. | 0,1 | This is needed for signal pattern support. | \\ | ||
+ | \\ | ||
+ | |||