6.2.6 config modemport

It configures how the application is connected to the Base Node:

  • Physical Serial Port connection (serial): the host where the application runs has a serial port connection to a Base Node identified by the physical device and the baudrate.
    MCHP-PRIME-BASE(prime)# config  modemport  serial  ttyS6  speed  115200
    PRIME Modem connected to serial port ttyS6 at 115200 bps
  • TCP Connection (tcp): the host where the application runs over a TCP port where USI frames are redirected. It allows remote connections to the PRIME Base Node. Remote serial port to TCP Port redirection can be done easily with applications like “socat” (http://www.dest-unreach.org/socat/) or Windows applications like COMbyTCP. For example, running the next socat command, it redirects the ttyS1 serial port to the TCP 3000 port:
    • socat -d -x TCP-LISTEN:3000,reuseaddr /dev/ttyS1,B230400,raw,echo=0
    MCHP-PRIME-BASE(prime)# config  modemport  tcp  192.168.137.1 port  8214
    PRIME Modem connection to TCP host 192.168.137.1 port 8214