serial

serial type produce only even or odd numbers in postgresql

I want set some constraint to the serial type,it only produce even or odd numbers. ...

microcrontroller output to python cgi script

I bought this temperature sensor logger kit: http://quozl.netrek.org/ts/. It works great with the supplied C code, I like to use python because of its simplicity, so I wrote a script in python that displays the output from the microcontroller. I only have one temperature sensor hooked up to the kit. I want the temperature to be displayed...

Send file over serial port with Linux and C

Hi all, i'm developing an application that reads data from a serial port and sends it over a TCP connection, and vice versa. Unfortunately, while reading data from serial port, it never stops. It does not detect EOF mark, nor EOL or some other special character. So, how could i detect an end of file (or "end of connection") over serial ...

Comprehesive information on serial ports and programming?

What are some comprehesive sources on serial programming? Ideally they would cover things like: history of devices current and future uses how serial devices work protocols and, of course, how to program, preferably in C/C++ ...

Prefered method of notifying upper layers about received message

Hi, I'm writing a RS485 driver for an embedded C project. The driver is listening for incoming messages and should notify the upper layer application when a complete message is received and ready to be read. What is the prefered way to do this? By using interrupts? Trigger a SW interrupt and read the message from within the isr. Le...

Steps to publish Software to be purchased via Registration

I'm about to get finished developing a windows application which I want to release as shareware. It was developed in C# and will be running on .Net 3.5+ machines. To use it the user will have to be online. My intent is to let the user try it for 30 days and then limit its functionality until a registration is purchased. The installer w...

Problem receving in RXTX

I've been using RXTX for about a year now, without too many problems. I just started a new program to interact with a new piece of hardware, so I reused the connect() method I've used on my other projects, but I have a weird problem I've never seen before. The Problem The device works fine, because when I connect with hyperterminal, I...

Is constant polling in RXTX necessary?

While trying to figure out this problem (any help there is appreciated), I ran RXTX while monitoring its activity using PortMon and noticed that RXTX constantly checks if data is available, even when the Java client reads from the gnu.io.SerialPort object only through a SerialPortEventListener. Why is this? Is it a poor implementation ...

How do you design a serial command protocol for an embedded system?

I have an embedded system I'm communicating with over serial. The command structure right now is designed to be operated interactively: it displays a prompt, accepts a few commands, and displays results in a human-readable form. I'm thinking about changing this to a more machine-usable format, so I can talk to it through a MATLAB GUI wi...

RAD and BlinkM, how to control a BlinkM, with an Arduino through RAD

So I'm running RAD on my MacBook, I've been able to send serial commands with screen to the device and just light LEDs and simple stuff with the pins connected to the Arduino, however I have been unable to use any of the blinkM methods that RAD offers. They just fail to compile. Does anyone know how to control a blinkM with RAD? ...

Serial communication terminal alternatives for windows

I'm looking for a winxp terminal tool that will send/receive raw bytes, not just printable ASCII like the hyperterminal that ships with winxp does. Preferably open-source. ...

Serial port access in Adobe-Air

I am looking to use Adobe Air to visualize information coming from the Serial port. Is there a way to do this naively in Air? I'm assuming not. If this is the case, would my best route be to create a native application that makes the serial port available via a TCP/IP connection then connect to it locally? or would a different socket t...

How can i CloseComm, OpenComm, WriteComm and ReadComm with the windows unit?

I have an old comm unit that uses WinTypes,WinProcs. As i understand these were merged too the Windows unit. Are there similar functions in the Windows unit? ...

MacPython: programmatically finding all serial ports

I am looking for a solution to programmatically return all available serial ports with python. At the moment I am entering ls /dev/tty.* or ls /dev/cu.* into the terminal to list ports and hardcoding them into the pyserial class. ...

any command line com port query tools?

ok folks, heres my dilemma i want to make a chat program that uses sms as its base engine.. to do this i need to communicate with my gsm phone via bluetooth attached to com 7 on my computer.. i can do this fine using hyperterminal, tera term etc. but to hav an un-obtrusive, friendly interface i need a command line tool to send AT command...

send string to serial

Buongiorno, I'm trying to send a simple string to a serial port to command an instrument for noise measures. The strings are very easy: "M 1" = instrument on "M 2" = instrument off "M 3" = begin the measure "M 4" = stop the measure I've found this program: import serial ser = serial.Serial(0) #Seleziona la porta seriale COM4 ser.baud...

Serial programming: measuring time between characters

I am sending/receiving data over a serial line in Linux and I would like to find the delay between characters. Modbus uses a 3.5 character delay to detect message frame boundaries. If there is more than a 1.5 character delay, the message frame is declared incomplete. I'm writing a quick program in C which is basically fd = open(MODEM...

Getting mother board serial number without WMI and without authentication

Is there any way to get mother board serial number without using WMI and without authentication of remote machine. ...

How to uniquely identify a computer based on Gmail, Skype and Apple updates

Hi folks, I bought an iMac some time ago. Although it was stolen some time ago, I managed to get the Serial Number from the provider who sold it to me. The point is that I know who took it and also that he is using it. I have received gmail from him and also Skype. Could I somehow identify that serial number based on those messages? I...

Can I use a USB-to-serial adapter to talk to my development board from VMWare Fusion?

I have a Linux virtual machine running on VMWare Fusion (on Mac OS X) that I intend to use as a development environment for an embedded system. Would it be possible for my Linux VM to talk to my embedded system's serial port using a USB-to-serial adapter? Any recommendations for what sort of adapter I should get? ...