serial

Microprocessor to RS-232 realtime plot using PySerial/Matplotlib?

Greetings! I'm new to the world of Python and my programming skills are fairly poor but I'm trying to figure a way to use Python to display the output from an EEG circuit (using the OpenEEG circuit http://openeeg.sourceforge.net) The analogue output is amplified and processed via an ADC (in an ATmega8 microcontroller) and is converted ...

Change baseboard serial

Hi! I'm looking for any possible way to change baseboard serial programmatically. I should do that under Vista or Win 7, ideally it should be for any model, not specific. Actually, I could solve downloading any special tool from baseboard manufacturer or using DOS. But this I will do in case I won't find any other possible way. I know t...

Init of ManagementObject fails

In order to get the volume serial I wrote a function that looks like that: string drive = Environment.ExpandEnvironmentVariables("%SystemDrive%").Replace(":", ""); string id = getVolumeSerial(drive); private static string getVolumeSerial(string drive) { ManagementObject disk = new ManagementObject(@"win32_logicaldisk.deviceid...

excel time serial back to text

I have a time field of this format HH:MM:SS in many excel cells (when i import in as a csv). i would like to Attached the date field from another worksheet in and when I tried to concatenate =U10&" "&V10, let's said U10 is 22-Dec V10 is 18:14:01 will become 40169 0.759733796296296 so how can i convert a number like 0.7597337962962...

List machine's serial ports [Qt4]

I have an arduino-based device which connects through USB. I'd like to detect it from my Qt4 application, using QExtSerialPort (or whatever necessary), when it's plugged in. If this weren't possible, I thought I could somehow get a list of the system's port names and just try all of them in search for my arduino (where I'd implement s...

Serial Communication between Java RXTX and Arduino

I'm trying to communicate between my PC (Windows 7 using Netbeans and RXTX) with an Arduino Pro, using the serial port. The Arduino is actually connected to the PC using an FTDI cable. The code is based on the Java SimpleRead.Java found here. Currently the Arduino simply prints out a string when it starts up. My Java program should pr...

SerialPortEventListener Implementation

I am playing with the Firmata protocol which allows you to control Arduino through a serial protocol. I am reading sensor values using SerialPortEventListener listening for DATA_AVAILABLE event. But i notice a lot of latency it takes a second for the updated sensor values to be registered by my application, protocol runs at a baud rate o...

A Better Way To Build a Packet - Byte by Byte?

This is related to my question asked here today on SO. Is there a better way to build a packet to send over serial rather than doing this: unsigned char buff[255]; buff[0] = 0x02 buff[1] = 0x01 buff[2] = 0x03 WriteFile(.., buff,3, &dwBytesWrite,..); Note: I have about twenty commands to send, so if there was a better way to send the...

What is the simplest 'free' way to implement serial comms in Java?

I'm new to Java, and have set myself a project to write so that I can do some "hands on" learning. I'm fluent with c++, but want to add another langauge to my skill-set. Anyway, part of that project includes serial communications. I'm targetting a Windows XP platform, and cross-platform isn't really needed for this project. I'm using N...

Receiving a 'BREAK' in tcl 8.5.1 causes COM port to quit working (win xp)

I'm working on a program which makes heavy use of a serial port. It is currently a windows-only program (unfortunately :-), running on Windows XP. The TCL version is 8.5.1.0 - it may or may not be an 'official' TCL, not sure. Everything works perfectly until the device on the other end sends a BREAK (or, just disconnect the serial por...

How to protect my joomla custom component with serial?

How to protect my joomla custom component with serial? I would like to be able to sell it, and use some sort of license key or similar. Can anyone tell me what sort of options I have? Thanks. ...

serialization of function/api calls (at a target) over some transport

I have set of api's to be called over a transport (say for eg RS232 and some other transports). Essentially the calling side runs on a host and sends something like this: (func_name, param_1, param_2, param_3) over the RS232 link and a bit of code at the other end does the actual function calling. To transfer the function name and par...

Arduino serial monitor and java resets variables

I wrote a small app to turn on an LED light connected to my Arduino board. The app sends in a certain byte value to turn on the LED and a certain value to turn it off through the USB port. The strange thing is that for some reason when I use the serial monitor in the arduino development environment to turn on the LED and then close the ...

Install only on one machine.

Hi. There is a Windows program which is downloaded after entering a valid serial in a web page. Now, I want to limit the user to install the program only on one single PC, the one he or she installed for the first time. I need some advice on creating a such system. Thank you. P.S. Serial key must be entered on the web page instead of t...

COM port terminal program

Hi, I have developed an embedded application which requests status information from a device down a communications channel. My customer requires that these will be sent with a specific time period, so what I am looking for is a PC terminal application which can send a text string command repeatedly at a set interval over a period of ti...

C# serial rs232 parity error

I'm trying to get a simple serial reader going in C# to read info from an rs232. I'm using VS2008. I can receive data fine with hyperterminal and python but I keep getting parity errors every time I try to transmit a character to C#. Number's work fine, it's just the characters. It's configured exactly the same as hyperterminal: 9600baud...

How to send file to serial port using kermit protocol in python

I have device connected through serial port to PC. Using c-kermit I can send commands to device and read output. I can also send files using kermit protocol. In python we have pretty nice library - pySerial. I can use it to send/receive data from device. But is there some nice solution to send files using kermit protocol? ...

Linux Serial Port Communications Timeouts - VirtualBox passthrough

I am using Virtual Box USB passthrough features to attach a serial port to Ubuntu (/dev/ttyUSB0). This port is used to communicate with a 3dm-gx2 IMU. The same port works with the vendor supplied Windows code where they set specifically send/receive buffers and timeouts. I can't get the serial port to function from Linux (Need it for dep...

asynchronous serial transmission C

So i'm working on a program, wich is vaguely going to resemble Br@y's Terminal, but running from the commandline in linux It will do asynchronous transmission, out the serial (Com) port. Now i think the Header/library i need for this is the termios.h Now i've only used posix a little before and i;m finding it rather heavy going digging...

undefined referance to LibSerial

So i'm writing a serial transmision program, and have just changed over to using C++, it been a while since I used C++ (I've been working with C recently, and before that java) Now I need to use LibSerial, (it seems much simpler to use than C's termios) my code is: //gen1.cpp #include "string2num.h" // a custom header #include <iostr...