I don't know why it only got thumbs down on sourceforge, but it works well for me. The best thing about it is that is also emulates the hardware pins (RTC/CTS DSR/DTR). It even implements TIOCMGET/TIOCMSET and TIOCMIWAIT iotcl commands! On a recent kernel you may get compilation errors. Just insert a few lines at the top of the module/tty. The devices are /dev/tnt. While the driver looks promising, it seems unstable. I don't know for sure but I think it crashed a machine in the office I was working on from home. I had to download free serial port monitor software to check the flow of data through a COM port. I have a very old computer and sometimes wish I could still use it without having to use adapters. The code written for this project first enables the serial port with the help of the function Serial.begin(). It then writes the entire EEPROM with white spaces with the help of the function EEPROM.write(). I can't check until I'm back in the office on monday. The second thing is that TIOCMIWAIT does not work. The code seems to be copied from some . The handling of TIOCMIWAIT seems in place, but it never wakes up because the corresponding call to wake. There was an initialization missing, and the completely untested TIOCMIWAIT code caused a crash of the machine. I spent yesterday and today rewriting the driver. There were a lot of issues, but now it works well for me. There's still code missing for hardware flow control managed by the driver, but I don't need it because I'll be managing the pins myself using TIOCMGET/TIOCMSET/TIOCMIWAIT from user mode code. If anyone is interested in my version of the the code, send me a message and I'll send it to you.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |