CGA101 and UDP and other questions.

RocNet(RaspberryPi), mergCBUS and LocoNet based hardware developed by Peter Giling. (GCA)
Order information:

CGA101 and UDP and other questions.

Postby Richard-TX » 03.05.2013, 18:20

I was looking over the spec for the CGA101 and was wondering why UDP is used as a transport. Is it because that since UDP is generally stateless that it makes it more desirable? TCP has some fixed and rather lengthy timeout values which could prove frustrating when dealing with near real-time communications.

That also raises questions about handshaking. Since UDP generally leaves ACKs and retry timeouts up to the implementer, does Rocrail expect ACKs from the CGA101 or does it just assume that the packets get there?

If I were to use a packet sniffer on my network segment, would I see some loconet encoded data in the packet payload?

The wiki says "Starting in Version 2.1 an extra program is available to set your own IP adress[sic]" Where is this program?

There is a dead link in the wiki. "A programmer for D.I.Y. is here:" I would fix it but don't know what the correct URL is.

Since I can set my own IP addresses, does that mean that I don't have to use multicasting or 224.n addresses when configuring Rocrail/LNUDP?


Postby rjversluis » 04.05.2013, 06:40

Hi Rich,

GCA101 is UDP Multicast only; The IP address of the unit is not used and is only needed for testing with the ping command.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBUS - CANGCx ] - [ G: CBUS - CANGCx ]
Site Admin

Return to GCA (Hardware by Peter Giling)