serial

What is /dev/ttys# (notice the little s)?

I'm working on linux, trying to get the serial port to work. I know /dev/ttyS0 is a serial port, but what is /dev/ttys0? ...

Robust and easy to implement serial bus (automotive application)

What serial communication bus would you use in a automotive embedded system if your main selection criteria were: * Electrically robust * Slow speed (32 kb/s) * Easy to program * Easy to interface with microcontrollers It won't be transferring much data, but it will need to be transferred periodically at high speed (100 - 500 Hz). I f...

Check if serial port is listening

I have an Arduino sending and receiving instructions with a python script via a serial port. The Arduino takes a button state and when it is pushed it will send a message via serial to a python script and await a response. (via Serial.available()). Works well enough. However if the python script has crashed for whatever reason (ideally...

Serial Communication with Windows XP/win32

Hi, I am working with a peripheral device that needs to be communicated through serial. I can send it commands using Hyperterminal, but now I need to write programs that will let me do it without Hyperterminal. Can somebody point me to a website and/or show me a sample hello world program to get me started? I have searched for many s...

php executing an executable (that writes to the serial port) and freezes

I have a php script that is executing an executable that writes to a serial port. However, everytime it runs system("c:\Untitled1.exe") it just opens up a cmd window and freezes. Anybody know how to fix this? Or if there is an easier way to get PHP to write to the serial port directly? (I've already tried these two: http://blogs.vinutho...

Securing .NET application with keys

Hi, I am at the point where I need to add keys to my app. What are some of the possible solutions you guys used? I've looked at an earlier post so far, anything else before I decide. My 2 influencial factors are: Price Ease of use Thanks ...

Events/Interrupts in Serial Communication

I want to read and write from serial using events/interrupts. Currently, I have it in a while loop and it continuously reads and writes through the serial. I want it to only read when something comes from the serial port. How do I implement this in C++? This is my current code: while(true) { //read if(!ReadFi...

Java Serial Communication on Windows

I've been looking around for a Java API that can communicate with Serial on Windows/Win32 but many of the API's I've checked out are either for Linux, too outdated, or just had bad critics. Can someone recommend one to me that they've tried or knows about that is easy to implement on Windows XP? ...

Creating a Serial Port in code in VB.net

Hi, I am trying to create a serial port in VB.net using code only. Because I am creating a class library I cannot use the built-in component. I have tried instantiating a new SeialPort() object, but that does not seem to be enough. I'm sure there is something simple I am missing and any help would be greatly appreciated! Thanks! P.S. ...

Free Modem / Serial Communications Library or Scriptable App with ZMODEM/KERMIT

My task appears simple at first: dial into a terminal over a modem, login, possibly send some other characters, and then receive file(s) via ZMODEM or KERMIT .. or send a file via ZMODEM or KERMIT. I've been tearing my hair out trying to get this working correctly. Mostly I'm stuck on the ZMODEM protocol. I have a working implementation...

xmodem for python

Hi All: I am wiriting a program that requires the use of XMODEM to transfer data from a sensor device. I'd like to avoid having to write my own XMODEM code, so I was wondering if anyone knew if there was a python XMODEM module available anywhere? Al ...

How do you handle large data transfers on very memory constrained, embedded systems?

I have a microcontroller that must download a large file from a PC serial port (115200 baud) and write it to serial flash memory over SPI (~2 MHz). The flash writes must be in 256 byte blocks preceded by a write command and page address. The total RAM available on the system is 1 kB with an 80 byte stack size. This is currently working ...

Custom serial terminal

I am trying to develop a custom application which has a built-in serial port terminal, but it will be able to suspend terminal and do some I/O in the custom command and data format. e.g. When I click "Get Data" button, the software will send some binary command and get some binary data in return and do its stuff with the data. And the t...

Accessing half-duplex serial port with POSIX

I'm asked to read from and write to a half-duplex serial connection using POSIX calls (more specifically, writing in C on Linux 2.6.x). I'm having slight troubles finding detailed information on that particular model (most pages concentrate on full-duplex) and as I am getting slight anomalies when reading, I wanted to check whether maybe...

Which simple future-proof Delphi serial comms code to use?

I've been a fan of Turbopower Async Pro for years, now taken up on SourceForge and it works very well. However, it's complex and I've never really made use of its features other than the port component. I'm updating my code for D2009 etc and am tempted to move to something simpler since I have my own wrapper around it. There are lots of ...

CANopen PDO

Hi, I am trying to understand the CANopen protocol. For now, I do not have any CAN hardware nor the CANopen stack to experiment with. I would like to know how to write a Java program to simply interpret CANopen messages that are received at the RS232 port. Questions Are there CAN interfaces that are installed as a serial port? Will I...

How to test serial / Hyperterminal integration with C#?

I have to develop software for a USB scale that, when you press a button on it, sends serial communications over USB. I can see the values in HyperTerminal. I am going to use the .NET classes for Serial communication to trap the data. The problem is, I don't have the scale. The scale is connected to a remote computer I can RDP into. Wh...

What's a good, free serial port monitor for reverse-engineering?

I'm reverse-engineering a serial protocol and getting frustrated by bad tools. Does anyone know of a good, free tool for logging data to/from serial ports on Windows? Requirements: Must be free Must not take control of the port (i.e. must hook the file APIs or the kernel rather than trying to open the device) Must have some sort of f...

Binary data with pyserial(python serial port)

serial.write() method in pyserial seems to only send string data. I have arrays like [0xc0,0x04,0x00] and want to be able to send/receive them via the serial port? Are there any separate methods for raw I/O? I think I might need to change the arrays to ['\xc0','\x04','\x00'], still, null character might pose a problem. ...

Converting serial port data to TCP/IP in a linux environment

Thank you in advance. I need to get data from the serial port of a linux system and convert it to TCP/IP to send to a server. Is this difficult to do? I have some basic programming experience but not much experience with Linux. Are there any open source applications that do this? Again thank you for any help. ...