User Tools

Site Tools


mgv101-en

Differences

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


Previous revision
mgv101-en [2021/05/17 19:06] (current) – [GCA101: LocoBuffer-UDP] phg
Line 1: Line 1:
 +====== GCA101: LocoBuffer-UDP ======
 +[[english|{{  rocrail-logo-35.png}}]]
 +[[english|Content]] -> [[hardware-en|Hardware]] -> [[hardware-en#locoio|GCA]]
 +  *  [[mgv-overview-en|TheGCA modules]] 
  
 +{{:mgv:hardware:mgv101_pict03.jpg?600}}
 + \\
 + \\
 +
 +
 +
 + \\
 +
 +===== Introduction =====
 +[[http://en.wikipedia.org/wiki/Ethernet|{{ :ethernet_symbol.png?100}}]]
 +Your train is going into the next generation .. with [[http://en.wikipedia.org/wiki/Ethernet|ETHERNET!]]\\
 +This will be the ultimate solution for communication between Rocrail and LocoNet-I/O(r).\\
 +Almost each in the market available computer now-a-days is equipped with an Ethernet connection.\\
 +The USB does not always seem to be the perfect solution as substitute for the RS232 Comm port.\\
 + \\
 +
 +===== Features =====
 +[[http://en.wikipedia.org/wiki/User_Datagram_Protocol|{{  http://upload.wikimedia.org/wikipedia/de/8/80/UDP.PNG}}]]
 +  * [[http://en.wikipedia.org/wiki/User_Datagram_Protocol|UDP Multicast communication]]
 +  * solid GCA-Compatible power supply
 +  * isolated coupling between PC and Ethernet
 +  * on-board ICSP for easier development and self programming of ATmel processor
 +  * 2 x RJ12 connector for Loco-I/O periferie
 +  * 2 x D-sub9 connectors
 +  * clear on-board indication of present power and Ethernet/Loco-I/O functions
 +  * entirely compatible with all Loco-I/O PE commands
 +  * fully supported by Rocrail
 +
 + \\
 +
 +
 +===== Ethernet cable connection =====
 +The GCA101 is equipped with a special Ethernet connector.\\ 
 +It provides an electric isolation , which means that computer and your trains are not electrically connected together.\\
 +The standard Ethernet cable can be one of the two types. Either normal or 'crossed'  cables are useful. \\
 +
 +===== Ethernet connection =====
 +Connecting GCA101 to PC is best done by means of a router in between.\\
 +So your home network will be one way to do it.\\
 +If you do not like this situation, use a dedicated cheap router for it.\\
 +Direct connection GCA101 to PC is possible but requires a lot of experience with networking.\\
 +One important remark to old left-over routers:\\
 +Routers previously used at home with your previous Internet/ Tv provider, will experience problems with connection via UDP.\\
 +This is probably caused by the UDP channel inside the router, which should be opened by passwords/codes/pin numbers.\\
 +In this case, that router is unusable.\\
 +
 +
 + \\
 +
 +===== Hardware =====
 +|{{:mgv:hardware:GCA101-sch.pdf|Schematic design}}   |
 +|{{:mgv:hardware:mgv101_pcb.pdf|Printed circuit + parts positions}}  |
 +|{{:mgv:hardware:GCA101_parts.pdf|Bill of materials}}  |
 +|{{:mgv:hardware:gca101_gerber.zip|Gerber files}}  |
 +^ N.B. Only complete ordered kits will be supported! ^
 +
 +Two processors on this board are installed.\\
 +One to connect Ethernet to the standard SPI and the second as interface between SPI and Loco-I/O.\\
 +The unit is equipped with two Loco-I/O RJ12 connectors and two D-con-Loco-I/O connectors.\\
 +On board power switching power supply with 3 Amp output to be able to supply a large range of Loco I/O modules MGV50 I/O modules.\\
 +\\
 +The necessary transformer should have minimum of 52 VA.\\
 +Power supply : between 15V and 30V dc or between 12V and 24V ac.\\
 +Transformer or adapter MUST be dedicated ONLY for GCA101. No other connections should be made to transformer! \\
 +Ignoring this can result in damage of GCA101 or connected periphery.\\
 + \\ 
 +Unit is available as board only or as complete parts package, including programmed processor.\\
 +Ready built units will not be available.\\
 + \\
 +Thanks to Robert Evers & Fred Jansen who have put much energy in getting the system up and running, you will finally be able to run Rocrail and Loco-I/O without USB and/or RS232.\\
 +
 + \\
 +
 +===== Firmware =====
 +{{:mgv:hardware:gca101v2.1.0.6.zip|This is the most recent .hex file for U1}} 
 +
 +==== Programming ====
 +[[http://shop.myavr.com/index.php?sp=artlist_kat.sp.php&katID=28|{{ http://shop.myavr.com/pic/articles/mysmartusb_light_g.png}}]]
 +The GCA101 is provided with a programming connector ICSP1.\\
 +To program the Atmel chip you will need a programmer.\\
 +A programmer with suitable software is the **mySmartUSB-light**.\\
 +
 +On Linux flashing the firmware is easy with avrdude: 
 +<code>
 +avrdude -F -pm168 -cstk500v2 -P/dev/ttyUSB0 -Uflash:w:MGV101_UDP_TEST.hex:a
 +</code>
 +The programmer ID is "mySmartUSB-Light" firmware version dependent: stk500v2 or avr910/911.\\
 +For Windows, just use the software which comes with the mySmartUSB-light.\\
 +\\
 +{{  :gca:minipro_tl866a_1.png?150}}
 +One other programmer, which comes with a very large library wfor many different branches and types (including all Microchip processors) is MINIPRO TL866A.\\
 +At this moment available from GCA.\\
 +Ask [[peter.giling@rocrail.net| Peter]]\\
 +
 +
 + \\
 +
 +===== Led signalling  (Firmware Version V2.1+) =====
 +
 +The three green leds in front are indicating different functions.
 +
 +^  LED  ^  Function  ^
 +|  3 (left)  |  ethernet receive / Loco-I/O transmit  |
 +|  4 (mid)  |  Loco-I/O receive  |
 +|  5 (right)  |  ethernet transmit  |
 +
 +===== Jumper settings =====
 +^ Jumper  ^  Purpose 
 +|  JP1  |  15 mA Current source Loco-I/O line  |
 +|  JP2  |  +12V to Railsync+  |  
 +\\
 +
 +===== Current source, what is that? =====
 +Click __**[[LNet_current_source-en|here]]**__ for a brief explanation about it.
 +
 + \\
 +
 +===== New development for GCA101 =====
 +\\
 +GCA101 also can be used with TCP.\\
 +The standard address for that is 192.168.0.200.\\
 +Processor should be changed to ATmega328P.\\
 +Software is developed in Spain by Dani Guisado.\\
 +Firmware is downloadable here:
 +​https://github.com/ClubNCaldes/GCA101LbServer\\
 +Website of Dany is also interesting 
 +http://www.clubncaldes.com/
 +\\
 +\\
 +
 +
 +
 +
 +
 +===== Mounting instructions =====
 +  - First start with all resistors and IC sockets.
 +  - For socket of U2, it might be necessary to cut the middle bridge in the socket, to free space for C7.
 +  - Then small capacitors and small elco's.
 +  - Then all connectors, leds, fuse and dip-switch.
 +  - Before mounting VR1 AND VR2, first fix the cooling block with two screws.
 +  - After that place VR1 and VR2 in the pcboard, adjusting the wires in the right position, so that metal surface lies flat to the cooling and fix them with the clips.
 +  - Be sure that all IC's are flat to the surface of the cooling, cut the wires at the bottom at 1 mm outside the pcboard surface, and solder the wires.
 +  - Take a double check on the right types of VR1(LM2576t-12) and VR2(LM2575T-3.3)! They might sometimes be very hard to read.
 +  - At last fix bridge rectifier GR1 and C1,CE1.  The picture above shows clearly that the wires of GR1 are slightly bended, in order to clear space for C1. In case the total power consumption of the connected LocoNet is no more than 2 Amp, one of the two big capacitors can be omitted.
 +  - Before inserting U1, U2 and U3, test power 3,3 Volt on pins 1 and 8 of U3. 
 +
 +
 +
 + \\
 +
 +
 +
 +
 +
 +
 +
 +
 +===== Rocrail Setup=====
 +| Firmware version: 2.10x |\\
 +
 +The communication between Rocrail and the GCA101 is by the **[[http://en.wikipedia.org/wiki/User_Datagram_Protocol|User Datagram Protocol]]**. Therefor only the **LNUDP** LocoNet interface type is supported.\\
 +Setup Rocrail with the exact values shown below except for the Local IP address which is in most cases not needed.\\
 +The __GCA101__ own __[[#ip-address_selection|IP address]]__ is __not used__ in the Rocrail setup.\\
 +
 + \\
 +|  {{:loconet:lnudp-en.png?0x350}}  |  {{:gca:setting_programming_options.png?0x350}}  |  
 +|    In case GCA101 is not the first controller  \\   in your setup,  do NOT forget the correct IID !  |\\ 
 +
 +==== Hostname ====
 +This is the **[[http://en.wikipedia.org/wiki/Multicast_address|Multicast address]]** to use for communication and must be set to the __FIXED__ value of **224.0.0.1**.\\
 +//-- The All Hosts multicast group addresses all hosts on the same network segment. --//\\
 +
 +==== Port ====
 +The service port must be set to the __FIXED__ value of **1235**. \\
 + 
 +
 +==== Type ====
 +**LNUDP** is used as standard.\\
 +With different processor and firmware (see : https://wiki.rocrail.net/doku.php?id=mgv101-en#new_development_for_gca101 ), LNServer \\
 +is possible with TCP address 192.168.0.200.\\
 +\\    
 +==== Local IP ====
 +Only required if the PC has **more then one network interfaces** installed; In all other cases: Leave empty!\\
 +IP address of the **PCs network interface** which is used for communication with the GCA101 to make sure the traffic runs on the right one.\\
 + \\
 +
 +