how to use both COM on GEM?

Ask questions about the GEM here.
Post Reply
mwall
Posts: 140
Joined: Wed Dec 07, 2011 6:25 pm

how to use both COM on GEM?

Post by mwall » Thu Jan 04, 2018 3:47 pm

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
ben
Site Admin
Posts: 4254
Joined: Fri Jun 04, 2010 9:39 am

Re: how to use both COM on GEM?

Post by ben » Fri Jan 05, 2018 11:26 am

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.
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Post Reply