Re: [opensuse] howto - Read Data from Serial Port?



David C. Rankin wrote:
Banning someone out of personal spite is uncalled for fascism wrote:
David C. Rankin wrote:
Listmates,

A linux question. I have a phone system that will output call
logs through an rs-232 cable. I would like to write a script that
will read the data from the serial port and input it into a mysql
table.

cat /dev/ttyS_ | data_storing_program


You might check out the program called "minicom". It can handle the
port initialization for you.

Also, it can write out to a file - just make that a named pipe and you
can run your mysql or whatever script to load your data.

Curt
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Help with cron on Suse 10
    ... > OK, the script is running, thanks for the suggestions. ... > reads a temperature sensor on the serial port and logs the data to a ... > when scheduled from cron it can't access the serial port - it fails to ... > chmod 777 the serial port it still fails. ...
    (alt.os.linux.suse)
  • Re: [opensuse] howto - Read Data from Serial Port?
    ... the data from the serial port and input it into a mysql table. ... What kind of script do I write that will read from the ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • [opensuse] howto - Read Data from Serial Port?
    ... I would like to write a script that will read the data from the serial port and input it into a mysql table. ... Can I create some type of buffer or file for the data and then use cron to periodically sweep the data from the buffer and stick it in mysql? ...
    (SuSE)
  • Re: Help with cron on Suse 10
    ... OK, the script is running, thanks for the suggestions. ... reads a temperature sensor on the serial port and logs the data to a ... when scheduled from cron it can't access the serial port - it fails to ... chmod 777 the serial port it still fails. ...
    (alt.os.linux.suse)
  • Re: Looking for file transfer tool with XMODEM on Linux
    ... >A bash script consisting of ... The "init string" is just the only three AT commands I could ... You *must* totally initialize the serial port. ...
    (comp.os.linux.misc)