Support Guide¶
Introduction¶
On this page all useful tips and tricks will be published
The OMC-048 data logger connects to a PC via the USB-C cable. Windows promts the device as a mass storage device and a COM device. The COM device can be found via the device manager.
A terminal application should be used to receive datalogger application activity, or us the REPL mode.
- In case the application is running:
Ctrl-C: Stops the application to enter REPL (CTRL-SHIFT-C for OMC-terminal)
Ctrl-D: Executes the application from start.
Port Redirect¶
You can communicate with a serial com port via the USB connection. You will have to type some commands in the REPL, so the logger won’t be running during the redirect. If you do need to monitor serial communication while the logger is running its program, you will need to use the ‘spy’ function, which will be explained in a later stage.
First enter the REPL (ctrl-C)
we will use commands from the omc048 module, so we will have to import the module first:
import omc048
if your sensor is powered via a powerswitch, you will have to switch it on (otherwise you can skip this step):
omc048.power_supply(1).on()
(change 1 to the number of the used powerswitch (1 - 4)
Next init the serial port (see list underneath for the available port numbers) and set the correct baudrate:
omc048.serial(1).init(9600)
(Serial port 1 set to 9600 baud in this example)
Now all you have to do is redirect it:
omc048.serial(1).redirect()
Now you should see the data from the redirected port, if you don’t or see funny characters: check your port number and baudrate.
available ports:
Port |
Code name |
---|---|
Serial port 1 |
serial(1) |
Serial port 2 |
serial(2) |
Serial port 3 |
serial(3) |
Serial port 4 |
serial(4) |
NMEA Port: |
serial(5) or serial(‘nmea’) |
sdi12: |
serial(6) or serial(‘sdi12’) |
modem: |
serial(7) or serial(‘modem’) |