As title says, I've been trying to find a portable library with C/++ bindings for doing basic COM-port communication for an application I'm servicing. Windows/Linux support is a minimum.
As I'm not the original author of the software, and I'm not allowed to alter the details of the contract, the library has to be licensed so that I will...
Hi, all.
I'm using the javax communication API to connect the serial port, and I can send and receive data with it. But there's a problem, when the main method is over, the program is still running. I tried debug mode and found that when executed "SerialPort.addEventListener(); notifyOnDataAvailable(true);", a Win32SerialPort Notificatio...
Hi,
I am looking to develop a specialized browser plugin that will interface with the local COM port (mainly read input).
I assume this can be easily achieved with ActiveX technology, but want to make sure Firefox/Safari/Chrome browsers (let alone, Linux & Mac OS) don't get left behind.
Which technologies are available that can serve ...
Hi,
I planning on the development of a website that will be visited by users with specialized hardware (a card game that communicates hands via bluetooth).
The website needs to identify when the Bluetooth item is connected, and be able to read data from it - it could use the serial COM port as well since the link is serial-over-bluetoo...
When using a serial port via POSIX, it's recommended to save the original attributes using tcgetattr() before changing them with tcsetattr(), and then restore them before closing the port. What about when a program is terminated by pressing control-C or when the program receives SIGINT? I haven't seen this covered in any of the serial tu...
I've written an application which reads from a serial device at a very fast rate. The serial port object however, fails to fire the DataReceieved event after about 20 min of continuous operation. Disconnecting and reconnecting the serial programmatically allows the event to work again but for only another 20 min.
I tried using DiscardIn...
Basically, I want to put my computer in the middle of a serial line and record the conversation going across it. I'm trying to reverse engineer this conversation and eventually emulate one end of the conversation.
Rough Diagram of what I'm trying to do:
Normally, I have this:
__________ __________
| | | ...
I've found a scale, Detecto AS-350D (http://cardinal-detecto.centralcarolinascale.com/AS-PC-Computer.htm), that hooks up to a computer. I was hoping someone could help me figure out how to get the information (weight) from it. I've looked around but can't seem to find any information on it. I've never wrote a program where I accepted d...
I am hoping this is a simple stupid noob mistake that can be fixed with the addition of a single line of code somewhere.
I'm using pySerial to read in serial data from a USB port and print it out to standard output. I'm running Mac OSX 10.6. I open terminal and type "python", then the following:
>>> import serial;
>>> ser = serial.Seri...
I want to communicate with my serial port in python. I installed pyserial, and uspp for linux. Still, when I run the following code:
import serial
ser = serial.Serial('/dev/pts/1', 19200, timeout=1)
print ser.portstr #check which port was really used
ser.write("hello") #write a string
ser.close() #
it gives the following error:
...
I'm trying to get a list of available COM ports with the "Windows 2000"-method explained here:
http://www.codeproject.com/KB/system/setupdi.aspx
My current code: http://pastebin.ca/1977670
This is what I get:
\\?\ftdibus#vid_0403+pid_6001+ftf479xra#0000#{86e0d1e0-8089-11d0-9ce4-08003e301f73}
USB Serial Port (COM13)
USB Serial Port
\\?...
I've run into a problem where the open function never returns when I try to open a serial port. It doesn't happen all the time, and the problem disappears for a while if I unplug my USB to serial adapter and plug it back in. My code looks like this:
fileDescriptor = open(bsdPath, O_RDWR | O_NOCTTY);
where bsdPath is /dev/cu.KeySeria...