Re: Data from a serial port

2014-10-06 Thread Ethan Rosenberg
On 10/05/2014 10:36 PM, Marty wrote: On 10/05/2014 03:50 PM, Ethan Rosenberg wrote: root@meow:/home/ethan# chown ethan /dev/ttyS0 root@meow:/home/ethan# ls -l /dev/ttyS0 crw-rw 1 ethan dialout 4, 64 Oct 4 23:00 /dev/ttyS0 root@meow:/home/ethan# $cat /dev/ttyS0|tee -a scale.txt bash: /dev/t

Re: Data from a serial port

2014-10-05 Thread Ethan Rosenberg
On 10/05/2014 10:36 PM, Marty wrote: cat /dev/ttyS0|tee -a scale.txt Excellent. Works!! Now, how do I read the contents of scale.txt? TIA Ethan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Re: Data from a serial port

2014-10-05 Thread Marty
On 10/05/2014 03:50 PM, Ethan Rosenberg wrote: root@meow:/home/ethan# chown ethan /dev/ttyS0 root@meow:/home/ethan# ls -l /dev/ttyS0 crw-rw 1 ethan dialout 4, 64 Oct 4 23:00 /dev/ttyS0 root@meow:/home/ethan# $cat /dev/ttyS0|tee -a scale.txt bash: /dev/ttyS0: Permission denied # adduser et

Re: Data from a serial port

2014-10-05 Thread Ethan Rosenberg
On 10/04/2014 12:56 AM, Joel Rees wrote: On Sat, Oct 4, 2014 at 11:05 AM, Jerry Stuckle wrote: On 10/3/2014 9:52 PM, Joel Rees wrote: On Sat, Oct 4, 2014 at 9:54 AM, Jerry Stuckle wrote: On 10/3/2014 8:19 PM, Joel Rees wrote: On Sat, Oct 4, 2014 at 5:52 AM, Jerry Stuckle wrote: On 10/2/20

Re: Data from a serial port

2014-10-03 Thread Joel Rees
On Sat, Oct 4, 2014 at 11:05 AM, Jerry Stuckle wrote: > On 10/3/2014 9:52 PM, Joel Rees wrote: >> On Sat, Oct 4, 2014 at 9:54 AM, Jerry Stuckle wrote: >>> On 10/3/2014 8:19 PM, Joel Rees wrote: On Sat, Oct 4, 2014 at 5:52 AM, Jerry Stuckle wrote: > On 10/2/2014 8:24 PM, Ethan Rose

Re: Data from a serial port

2014-10-03 Thread Jerry Stuckle
On 10/3/2014 9:52 PM, Joel Rees wrote: > On Sat, Oct 4, 2014 at 9:54 AM, Jerry Stuckle wrote: >> On 10/3/2014 8:19 PM, Joel Rees wrote: >>> On Sat, Oct 4, 2014 at 5:52 AM, Jerry Stuckle >>> wrote: On 10/2/2014 8:24 PM, Ethan Rosenberg wrote: > [...] In addition to Dan's commen

Re: Data from a serial port

2014-10-03 Thread Joel Rees
On Sat, Oct 4, 2014 at 9:54 AM, Jerry Stuckle wrote: > On 10/3/2014 8:19 PM, Joel Rees wrote: >> On Sat, Oct 4, 2014 at 5:52 AM, Jerry Stuckle wrote: >>> On 10/2/2014 8:24 PM, Ethan Rosenberg wrote: [...] >>> >>> In addition to Dan's comments - is your cable OK? Do you need a >>> straight-t

Re: Data from a serial port

2014-10-03 Thread Jerry Stuckle
On 10/3/2014 8:19 PM, Joel Rees wrote: > On Sat, Oct 4, 2014 at 5:52 AM, Jerry Stuckle wrote: >> On 10/2/2014 8:24 PM, Ethan Rosenberg wrote: >>> [...] >> >> In addition to Dan's comments - is your cable OK? Do you need a >> straight-through cable or a cross-over cable? Does the terminal >> requ

Re: Data from a serial port

2014-10-03 Thread Joel Rees
On Sat, Oct 4, 2014 at 5:52 AM, Jerry Stuckle wrote: > On 10/2/2014 8:24 PM, Ethan Rosenberg wrote: >> [...] > > In addition to Dan's comments - is your cable OK? Do you need a > straight-through cable or a cross-over cable? Does the terminal > require/honor DSR/TSR and RTS/CTS? If so, are thes

Re: Data from a serial port

2014-10-03 Thread Jerry Stuckle
On 10/2/2014 8:24 PM, Ethan Rosenberg wrote: > On 10/01/2014 03:20 PM, Dan Ritter wrote: >> On Sat, Sep 27, 2014 at 11:26:48PM -0400, Ethan Rosenberg, PhD wrote: >>> Dear List - >>> >>> I have an Avery Berkel POS [Point Of Sale] scale which I wish to >>> integrate into a POS system. The output is

Re: Data from a serial port

2014-10-03 Thread Dan Ritter
On Thu, Oct 02, 2014 at 08:24:21PM -0400, Ethan Rosenberg wrote: > On 10/01/2014 03:20 PM, Dan Ritter wrote: > >On Sat, Sep 27, 2014 at 11:26:48PM -0400, Ethan Rosenberg, PhD wrote: > >>root@meow:/home/ethan# setserial -g /dev/ttyS[0123] > >>/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 > >>/dev/

Re: Data from a serial port

2014-10-02 Thread Ethan Rosenberg
On 10/01/2014 03:20 PM, Dan Ritter wrote: On Sat, Sep 27, 2014 at 11:26:48PM -0400, Ethan Rosenberg, PhD wrote: Dear List - I have an Avery Berkel POS [Point Of Sale] scale which I wish to integrate into a POS system. The output is sent to a RS232 port. I do not know how to extract the data.

Re: Data from a serial port

2014-10-01 Thread Chris Bannister
On Wed, Oct 01, 2014 at 03:20:06PM -0400, Dan Ritter wrote: > > Well, one option would be to install minicom (apt-get will find > it for you), set your default serial port to /dev/ttyS0, set it > at 9600,7,e,1. Then plug it in and see if tapping W gets you > a response. > > /dev/ttyS0 will look j

Re: Data from a serial port

2014-10-01 Thread Dan Ritter
On Sat, Sep 27, 2014 at 11:26:48PM -0400, Ethan Rosenberg, PhD wrote: > Dear List - > > I have an Avery Berkel POS [Point Of Sale] scale which I wish to > integrate into a POS system. The output is sent to a RS232 port. I > do not know how to extract the data. > > Here is what I have about the R

Re: Data from a serial port

2014-09-30 Thread Bob Proulx
David Christensen wrote: > Ethan Rosenberg wrote: > >Wrote it myself. > > Then you need to learn how to program the serial port using whatever > language you picked. Your program will basically need to sit in a loop reading data from the point of sale serial port continuously. As data is read yo

Re: Data from a serial port

2014-09-28 Thread David Christensen
On 09/28/2014 01:09 PM, Ethan Rosenberg wrote: Wrote it myself. Please reply to the list. Then you need to learn how to program the serial port using whatever language you picked. I initially learned serial port programming in C from a book: http://www.amazon.com/C-Programmers-Guide-Se

Re: Data from a serial port

2014-09-28 Thread Chris Bannister
On Sat, Sep 27, 2014 at 11:13:28PM -0400, Ethan Rosenberg wrote: > Dear List - > > I have an Avery Berkel POS [Point Of Sale] scale which I wish to integrate > into a POS system. The output is sent to a RS232 port. I do not know how to > extract the data. Although this is not a Debian support qu

Re: Data from a serial port

2014-09-28 Thread Johann Klammer
On 09/28/2014 05:30 AM, Ethan Rosenberg, PhD wrote: Dear List - I have an Avery Berkel POS [Point Of Sale] scale which I wish to integrate into a POS system. The output is sent to a RS232 port. I do not know how to extract the data. Here is what I have about the RS232 port: ethan@meow:~$ dmes

Re: Data from a serial port

2014-09-27 Thread David Christensen
On 09/27/2014 08:26 PM, Ethan Rosenberg, PhD wrote: I have an Avery Berkel POS [Point Of Sale] scale which I wish to integrate into a POS system. The output is sent to a RS232 port. I do not know how to extract the data. Here is what I have about the RS232 port: ethan@meow:~$ dmesg | grep tty [

Data from a serial port

2014-09-27 Thread Ethan Rosenberg, PhD
Dear List - I have an Avery Berkel POS [Point Of Sale] scale which I wish to integrate into a POS system. The output is sent to a RS232 port. I do not know how to extract the data. Here is what I have about the RS232 port: ethan@meow:~$ dmesg | grep tty [0.00] console [tty0] enabled

Data from a serial port

2014-09-27 Thread Ethan Rosenberg
Dear List - I have an Avery Berkel POS [Point Of Sale] scale which I wish to integrate into a POS system. The output is sent to a RS232 port. I do not know how to extract the data. Here is what I have about the RS232 port: ethan@meow:~$ dmesg | grep tty [0.00] console [tty0] enabled