serial-port

Java RXTXcomm lib to connect to /dev/ttyACM0

谁说胖子不能爱 提交于 2020-02-03 09:28:32
问题 I'm using RXXTX java lib to connect to serial ports. I'm using this lib with no problems connecting to /dev/ttyUSB0 (1,2,3,etc). But when I want to connect to /dev/ttyACM0 the port its not found. CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier("/dev/ttyACM0"); the Exception is thrown: gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) I already listed all the ports but no success. 回答1: Processing and USB ports /dev

Java RXTXcomm lib to connect to /dev/ttyACM0

﹥>﹥吖頭↗ 提交于 2020-02-03 09:28:31
问题 I'm using RXXTX java lib to connect to serial ports. I'm using this lib with no problems connecting to /dev/ttyUSB0 (1,2,3,etc). But when I want to connect to /dev/ttyACM0 the port its not found. CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier("/dev/ttyACM0"); the Exception is thrown: gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) I already listed all the ports but no success. 回答1: Processing and USB ports /dev

Java RXTXcomm lib to connect to /dev/ttyACM0

瘦欲@ 提交于 2020-02-03 09:27:45
问题 I'm using RXXTX java lib to connect to serial ports. I'm using this lib with no problems connecting to /dev/ttyUSB0 (1,2,3,etc). But when I want to connect to /dev/ttyACM0 the port its not found. CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier("/dev/ttyACM0"); the Exception is thrown: gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) I already listed all the ports but no success. 回答1: Processing and USB ports /dev

boost::asio::async_read_until not calling handler

 ̄綄美尐妖づ 提交于 2020-02-03 02:00:59
问题 I'm learning how to use Boost:asio library with Serial Port. I wrote some code using synchrous write and read and I now want to use asynchrous but it's not working. Simple Example: void readHandler(const boost::system::error_code&,std::size_t); streambuf buf; int main(int argc,char *argv[]){ io_service io; serial_port port(io,PORT); if(port.isopen()){ while(1){ // ... getting std::string::toSend from user ... write(port,buffer(toSend.c_str(),toSend.size())); async_read_until(port,buf,'\n'

Projector control - RS232 / USB?

ε祈祈猫儿з 提交于 2020-01-31 08:53:58
问题 I've noticed a number of projectors have RS232 or USB ports that can be used for controlling the projector's functions, i.e. switching inputs and powering on and off. Does anyone know if there's an API around for controlling these functions programmatically? I'm using Java but especially with RS232 I'm guessing that's irrelevant as the protocol will be on a much lower level. If there's not a "standard" around (which I'm guessing there won't be) what would be the suggestion? At the moment I'm

Projector control - RS232 / USB?

元气小坏坏 提交于 2020-01-31 08:49:26
问题 I've noticed a number of projectors have RS232 or USB ports that can be used for controlling the projector's functions, i.e. switching inputs and powering on and off. Does anyone know if there's an API around for controlling these functions programmatically? I'm using Java but especially with RS232 I'm guessing that's irrelevant as the protocol will be on a much lower level. If there's not a "standard" around (which I'm guessing there won't be) what would be the suggestion? At the moment I'm

Projector control - RS232 / USB?

南笙酒味 提交于 2020-01-31 08:48:44
问题 I've noticed a number of projectors have RS232 or USB ports that can be used for controlling the projector's functions, i.e. switching inputs and powering on and off. Does anyone know if there's an API around for controlling these functions programmatically? I'm using Java but especially with RS232 I'm guessing that's irrelevant as the protocol will be on a much lower level. If there's not a "standard" around (which I'm guessing there won't be) what would be the suggestion? At the moment I'm

Unable to debug the kernel driver using Serial cable

那年仲夏 提交于 2020-01-25 12:55:07
问题 I am new to driver stuff. I have tried to debug the kernel driver using serial COM port without success. Could someone show me proper direction how to fix the problem? I am seeing the following messages on kd console. ERROR: DavReadRegistryValues/RegQueryValueExW(4). WStatus = 127 ERROR: DavReadRegistryValues/RegQueryValueExW(5). WStatus = 127 ERROR: DavReadRegistryValues/RegQueryValueExW(6). WStatus = 127 At this time, I pressed Ctl^D and kd console and I am seeing READ: Timeout. READ: Wait

Win32 API: how to read the serial, or exit within a timeout if wasn't a data

半城伤御伤魂 提交于 2020-01-25 06:36:47
问题 I need a function to read data from a serial port or return if none came within a time interval. E.g. on GNU/Linux you could use poll() or select() + read() . Anything analogous in Windows? Below is something I tried: it ought to work, but the function GetOverlappedResult() is either buggy or not well documented; instead of number of bytes read it reports nothing (not even zero, e.g. if I don't initialize the lpNumberOfBytesTransferred argument, it just contains junk) . // NOTE: the `file`

Win32 API: how to read the serial, or exit within a timeout if wasn't a data

随声附和 提交于 2020-01-25 06:36:24
问题 I need a function to read data from a serial port or return if none came within a time interval. E.g. on GNU/Linux you could use poll() or select() + read() . Anything analogous in Windows? Below is something I tried: it ought to work, but the function GetOverlappedResult() is either buggy or not well documented; instead of number of bytes read it reports nothing (not even zero, e.g. if I don't initialize the lpNumberOfBytesTransferred argument, it just contains junk) . // NOTE: the `file`