User Tools

Site Tools


can-gca1e-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
can-gca1e-en [2020/02/01 10:39] rjversluiscan-gca1e-en [2022/01/29 16:53] (current) – [CAN-GC1e V2 CANBUS-Ethernet Interface] phg
Line 1: Line 1:
-====== CAN-GC1e CANBUS-Ethernet Interface with 3 Amp Power supply======+====== CAN-GC1e CANBUS-Ethernet Interface with 3Amp power supply======
 [[english|{{  rocrail-logo-35.png}}]] [[english|{{  rocrail-logo-35.png}}]]
 [[:english|Content]] -> [[:hardware-en|Hardware]] -> [[:hardware-en#gca-cbus|CANBUS]] [[:english|Content]] -> [[:hardware-en|Hardware]] -> [[:hardware-en#gca-cbus|CANBUS]]
   * [[:cbus:overview-en|CAN-GC Overview]]   * [[:cbus:overview-en|CAN-GC Overview]]
-  * [[:cbus-en|CBUS Rocrail Setup]]+  * [[:cbus-en|CANBUS Rocrail Setup]]
   * [[:can-gca1-en|CAN-GC1]] | **[[:can-gca1e-en|CAN-GC1e]]** | [[:can-gcln-en|CAN-GCLN]] | [[: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]]   * [[:can-gca1-en|CAN-GC1]] | **[[:can-gca1e-en|CAN-GC1e]]** | [[:can-gcln-en|CAN-GCLN]] | [[: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]]
     * [[:cangc1e-firmware-en|Firmware]]     * [[:cangc1e-firmware-en|Firmware]]
Line 12: Line 12:
  \\  \\
  
-=====Firmware Copyright===== 
-Copyright(c) MERG and Rocrail.\\ 
-Commercial use is prohibited.\\ 
- 
- \\ 
  
 ===== The CANBUS Ethernet interface ===== ===== The CANBUS Ethernet interface =====
Line 23: Line 18:
   * The circuit is mounted on a professional, double sided PCB with silk mask.   * The circuit is mounted on a professional, double sided PCB with silk mask.
   * DB9 connectors are used because of their toughness.   * DB9 connectors are used because of their toughness.
-  * The DB9 connectors are supplying 12V power for the CBUS network. +  * The DB9 connectors are supplying 12V power for the CANBUS network. 
   * This computer interface has, like all other CAN-GCA modules,  a jumper for terminating the CAN data line with 120Ω.    * This computer interface has, like all other CAN-GCA modules,  a jumper for terminating the CAN data line with 120Ω. 
   * The board features an ICSP connector for (re-)programming the CPU.   * The board features an ICSP connector for (re-)programming the CPU.
Line 38: Line 33:
   * Connection timeout after 100 seconds idle.   * Connection timeout after 100 seconds idle.
   * **[[#setup|FLiM Setup]]** for Node number, IP address, service port, MAC address, network mask, CANID and idle watch dog.   * **[[#setup|FLiM Setup]]** for Node number, IP address, service port, MAC address, network mask, CANID and idle watch dog.
-  * Compatible 12VDC mergCBUS connector. (J5)+  * Compatible 12VDC connector. (J5)
   * PC **[[:cangc1e-firmware-en#protocol|protocol]]** is compatible with CANRS and CANUSB.   * PC **[[:cangc1e-firmware-en#protocol|protocol]]** is compatible with CANRS and CANUSB.
-  * Ethernet galvanic isolated from MergCBUS+  * Ethernet galvanic isolated from CAN
  
  \\  \\
Line 54: Line 49:
 |  4 | Running | continuous |   | |  4 | Running | continuous |   |
 |  4 | Learning mode | 500ms blinking | Activated by push button or Rocrail setup. | |  4 | Learning mode | 500ms blinking | Activated by push button or Rocrail setup. |
-|  4 | Error | One shot long DIM |  Ethernet or CBUS Queue full. Socket not ready. |+|  4 | Error | One shot long DIM |  Ethernet or CAN Queue full. Socket not ready. |
 |  4 | Disconnect | One shot DIM | A client, e.g. Rocrail server, has disconnected.  | |  4 | Disconnect | One shot DIM | A client, e.g. Rocrail server, has disconnected.  |
 |  4 | Read/Write variable | One shot short DIM | During setup with FLiM.  | |  4 | Read/Write variable | One shot short DIM | During setup with FLiM.  |
-|  5 | CBUS activity | random flashing |   |+|  5 | CAN activity | random flashing |   |
  
  \\  \\
Line 68: Line 63:
 |  J2, J3  |  CAN-GC connector  | |  J2, J3  |  CAN-GC connector  |
 |  J4  |  Ethernet connection.  | |  J4  |  Ethernet connection.  |
-|  J5  |  MERG CBUS with 12V connection.  |+|  J5  |  CAN with 12V connection.  |
 |  JP1  |  CAN termination.  | |  JP1  |  CAN termination.  |
  \\  \\
Line 83: Line 78:
  
  \\  \\
-===== Adjusting supply for CBUS =====+===== Adjusting supply for CAN =====
 Supply for all CAN-GCx units should be standard 12V.\\ Supply for all CAN-GCx units should be standard 12V.\\
 This can be adjusted with POT1, to be measured on J5 pt 1 & 4.\\ This can be adjusted with POT1, to be measured on J5 pt 1 & 4.\\
Line 99: Line 94:
 | **The CAN-GC1e can only be configured over Ethernet.** |\\ | **The CAN-GC1e can only be configured over Ethernet.** |\\
 The usual way is to connect CAN-GC1e to your home network.\\ The usual way is to connect CAN-GC1e to your home network.\\
-A direct link will mostly work too but in some occasions a router or Ethernet hub seems to be needed.\\ +A direct link will mostly work too but computer network TCP/IP address should be set to the same network range of 192.168.0.x.\\  
 +REMARK: Best is to set it to 192.168.0.101, which is most certainly not yet used for any other device in the ethernet network.\\
 {{:cbus:cangc1e-setup-en.png}}\\ {{:cbus:cangc1e-setup-en.png}}\\
  
-The default IP address of the CAN-GC1e is 192.168.0.200. Make sure the PC is also in the same network range of 192.168.0.x before trying to connect.\\ +The default IP address of the CAN-GC1e is 192.168.0.200. Make sure the PC is also in the same network range of 192.168.0.x before trying to connect.( See above )\\ 
-Your PC gets usually its IP4 address autmatically from your home router.\\  +Your PC usually will get its IP4 address autmatically from your home router.\\  
-This might be different form 192.168.0.x.\\+This might be different from 192.168.0.x.\\
 In that case, write down the IP4 number where your PC is running on.\\ In that case, write down the IP4 number where your PC is running on.\\
-Change the automatic IP4 address in the PC network settings to manual and set IP4 address to 192.168.0.and subaddress to 255.255.255.0\\ +If it is not listed, see in Help menu of Rocrail, there it will show.\\ 
-Now Rocrail should have connection with CAN-GC1e.\\+Change the automatic IP4 address in the PC network settings to manual and set IP4 address to 192.168.0.101 and subaddress to 255.255.255.0\\ 
 +Now Rocrail should have connection with CAN-GC1e. Please note that sometimes it helps here to restart Rocrail and CAN-GC1e.\\
 To change the IPadress in the CAN-GC1e, follow this procedure : \\ To change the IPadress in the CAN-GC1e, follow this procedure : \\
 After connection is established, type in the IP-address you wrote down from the pc-settings and change the last of \\ After connection is established, type in the IP-address you wrote down from the pc-settings and change the last of \\
Line 123: Line 120:
  
 If for any reason you like to go back to standard IP-Number 192.168.0.200, all you have to do is restart CAN-GC1e with button on GC1e pressed.\\ If for any reason you like to go back to standard IP-Number 192.168.0.200, all you have to do is restart CAN-GC1e with button on GC1e pressed.\\
 +\\
 +For those who like to set this IP number directly into memory of the chip, you will need programmer which can handle PIC18F2585.\\
 +The IP numbers are stored hexadecimal in &H305 to &H308.\\
 +
 +
  
  
Line 148: Line 150:
 This is to avoid zombie connections which will unnecessary occupy a TCP/IP resource.\\ This is to avoid zombie connections which will unnecessary occupy a TCP/IP resource.\\
 Disable this option if sniffer software is connected.\\ Disable this option if sniffer software is connected.\\
-| Rocrail sends every 2 seconds, in case no other command has been send, a keep alive message to the CAN-GC1e. \\  This message is not broadcasted to the CBUS and serves only for resetting the idle timer in the CAN-GC1e for this connection. |\\+| Rocrail sends every 2 seconds, in case no other command has been send, a keep alive message to the CAN-GC1e. \\  This message is not broadcasted to CAN and serves only for resetting the idle timer in the CAN-GC1e for this connection. |\\
  
  
Line 161: Line 163:
  \\  \\
  
-====CBUS====+====CANBUS====
 ===CANID=== ===CANID===
-Unique ID in the CBUS network.\\+Unique ID in the CANBUS network.\\
 The CANID is not used from the ASCII Frames because more then one PCs can connect using different IDs.\\ The CANID is not used from the ASCII Frames because more then one PCs can connect using different IDs.\\
  
Line 170: Line 172:
 =====Multiple Connections===== =====Multiple Connections=====
 The CAN-GC1e Firmware supports up to 4 concurrently connections.\\ The CAN-GC1e Firmware supports up to 4 concurrently connections.\\
-Keep in mind that commands send from one connection to CBUS are not broadcasted to the other connections.\\ +Keep in mind that commands send from one connection to CANBUS are not broadcasted to the other connections.\\ 
-This is the normal behaviour because all commands send by a CBUS node are not seen by this node itself. \\+This is the normal behaviour because all commands send by a CANBUS node are not seen by this node itself. \\
 Only packets coming from other nodes in the network are broadcasted to all connections.\\ Only packets coming from other nodes in the network are broadcasted to all connections.\\
    
Line 186: Line 188:
  
 =====Hardware Files===== =====Hardware Files=====
-  * http://bazaar.launchpad.net/~rocrail-project/rocrail/hardware/files/head:/cbus/cangc1e/doc/+  * https://gitlab.com/rocrail/GCA/-/tree/master/cbus/cangc1e
 ====Harware info==== ====Harware info====
 | {{:cbus:can-gc1e-v1-4_sch.pdf|The schematics Version 1.4}}  | | {{:cbus:can-gc1e-v1-4_sch.pdf|The schematics Version 1.4}}  |
Line 198: Line 200:
 ===== Power for CAN-GC3 programming track===== ===== Power for CAN-GC3 programming track=====
 The standard 12V, coming from CAN-GC1e , is used for programming track as well.\\ The standard 12V, coming from CAN-GC1e , is used for programming track as well.\\
-Allthough other programmers often also work with no more that 12V, \\+It should be adjusted before  connecting other CAN devices.\\  
 +Though many programmers often also work with no more that 12V, \\
 it seems that some decoders have a bit of a problem with that.\\ it seems that some decoders have a bit of a problem with that.\\
 To solve that, a higher Voltage will be the solution.\\ To solve that, a higher Voltage will be the solution.\\
-For this reason, the VR1 regulator on CAN-GC1e can be swapped with a LM2576T-adj type.\\ +The Pot1 regulator on CAN-GC1e can be set to max 18V, but I advise not to that if not need.e.\\ 
-Pot1 on CAN-GC1e is already there and in that case can be used for adjusting the output between 12,5V and 18,5V.\\ +With 18V all connected CAN devices will have to radiate more heat, which is not adviceable for energy reasons/\\ 
-CAN-GC1e will be equipped with the mentioned regulator from this day on.\\+Without these programming needs, the voltage can be reduced to 10V minimum, making it all more energy economic.\\ 
 +Voltage can be measured at the pins +12V and GND on J5.\\  
 + 
 + \\ 
 +=====Trouble Shooting===== 
 +====Not all CAN messages are processed==== 
 +Replace C18, and if needed also C3if not all CAN messages are processed.\\ 
 +The CPU will stop responding if C18 is very bad.\\
  
can-gca1e-en.1580549968.txt.gz · Last modified: 2020/02/01 10:39 by rjversluis