Configuring IP to Serial with Auto Answer and Serial to IP

Jan 08, 2016 - Author: Sierra Wireless - 6344 Views
You can configure an AirLink device to:
  • Auto answer incoming TCP/IP or UDP/IP connections and send the packet payload out over the Airlink device’s serial port to a connected device
  • Receive TCP/IP or UDP/IP packets containing payload data on an Airlink device's serial port from a connected device

If you have a GX Series device with an I/O X-Card installed, you can also configure this feature on the I/O X-Card serial port.

 

   
Receive packets; send payload data out over serial     

Receive payload data over serial;
create and send out packets

   
Both: receive packets; send payload data out over serial
AND receive payload data, create and send out packets
   

Figure 1: TCP and UDP Auto Answer


To configure the AirLink device for TCP/UDP auto answer, sending IP packets, or both:

1. In the ACEmanager, navigate to Serial > Port Configuration. If you are configuring an I/O X-Card, navigate to Serial > I/O X-Card Serial Port.

Required fields for receiving data payloads over serial, creating IP packets to send 
Required fields for receiving IP packets and sending out data payloads over serial
  Required fields for receiving data payloads over serial, creating IP packets to send and receiving data payloads over serial, creating IP packets to send
 Figure 2: ACEmanager: Serial > Port Configuration    

 

2. Use Table 3 and the instructions following the table to configure the desired options for this feature.
Table 3: Quick Guide to Configuring IP to Serial with Auto Answer and Serial to IP

Field

To receive packets and send data payload out over serial

To receive data payloads over serial and send out packets

Both (to receive packets - send out data payload AND receive data payload and send out packets)

Startup Mode Default

See Step 3

N/A

UDP or TCP

UDP or TCP

Configure Serial Port

See Step 4

115200,8N1

115200,8N1

115200,8N1

Flow Control

See Step 5

None

None

None

Device Port

See Step 6

12345

54321 for I/O X-Card

N/A

12345

54321 for I/O X-Card

Destination Port

See Step 7

N/A

Required

Required

Destination Address

See Step 8

N/A

Required

Required

 

3. Startup Default Mode—When the Startup Mode is set to UDP or TCP, the AirLink device takes any data sent to its serial port from a connected device and encapsulates it into a TCP/IP or UDP/IP packet.

 

4. Configure Serial Port—Set the baud rate of the serial port on the AirLink device so that it matches the baud rate of the serial port on the connected device. (The default baud rate is 115200 bps.) You can also use this field to set the framing characteristics for the serial port communication on those rare occasions when the default value of 8N1 does not apply.

 

5. Flow Control—This field can usually be left at the default value (None) as most serial devices use only a three-wire connection (Tx, RX, and Gnd). However, if the serial device uses the RTS and CTS pins on the serial connection to control data flow between the two devices, set this field to Hardware.

 

6. Device Port—Data received on a TCP/IP or UDP/IP connection to the configured Device Port is sent out the serial port. The default value for the port is:

  • On the AirLink device: 12345
  • On the I/O X-Card: 54321

 

7. Destination Port—The AirLink device uses the port value specified in this field to determine which port it sends the IP packet containing the data payload to. The AirLink device enters the value in the Destination Port field in the header of the IP packet it creates.

 

8. Destination Address—The AirLink device uses the IP address specified in this field to determine the IP address to send the packet it creates to. The AirLink device enters this IP address in the header of the IP packet it creates.

 

9. If you are configuring the AirLink device to:

  • Create and send packets only, go to step Step 10.
  • Receive TCP/UDP packets, complete the following instructions.

For Receiving TCP/IP Packets:

  1. Expand the +TCP section.

    Figure 3-1: ACEmanager: Serial > Port Configuration > TCP
  2. Set the TCP Auto Answer field to Enable.

For Receiving UDP/IP Packets:

  1. Expand the +UDP section.

    Figure 3-2: ACEmanager: Serial > Port Configuration > UDP
  2. Set the UDP Auto Answer field to Enable.
  3. Set the Allow Any Incoming IP field to Allow Any IP (if this field is left at the default value, the AirLink device only accepts incoming UDP/IP packets from the IP address specified in the Destination Address field in the Port Configuration section of the screen.

For information on the other parameters, refer to the ALEOS Software Configurations User Guide.

 

10. Click Apply.

 

11. Click Reboot (in the upper right of the screen). Once the reboot is complete, this feature is enabled.

 

Troubleshooting

If the packet contents are not being sent to the connected device:

1. Try polling the device connected to the AirLink device’s serial port. If you do not receive a response, confirm that the fields described in Table 3 are set correctly.

 

2. In ACEmanager, navigate to Status > Serial and check the Serial bytes sent field to confirm that packets are reaching the AirLink device from the mobile network and the packet contents are being sent out the AirLink device’s serial port.

Figure 3-3: ACEmanager Status > Serial

 

When you poll the AirLink device/connected device:

  • If the Serial bytes sent counter increases, the IP packets have reached the AirLink device from the mobile network, the AirLink device has removed the header and sent the packet contents out its serial port to the connected device.
  • If the Serial bytes sent counter does not increase, either:
  • The IP packet has not made it across the mobile network to the AirLink device.
  • The destination port for the TCP/IP or UDP/IP connection does not match the configured Device Port on the ACEmanager Serial tab.

 

3. Once you have confirmed that the Serial bytes sent counter is increasing, check the Serial bytes received counter (also on the Status > Serial screen).

  • If the Serial bytes received counter is increasing, the connected device is responding to the poll request and sending its response back to the AirLink device across the serial connection.
  • If the Serial bytes received counter is not increasing, the connected device is not responding to the poll request. Ensure that the serial cable is fully seated and properly connected to the AirLink device and the host. Check that you have the correct type of serial cable connecting the AirLink device to the connected device. The AirLink device is a DCE device. If the connected device is also a DCE device, use a null-modem serial cable. If the connected device is a DTE device, use a straight-through serial cable.

 

4. If you have confirmed that both the Serial bytes sent and Serial bytes received counters are increasing when you send a poll to the connected device, but you are still not receiving the response back on your original sending application, the most common reason is that the incoming packets from the AirLink device to your application are being blocked by a firewall on your network. The firewall may be blocking all traffic except packets destined for particular ports or arriving from particular ports.

Check with your firewall administrator. Ask the administrator to monitor the firewall when you poll the AirLink/connected device to see if any return packets from the AirLink device hit the firewall.
 

 

 

©2024 Sierra Wireless. All rights reserved.
×
You have been successfully unsubscribed to this product. To access your subscription click here.