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
how to use both COM on GEM?
-
- Posts: 140
- Joined: Wed Dec 07, 2011 6:25 pm
-
- Site Admin
- Posts: 4254
- Joined: Fri Jun 04, 2010 9:39 am
Re: how to use both COM on GEM?
COM1 runs the Ethernet or WiFi/Ethernet module. So you'd want to use COM2 for any additional communication.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?
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 send commands on one COM port while the GEM sends data over the other?
COM2 is limited to fixed-length packets when using 2 different packet formats.mwall wrote:can i get packets of one type on COM1 while i get packets of a different type on COM2?
They both have to operate in the same mode.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?
Ben
Brultech Research Inc.
E: ben(at)brultech.com
Brultech Research Inc.
E: ben(at)brultech.com