Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
Re: [opensuse] howto - Read Data from Serial Port?
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Sat, 01 Mar 2008 17:30:34 -0600
  • Message-id: <47C9E71A.1000508@xxxxxxxxxxxxxxxxxx>
Curt Grimley wrote:
Hi David - taking this "off list", while I was turning in last night I thought I shouldn't have assumed you knew what a "named pipe" is - it is a file node called a FIFO (First In First Out). So here is some pseudo code:

mknod phonedata p # creates a FIFO file, see man mknod
php processPhoneData.php < phonedata & # or maybe mysql, whatever works for you. It will read data from the named pipe until another process closes it.
minicom ... -C phonedata # see man minicom for all parameters.

Then minicom would just read the port and write to "phonedata" all day long, all week long or whatever.

Hope that helps, and good luck with your project.
Curt



Thank you for thinking about it and posting. I would not have gotten the named pipe right. I have run across them before when setting up dhcpd in a chroot environment, but that was years ago. Now I have my starting point.

--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >