Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.system > #803
| Newsgroups | comp.os.linux.development.system |
|---|---|
| Date | 2022-02-17 06:51 -0800 |
| References | <e5ca5159-aee4-4c0c-acdb-350568f124f2@f19g2000yqo.googlegroups.com> <gs1gvn$502$1@daniel-new.mch.sbs.de> <yKidna89bfSwA3nUnZ2dnUVZ_qKdnZ2d@posted.visi> <ab090783-7175-47b9-bb4f-505eb831c046@y9g2000yqg.googlegroups.com> |
| Message-ID | <c5ca8a3f-672c-4776-8eed-e270f6d09b42n@googlegroups.com> (permalink) |
| Subject | Re: Reading serial port with BASH only |
| From | Juan Antonio Bacallado <juanantonio@centrosturisticos.com> |
El miércoles, 22 de abril de 2009 a las 14:28:31 UTC+1, Tomáš Kavalek escribió: > Hi all, > the solutions was very simple, and here it is: > #!/bin/bash > # Port setting > stty -F /dev/ttyS1 raw speed 9600 > # Loop > while [ 1 ]; do > READ=`dd if=/dev/ttyS1 count=1` > echo $READ > done Hi Tomas, really works to read from serial, could you help me I want to do something on bash to read and act like a daemon all the time like keyboard input, read what nfc near and enter character... And also bash script to write on it, i have tried WRITE=`dd if=code of=/dev/ttyS0 count=1` in code file is the number for example 051755F thank you in advance.
Back to comp.os.linux.development.system | Previous | Next | Find similar
Re: Reading serial port with BASH only Juan Antonio Bacallado <juanantonio@centrosturisticos.com> - 2022-02-17 06:51 -0800
csiph-web