Skip to main content

Serial Configuration

The RockREMOTE serial ports can be configured on the UI under the Serial section which is broken in sub-menu items for Port A and Port B.

Hardware capability

RockREMOTE:

The RockREMOTE has two serial ports, Port A and Port B. Port A is a RS232/RS4XX port, it can support RS232, RS4XX in half duplex and full duplex. Port B is a full RS232 port with RTS, CTS, DTR, DSR, DCD and RI modem lines.

RockREMOTE Rugged:

The RockREMOTE Rugged has serial Port A which provides the same RS232 or RS4XX in half duplex and full duplex functionality.

note

Port B is not accessible on RockREMOTE Rugged.

RockREMOTE Pinout

rr-pinout

Port A

PinRS4XX full duplexRS4XX half duplexRS232
1GroundGroundGround
2GroundGroundGround
3→ TX (inverting)⇄ TX/RX (inverting)→ TX
4→ TX (non-inverting)⇄ TX/RX (non-inverting)N/C
5← RX (non-inverting)N/C← RX
6← RX (inverting)N/CN/C

Port B

PinDescriptionPinDescription
1Ground6← CTS
2Ground7→ DTR
3→ TX8← DCD
4← RX9← DSR
5→ RTS10← RI
important

When using hardware flow control on PortB, RTS, CTS, DSR and DTR must be connected. Should the device not have DTR and DSR they should be looped together on PortB when wiring up the device. The same solution can be used by lopping together RTS and CTS if they're not used but DTR and DSR are used.

RockREMOTE Rugged Pinout

rr-rugged-pinout

PinColourSignalRS4XX full duplexRS4XX half duplexRS232USB variant
1BrownOutput 1Output 1
2BlueOutput 2Output 2
3White← RX (non-inverting)← RxReserved
4Green← RX (inverting)USB+
5Yellow→ TX (non-inverting)TX/RX (non-inverting)USB-
6Gray→ TX (inverting)TX/RX (inverting)→ TxReserved
7PinkInput 2Input 2
8RedInput 1Input 1
9BlackReservedUSB +5V
10OrangeSleepSleep
11PurpleGroundGround
12Light GreenReservedReserved
note

Serial IO colour-coding is based on the optional 12pin cable accessory.

Port Configuration

port_config

Mode

ModesPort APort B
RS232✔️✔️
RS4XX Half Duplex✔️
RS4XX Full Duplex✔️

Baud Rate

Each port supports rates from 4800 bps to 921600 bps.

Flow Control

Flow ControlPort APort B
No Flow Control✔️✔️
Software Flow Control✔️✔️
Hardware Flow Control✔️

Data Bits

Each port supports 7 and 8 bit characters sizes.

Parity

Each port supports None, Space, Mark, Odd, and Even parity bit checking.

Stop Bits

Each port supports 1 and 2 stop bit(s).

Application Mode

application_mode

GNSS NMEA

In this mode the GNSS NMEA output from the cellular module is transmitted from onto the serial port at the configured port configuration. It will output the following sentences:

  • GGA - Global Positioning System Fix Data
  • GLL - Geographical Position - Latitude/Longitude
  • GSA - GPS DOP and Active Satellites
  • GSV - GPS Satellites in View
  • RMC - Recommended Minimum Specific GPS Data
  • VTG - Course Over Ground and Ground Speed

This mode will works well in GNSS continuous mode which can be configured in the GNSS section.

Client Mode (TCP)

note

These options only appear when client mode is enabled.

In client mode the RockREMOTE will connect to a destination IPv4 and Port when serial data is ready to send, the connection timeout is configurable with the Connection Timeout. The connection will stay open for a number seconds to allow the destination to reply with data, this is configured by the Connection Idle Timeout.

tcp_client

Server Mode (TCP)

note

These options only appear when server mode is enabled.

In server mode the RockREMOTE will listen on port for a connection. The listen interface is enabled on the LAN interfaces by default but can be enabled on the WAN interfaces as well by enabling "Allow WAN Access", when this is enabled a list of allowed IPs should configured. This is configured as a IPv4 and a subnet mask using the CIDR notation.

tcp_server

Transmission Settings

note

These options only appear when server or client mode is enabled.

  • Idle Timeout. The time in milliseconds the RockREMOTE will wait for additional data on the serial bus before sending the buffer.
  • Buffer Size. Maximum number of bytes to store before the data is sent.
  • End of line character. Send the chunk each time the end of line character is reached. Optional. This is configured as escaped ASCII characters and \x prefix can be used to enter a hexadecimal byte.

All 3 transmission settings can be used together to dictate how often the RockREMOTE will send serial data. If the End of line characters have been configured then once these bytes have been observed that serial data is sent over the configured Routing Mode. If the End of line characters are not configured or not received the idle timeout or buffer size will determine how frequent the RockREMOTE will send serial data. It is possible to send bulk data by clearing End of Line characters and configuring a long idle timeout with a buffer size of the desired bulk data size.

transmission_settings