Page 1 of 1

Generic comunicaction through serial port

Posted: Mon Aug 13, 2007 12:31 am
by ivanperino
My inquire is about comunication through serial port on RB500.
Is there any way to read and write over RS232 port on RB? I have seen SIGWATCH but it doesn´t give me a complete solution. It only watches an electrical signal on serial port.
I would like to read data from that port, thus, perform some script with it.
Or may be write to some microprocessed application outside the RB.
Is it possible? how can I do it?

My purpose is to make a monitor/execution application (energy, alarm, reset powersupplay, etc.)

Thank you a lot. I will appreciate any help from you.
Ivan Perino
Argentina
MUM is near!

Re: Generic comunicaction through serial port

Posted: Mon Aug 13, 2007 3:08 am
by Giepie
Hi

AFAIK there are only 3 ways of using the serial port.

1) Terminal services in order to access MT from your PC

2) INPUT from your UPS

3) Communication with devices such as GPRS modems.

I did read in some forum, that you can use AT commands to control devices as per your request. Do some more searching, I'm sure you'll find it.

Hope I've put you on the right track!

BTW, did you know it is possible to run damnsmall linux on a RB with a 128MB CF card? I'm sure you could do more on Linux than with MT in this regard.

Re: Generic comunicaction through serial port

Posted: Mon Nov 19, 2007 12:51 pm
by el berto
Hi, I apologize but I'm a beginner and I am a lot confused:
I would like to use a RB112 (1 COM) with a GPRS modem through serial port: if I'm not wrong I should command it through System -> Serial-terminal serial0 but I receive the message "port is already in use".
Whet's wrong?

Re: Generic comunicaction through serial port

Posted: Mon Mar 23, 2009 3:16 am
by teixeiragv
Hope you have sorted this out already.
Anyway, just to help some other researchers.... and give some more directions on this question....

The console uses the serial0 as default. If you want to access a device on the MT command line, you need first to disable the console.
To confirm:
>port print

you may see something like this:

[admin@VLAN test 2] /port> print
Flags: I - inactive
# NAME USED-BY BAUD-RATE
0 serial0 Serial Console auto
[admin@VLAN test 2] /port>

to disable console:

>system console disable 0

Now you can try to access again!
Good luck to all!
Guilly