Page 1 of 1

how to use both COM on GEM?

Posted: Thu Jan 04, 2018 3:47 pm
by mwall
what is the best practice for using both COM ports on the GEM?

for example, if i have a GEM with ethernet (wiznet) but i would also like to have a serial cable attached, how should i do this?

should the serial be connected to COM1 or COM2?

can i send commands on one COM port while the GEM sends data over the other?

can i get packets of one type on COM1 while i get packets of a different type on COM2?

can COM1 operate in realtime mode while COM2 operates in polled mode?

or does the GEM send the same thing to both COM ports simultaneously?

m

Re: how to use both COM on GEM?

Posted: Fri Jan 05, 2018 11:26 am
by ben
mwall wrote:what is the best practice for using both COM ports on the GEM?

for example, if i have a GEM with ethernet (wiznet) but i would also like to have a serial cable attached, how should i do this?

should the serial be connected to COM1 or COM2?
COM1 runs the Ethernet or WiFi/Ethernet module. So you'd want to use COM2 for any additional communication.
mwall wrote:can i send commands on one COM port while the GEM sends data over the other?
Both COM ports are required to have a packet sent through, but yeah you can if you disregard the packet coming in.
mwall wrote:can i get packets of one type on COM1 while i get packets of a different type on COM2?
COM2 is limited to fixed-length packets when using 2 different packet formats.
mwall wrote:can COM1 operate in realtime mode while COM2 operates in polled mode?

or does the GEM send the same thing to both COM ports simultaneously?
They both have to operate in the same mode.