albenik / go-serial

A cross-platform serial library for go-lang (custom implementation based on http://go.bug.st/serial.v1)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nonstandard baud rates

samkristoff opened this issue · comments

Any ideas on how to support non-standard baud rates? I'm specifically trying to use 1,250,000

Thanks!

@samkristoff
I did a little trick to make it possible on linux: https://github.com/renathoaz/go-serial

try it.

@renathoaz Please look at fba195e

I took you first implementation and implemented it ONLY for linux build. Because no unix.TCGETS, unix.TCGETS2 on darwin or freebsd and I have no time to research implementation for non-linux os.

@albenik I missed this detail, I was with a little urgency to have custom baudrates. Well I tested your implementation with my device that runs on 5787 baudrate. Everything worked fine. I will use your lib, since I have no free time to give maintenance to mine fork. I will wait for you merge. Thank you for your lib and time.