Hello, Can I ask for the best Go package for AT commands to communicate with GSM modem.
Arvin On Tuesday, June 25, 2019 at 2:11:15 PM UTC+8 maranatha wrote: > > I have been trying to use both Tarmigan's and Jacob's packages on Windows > and Linux. For basic serial reading they both seem to work just fine. > However, they both seem to break with higher baud rate and continues > streaming of data. In my case I was streaming sensor data at baud rate > 921600, that comes every few seconds. The expected byte size vary a bit > depending on the sensor readings from the physical environment, so I have > now added one extra character ("#") to be able to return the read out when > this character arrives. But this does not seem to be supported in any of > the available libraries that I have seen so far. Any idea how I could meet > my goal? > > On Friday, October 21, 2011 at 8:28:41 AM UTC+3, Tarmigan wrote: >> >> Nice! >> >> I also made a serial port package here: >> http://github.com/tarm/goserial >> >> I think you and I arrived at about the same API! I some commits from >> a couple months ago that add timeouts, parity, etc, but have not yet >> needed those and so have not yet tested them and so have not yet >> pushed them out to github. >> >> The package I made uses cgo+termios.h instead of syscalls for OSX, and >> it should also work on Linux, though I have not tested that either. >> One thing you might think about since you're doing syscalls anyway is >> using the IOSSIOSPEED ioctl which I think will let you set >> non-standard baud rates on OSX. >> >> One difference (for now) is my package also works on windows and you >> can cross compile from OSX (or linux presumably) to windows, which can >> be handy. >> >> -Tarmigan >> >> On Thu, Oct 20, 2011 at 6:59 PM, Aaron Jacobs <jac...@google.com> wrote: >> > Following an idea from Ostsol in an [earlier post] [1], I've created a >> package >> > for easily reading from and writing to serial ports in Go. You can find >> it >> > here: >> > >> > https://github.com/jacobsa/go-serial >> > >> > Currently it only works on OS X, but that's mostly just because I don't >> have >> > any Linux hardware to test on. I think making it work on Linux would be >> a >> > matter of updating some constants (and am happy to take pull requests). >> Even >> > so, it might be useful to somebody as-is. Let me know if you have any >> > feedback. >> > >> > Aaron >> > >> > [1]: >> http://groups.google.com/group/golang-nuts/browse_thread/thread/f28f5fc4f69e16ef >> > >> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f28b5149-cd72-4086-8095-5d66522e5eb6n%40googlegroups.com.