📄 readme
字号:
ark3116 usb2serial linux driver-------------------------------------------------first of all thanks to krisfx for his code!this driver is _very_ experimental !ioctl calls are IGNORED !tested:- all baudrates work (150-230400baud), 75 & 460800 should now work, too- 8N1,7N1 & 6N1 seem to work (tested with an atmel atmega8 microcontroller)-> stopbit & parity untested !--------------------------------------------------------------SOME OBSERVATIONS:--------------------------------------------------------------ark3116 protocol:(abaud = 3000000/baudrate)--- set baudrate: reg(0x0003) <= 0x0083 (sometimes 82 ?!) reg(0x0000) <= lo(abaud) reg(0x0001) <= hi(abaud) reg(0x0003) <= 0x0003--- read modem control signals: val <= reg(0x0006) -> bit4+bit6 change if pulling controls low--- maybe write modem control signals: reg(0x0004) <= ?!? just an idea... not tested yet--------------------------------------------------------------registers:0x0000 - baud lo byte0x0001 - baud hi byte0x0002 - <seems like not used...>0x0003 - some kind of bank switch or write enable (0x83) ? or maybe this is control line setting ?!0x0004 - ?? maybe set control signals ?---------------------------------------------------------------i dont understand why the init does something like this: ARK3116_SND(41,0xFE,0x40,0x0001,0x0004); ARK3116_RCV(42,0xFE,0xC0,0x0000,0x0004, 0x01); ARK3116_SND(43,0xFE,0x40,0x0003,0x0004); ARK3116_RCV(45,0xFE,0xC0,0x0000,0x0004, 0x03); ARK3116_SND(46,0xFE,0x40,0x0002,0x0004); ARK3116_RCV(47,0xFE,0xC0,0x0000,0x0004, 0x02); ARK3116_SND(48,0xFE,0x40,0x0000,0x0004); ARK3116_RCV(50,0xFE,0xC0,0x0000,0x0004, 0x00); ... this is what the original driver does... i have no idea what this does ?! maybe the driver is setting/clearing rts/dtr or something ?! i dont know... but write to 0x0004 might be setting of control signals... -> need to check this ;)--------------------------------------------------------------contact me: ark3116_driver@auctionant.deLICENSE: GPL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -