Important: ILPER for Linux -- bug fix
|
11-24-2016, 11:24 AM
Post: #1
|
|||
|
|||
Important: ILPER for Linux -- bug fix
Hi,
I've been trying to get the PILBox to work with OpenBSD and found out that it does not work. The reason is twofold, on one hand Christophe Gottheimer's Linux port only supports 9600 bps, while the new PILBox firmware no longer supports the slow speed. So I looked at the code and found out that it has a very straightforward bug, in that it does not set the serial speed correctly. Here is the trivial change in the source code that makes it work @ 115200 bps: % diff ilmain.c ilmain-orig.c 583,584c583 < tp.c_cflag = CS8 | CREAD; < tp.c_ispeed = tp.c_ospeed = B115200; --- > tp.c_cflag = B9600 | CS8 | CREAD; I am so happy that it works now, since I kinda like *nix systems better. Also the code compiles out of the box on OpenBSD (you only need to use gmake instead of make). Good work! BTW Christophe has posted ILPER for Linux on github, so its better to get future versions from there, because they are likely to be up-to-date. **vp |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Important: ILPER for Linux -- bug fix - vassilisprevelakis - 11-24-2016 11:24 AM
RE: Important: ILPER for Linux -- bug fix - cgh - 11-24-2016, 11:52 AM
RE: Important: ILPER for Linux -- bug fix - rprosperi - 11-24-2016, 03:28 PM
|
User(s) browsing this thread: 1 Guest(s)