Comments (7)
the problem with the 20 secs is related to the device itself, because it has some blocking timeouts in its startup routine and has nothing to do with the serial connection
from serial.
"Only answering after 20 secs" sounds like modemmanager tries to grab it. Add it to the udev usb blacklist (VID/PID)
from serial.
Is there something like "strace" for windows? It would be interesting to compare the go version with a program that works.
Maybe something like https://msdn.microsoft.com/en-us/library/windows/hardware/ff552060(v=vs.85).aspx or https://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Sorry, I don't use windows much (and don't have a windows computer or VM to test with at the moment).
from serial.
Do other serial programs on Windows work (e.g. Termite)?
from serial.
Experiencing this problem with Windows as well.
from serial.
Do other serial programs on Windows work (e.g. Termite)?
As i stated in the original post, other programs and libraries on Windows (python, c, putty, etc) work without issues.
from serial.
It seems that the device i was using requires some sort of Flow control. I found out by trying termite on Windows, which also only worked when using RTS/DTS. It seems that other libraries and programs, e.g. putty, are setting this implicitly.
Using another library (https://github.com/jacobsa/go-serial) with support for Flow control seems to be working better. It would be nice to have support for flow control in this library too
from serial.
Related Issues (20)
- Uart list HOT 1
- Reading a predefined amount of bytes - RS485 mode HOT 1
- Can't compile on MacOS HOT 3
- List Available Serial Ports
- Single byte []byte{0x0f} is not transmitted
- Add SetReadTimeout(readTimeout time.Duration) function.
- Add SendBreak method
- How to set DTR RST enable
- Unable to read AT command response on windows 10 machine using 8 Port USB Modem Pool HOT 2
- Timeout problem with io.Reader
- Can I use multiple Serial ports in one code for simultaneously reading? HOT 1
- Connecting to existing port crashes PC
- Gen2 License plate recognition is not working HOT 1
- How catch Lost Serial port(for example USB virtual rs-232 unplug) HOT 1
- lost data via bufio.Read HOT 2
- [Question] How To Send Break Signal? HOT 1
- Problem with syncing 3 receiving bytes HOT 1
- all serials HOT 4
- There is no error ReadTimeout HOT 2
- not clear buffer splitting when reading HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serial.