Mailing List Archive

Almost working...
I've just set up Conserver on a Fedora Core 4 linux box. I want to use
Conserver to communicate with the serial port (ttyS0) and control an
RS232 device hanging off that.

I'm testing using an external modem attached to the serial port and
minicom works fine.

The Conserver server is running fine and using "console ttyS0" I can
send an AT command and receive OK.

However when I try to use the telnet approach I don't get the OK
characters back from the modem.

I do:

telnet 192.168.0.1 782
login bob
call ttyS0

to get the port number then exit

Then I do:

telnet 192.168.0.1 38762
login bob
call ttyS0

The response comes back:

[attached]

At this point I can send AT to the modem (and the lights show that it
receives it and sends something back) but the OK character does not
appear in the telnet session.

Is there something I'm doing wrong? I would expect the OK characters to
be echoed back as part of the telnet session.

Any help would be much appreciated.

Rory White




_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: Almost working... [ In reply to ]
On Fri, Oct 28, 2005 at 03:05:49AM +0000, Rory White wrote:
> Is there something I'm doing wrong? I would expect the OK characters to
> be echoed back as part of the telnet session.

you haven't finished the login process...there's one more step (^Ec;) to
signal the server that you're ready for output. yes, the protocol isn't
well documented (and this is something new since i wrote up the PROTOCOL
file, i believe). if you send that, you should then see output.

are you needing to talk directly to the server without going through the
client for any particular reason? if there's a limitation you're trying
to avoid, i'd love to hear about it.

Bryan
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: Almost working... [ In reply to ]
Thanks Bryan,

That gave me enough to work with.

It's now working fine using the Telnet on my Windoze box, and that's
enabled me to write a PHP script that wraps around the telnet and gives
me web access.

The telnet client on Fedora Linux is still not echoing the 'OK' string
back, but I don't need that now and I'm happy that Conserver is doing
all it's supposed to.

For any users that are interested, I'm using Conserver as part of a home
automation set-up. The system looks like:

- PHP pages accessible via web to server at home
- Home server (Fedora Linux) runs Apache/PHP
- Home server also runs Conserver
- PHP pages open/send/receive telnet data to Conserver
- Conserver forwards data to serial port devices
- Home automation device(s) connected to back of home server on RS232
(ttyS0) ports

Thanks for your help,

Rory


_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users