Community discussions

MikroTik App
 
HeinK
just joined
Topic Author
Posts: 1
Joined: Thu Feb 03, 2022 2:30 pm

Read and write to the USB serial port.

Thu Feb 03, 2022 3:29 pm

Hi all.
I'm fairly new to Mikrotik but I'm finding my feet as I go along. I have a few basic scripts that run and send me messages on Telegram.
I want to make a script that can send a text string to the serial device plugged into the USB port, read the response and execute certain functions depending on the response.

for example, I want to send "STS\n", and it will respond with something like "ON_IDLE\n". The device I plugged into the Mikrotik USB port is working perfectly. Tried is on different PCs with different terminal apps, and it works.

I have searched for a while on the internet to find examples or indications of how to do this and not been able to do anything. Most of the solutions I find are for communicating with the serial port via the terminal, and even that I can't get working.

This is a link to another post (mostly the links in this post) that I worked through and still nothing.
viewtopic.php?t=79946

Any advice or assistance is greatly appreciated

Who is online

Users browsing this forum: alexantao and 21 guests