serial-port

serial device ignores EscapeCommFunction with C

孤街醉人 提交于 2019-12-11 16:44:10
问题 I am migrating (finally) from MSDOS to Windows XP for controlling a meter via the serial port. My old C DOS code works fine. I want to do as follows: meter is continuously taking readings every few sec, but does not send any info until it is requested by the computer when computer is ready to receive info from meter, it requests it. It does not accept info otherwise. My problem is that the readings are just coming into the computer as they are generated by the meter. I have set the DCB serail

Data from USB ~ Serial Port

限于喜欢 提交于 2019-12-11 16:09:48
问题 I would like to transfer data from a USB Host (of my Laptop or Android Device) to Serial COM port (of a Desktop PC) through a USB - Serial port(DB-9) adapter. Is there any library existed to do this task?? i have already studied and tried http://developer.android.com/guide/topics/connectivity/usb/host.html but failed. Can i send data by a using a java program or Android App from my Laptop or Android Device ?? Can i receive data by an app in Desktop PC and show us???? If so please guide me how

Serial port, equivalent of “full duplex” flow control?

蹲街弑〆低调 提交于 2019-12-11 15:54:20
问题 I have a document with connection information to a device over a serial port. It specifies "full duplex" as the setting for flow control. Under Windows, I have the following options for setting up the flow control: Xon/Xoff Hardware None What is the equivalent of "full duplex" in the above list? 回答1: "xon/xoff" is a synonym of "software flow control" (as opposed to "hardware flow control"). "full duplex" means "in both directions"; theoretically you can enable software flow control or

USB VCP connection fails occasionally

女生的网名这么多〃 提交于 2019-12-11 15:52:24
问题 My question is quite simple: I operate 20 CP210x (Silicon Lab) devices over an industrial 20 Port USB Hub. In one of about 1000 trials to open the port I get a problem: The call to CreateFile(portName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); is blocking and doesn't return. In this case it doesn't help to repeat or to restart my software. Only plugging out/in the device helps. Of course the port name is including backslashes, as required for higher COM Port numbers. The

Non-standard comport baudrates in windows

两盒软妹~` 提交于 2019-12-11 15:45:16
问题 Do the windows built in com port drivers support non-standard baudrates? (actually does windows have a built in driver for com1 & 2?) The reason I ask is I'm having trouble getting a reliable connection to a device that uses the unusual baudrate 5787. The device & PC talk briefly, then seem to loose the dialogue, and then get it again. Once a long message is sent, it gets lost at the other end, a short time later the dialogue is back. This sounds to me like the classic baudrate mismatch. Not

Serial port writes succeed, reads fail

僤鯓⒐⒋嵵緔 提交于 2019-12-11 15:24:59
问题 After I run Hyper Terminal or Docklight, my program works (writes and reads OK). But if I never run any of those, all my reads fail. So I guess I must be missing something in my serial port initialization code, but I can't figure out what. Here it is: Serial port initialization: bool CSerialPortDrivenHardware::InitSerialPort(){ m_SerialPort.Config( m_SerialPortConfig ); bool success = ( m_SerialPort.Open( m_SerialPortName ) == TRUE ); if( !success ) Log( LOG_TYPE_ERROR,

How to get Ubuntu/Raspian to recognise a Crouzet Millenium 3 PLC as tty device

一个人想着一个人 提交于 2019-12-11 15:17:41
问题 When I connect the 'Crouzet - Millenium 3 PLC' to my Ubuntu laptop via a USB serial cable the following dmesg output is given: [ 3494.555189] usb 1-2: new full-speed USB device number 21 using xhci_hcd [ 3494.711593] usb 1-2: New USB device found, idVendor=0403, idProduct=7d51, bcdDevice= 6.00 [ 3494.711596] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3494.711598] usb 1-2: Product: Millenium 3 USB cable [ 3494.711600] usb 1-2: Manufacturer: Crouzet Automatisme SAS [

device and drivers connections

最后都变了- 提交于 2019-12-11 15:05:45
问题 There is a device that is connected to the controller uart port (in Linux 2.6), and which generates an interrupt on gpio. I wrote the driver of the Space user to communicate with the device, but I want to move this driver into the kernel. Does anyone have a similar experience? There is a driver of uart port from freescale do not really understand how this driver connects to the device through function probe (). Not yet found where the structure of the device is created and at what point and

Dispatcher.CheckAccess() isn't working from my console application, is there a better way

丶灬走出姿态 提交于 2019-12-11 14:48:06
问题 I wrote an application in WPF / VB and separated the business logic and UI into different projects. The business layer uses a serial port which runs on a different thread, Now that I'm trying to write a command line interface for the same business layer, it seems to fail when .Invoke() is called. (no error, just doesn't work) I'm pretty sure the reason I had to add in checkaccess and .invoke was because I have collections that would be changed during processing the serial port data and wanted

Why is my serial communication not working?

流过昼夜 提交于 2019-12-11 14:27:26
问题 I looked in the manual (page 177) for the DE2 and as far as I understand it should be possible to do serial communication for instance via putty and a usb-to-serial cable to the board, so I take the program from the manual: /* A simple program that recognizes the characters 't' and 'v' */ #include <stdio.h> #include <string.h> int main () { char* msg = "Detected the character 't'.\n"; FILE* fp; char prompt = 0; fp = fopen ("/dev/uart1", "r+"); //Open file for reading and writing if (fp) {