Search Results

Search: Posts Made By: darwin_886
103,705
Posted By Chubler_XL
Since you specify using bash shell we can flush...
Since you specify using bash shell we can flush the input buffer using:

while read -rs -N 1 -t 0.1 2> /dev/null ; do : ; done

so your script would look like this:

#!/bin/bash

for i in 1 2...
2,024
Posted By Corona688
Are you attempting to write raw, binary...
Are you attempting to write raw, binary characters to the serial port? You were writing the literal characters 1, 0, 7, ' ', 0, etc.

# Set serial port in raw mode, so binary passes unmangled...
1,441
Posted By RudiC
Depending on your shell, a read with timeout 0...
Depending on your shell, a read with timeout 0 might work. In my bash: read -t0 A
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy