I'm working on a project using an Arduino and as such, I'm reading from a serial port (which sends ints). I need to then write this serial communication to an LCD, which takes a char*.
I need to read several characters from the serial port (2 integers) into a string. After both have been received, I then need to clear the string to prep...
I have a python script that writes data packets to an arduino board through pyserial.
Sometimes while writing the code to the board pyserial raises an input/output error with errno 5
Some research says that this indicates an error while writing in the file representing the connection to the arduino board.
The code that sends, sends on...
Hi all,
I am currently linux API like sigio,sigaction etc to interface with serial ports in Linux. And for GUI I am using Qt 4.2. I know about 3rd party QextSerial but I would stay away from it. I also was tinkering with QSocketNotifier as an alternative.
Can someone give a rough example to r/w from serial port using QSockeNotifier.
...
Hi all,
I have created a sample application from where separate thread is started to read and process data from serial port. QSocketNotifier is used for detecting whether data has arrived on the serial ports or not. I start an event loop using exec() statement in run function of thread. But while running the application only once the so...
Hi all,
I am reading data from multiple serial ports. At present I am using Custom signal handler (by setting sa_handler) to compare and wake threads based on file descriptor information. I was searching for a way out to have individual threads with unique signal handlers, in this regard I found that select system call is to be used.
N...
CREATE TABLE u_account (
Jid serial primary key,
score int4
);
The primary key works fine (updates itself) ok when I update it like this;
INSERT INTO u_account ('score') VALUES ('122233344');
However when I insert a value like this;
INSERT INTO u_account VALUES ('122233344');
This updates the primary key;
I don't want the primar...
Hi,
I have a datagrid. I add a row to the datagrid using an ADD button. Once I add, I sort the datagrid based on a column. I also provide the serial numbers i.e. row numbers as first column to the datagrid. But, the serial number function does not apply after sorting. Hence, a new row added for e.g. row 5, based on sorting should be row...
So I have an Arduino connected to my Windows XP computer. It's just running a loop, sending a value over the serial port back to the computer every 100ms.
I want to make a Python script that will read from the serial port only every few seconds, so I want it to just see the last thing sent from the Arduino.
How do you do this in Pys...
Hi all :)
I've got an USB card reader that I need to access from Lazarus / Delphi.
The SDK is written in VB6 and talks to the serial port, so in Windows it installs a driver to map the USB port to a serial port.
I'd like to skip that step (eg so that the same code works in Linux), but I'm not very familiar with the USB protocol, so I ...
Hi I have the need to find the Baud rate and other settings for a serial port, Looking about on the web, it looks like I should be using GetCommConfig, This returns a TCommConfig record with what I assume is the data I need. The problem is the function I wote returns the wrong values.
The code below looks like it is working, but the bau...
Hi all,
I am using select call to communicate with an external subsystem (protocol for the same has been provided and implemented as a Qt thread) using serial port RS232. We do not have the hardware for the external systems and thus we have developed in house simulators using .Net 2.0 and C# to mimic the behavior of the underlying subsy...
What would be the best way to access the USB as a serial port on a android device (HTC Magic) ?
I am thinking about a OBD-II interface, can I do this on a startdard phone or more likely I'll need a modified firmware ?
...
I need to transfer data from the serial port to ethernet port . How can it be done ? Using software + hardware or only hardware will do ? If so what is the way i can move abt in and if it can be done using software is it possible using C ....
Thanks...
...
Is it possible to read the serial number of a USB drive using VB.
...
After writing several different custom serial protocols for various projects, I've started to become frustrated with re-inventing the wheel every time. In lieu of continuing to develop custom solutions for every project, I've been searching for a more general solution. I was wondering if anyone knows of a serial protocol (or better ye...
I have some questions about the DCB structure that’s used in Windows to control serial communication.
How should the EofChar and EvtChar fields be used?
Is having fParity set to true and fErrorChar set to false the same as fParity set to true and fAbortOnError set to true?
...
I wrote
import serial
There message are occured.
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/serial/__init__.py", line 20, in ?
from serialposix import *
File "/usr/lib/python2.4/site-packages/serial/serialposix.py", line 13, in ?
import sys, os, fcntl, termios,...
Hello everyone,
I am making an 8051 microcontroller communicate wirelessly with a computer. The microcontroller will send a string to its serial port (DB9) and the computer will receive this string and manipulate it.
My problem is that I do not know how to make the 8051 transmit the string just once. Since I need to manipulate the st...
Hi,
I'm currently working on a serial interfacing project based upon connecting to the rs232 port. However, seeing as a decent number of laptops and/or PC's seem like they might have their rs232 ports disappear within the next 5 years, I was considering using the RJ45 modular port for my project (EIA/TIA 568). However, I'm not quite sur...
I am sending data through serial port on Windows.But when i am going to read that data the system goes in infinite loop.System also hangs.Please give me the solution if anyone finds it.
...