I have a digital compass TDCM3, its manual is here
TDCM3 Manual
I want to read direction from TDCM3 on PC or embedded PC(wince), I use pySerial to open a com port and read data from TDCM3:
import serial
# Open COM port
device = serial.Serial(0)
device.setRTS(True)
print device
while True:
data = device.read()
print repr(data...
After strugling to connect to a device for the past few hours only to find that it had a "ODD" parity bit in its connection settings, I have to ask.
Why have an Odd, Even, None, parity bit?
I can understand the reason to have one of the three types (error checking) but why all three. It seems like its created just to annoy system int...
Is it safe to read and write to a serial port at the same time via different threads (one read thread and one write thread)? Would it be necessary to add locking around reading/writing in each thread?
...
I need to have a physical button that when pressed will be noticed by my program.
There are many types of usb-buttons that are preprogrammed to open a website, shutdown the computer and so on. And I have seen some projects using buttons and serial port.
But none of them "have it all", an easy description of how to put togheter the hardw...
I am trying to get two windows mobile devices to communicate with each other.
The API I am using (EMDK) says:
Any Microsoft API can be used for serial communication after the pairing is completed.
So, can anyone point me to an example of serial communications using C# .NET (Preferably Compact Framework).
...
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...
I am working on a program that reads in from a serial port, then parses, formats, and displays the information appropriately. This program, however, needs to be run for upwards of 12+ hours - constantly handling a stream of incoming data. I am finding that as I let my app run for a while, the memory usage increases at a linear rate - not...
I've got a little application written in C# that listens on a SerialPort for information to come in. The information comes in as: STX + data + ETX + BCC. We then calculate the BCC of the transmission packet and compare. The function is:
private bool ConsistencyCheck(byte[] buffer)
{
byte expected = buffer[buffer.Length - 1];
...
Hi,
Could anyone tell me how to format the serialport.write method in c# for the following get memory command of a digital multimeter?
DLE
STX
Command
arg1
arg2
arg3
DLE
ETX
10h
02h
4Eh
00h
00h
00h
10h
03h
Many thanks
...
I have written a program in .NET that listens to a particular Serial Port and processes the data that is being received. I wrote a test program using com0com (the Null-modem emulator) and my program was working fine. I even tested it with HyperTerminal and that seemed to work fine too.
However when I interfaced the software with the orig...
Hello,
I've been developing a windows app in .net C# for GSM Modems and i've come across a strange error:
System.ObjectDisposedException was unhandled
Message="The secure parameter identifier was closed (pt: O parâmetro identificador seguro foi fechado)"
Source="System"
ObjectName=""
StackTrace:
at Microsoft.Win32.Unsafe...
Hi,
In my program I read from the serial device (Linux, 8N1) without any problem. But in the case I want to write a single bit, I get nothing out on the interface. I assume that my serial output settings are wrong. But there aren't that many ways how to set c_oflag...
My code:
#define TTYDEVICE "/dev/ttyS0"
#define BAUDRATE B9600
in...
Is there a term used for whether a serial port echos characters received remotely versus having the local machine echo characters sent locally? I am looking to establish a SCPI command for turning on/off this remote echo protocol. Do most serial interface systems rely solely on echo characters locally when desired?
...
I'm not clear on how to write simple byte code arrays with ruby, more-so I'm absolutely stumped on how to use the Ruby SerialPort library, well to be honest I have it working pretty well however I have only been successful in sending ASCII over the serial port.
For example it's really simple to write ASCII:
@sp = SerialPort.new "/dev/...
Hi, I'm an embedded programmer trying to do a little bit of coding for a communications app and need a quick start guide on the best / easiest way to do something.
I'm successfully sending serial data packets but need to impliment some form of send/ response protocol to avoid overflow on the target system and to ensure that the packet...
Hi,
I am a .NET programmer.
Are there any web based resources to pick up Clinical laboratory interface programming, using Serial Ports and ASTMH protocol ? Or any books ?
When i googled i found the ASTMH site which apparently publishes the standard. My specific problem is that i have developed a C# program to connect a Lab Info System...
I am working on write a program that reads and writes from the barcode
my problem when writing (send command to barcode)
I read in pdf manufacturer barcode that the command of capturing the image is IMGSNP so i pass it to write function as follows serialPortObj.write ("IMGSNP")
But Why does not have a barcode to respond to the comman...
I have a infrared device (both transmitter and receiver). I've connected the receiver to the serial COM port and I send IR signals using the transmitter.
I'd like to monitor theese signals and whenever there is no signal, invoke another thread (sms sending code).
If I check the signals on hiperterminal, I get some unreadable values.
W...
Hi guys-
I'm working on a SerialPort app and one very simple part of it is giving me issues. I simply want to read a constant stream of data from the port and write it out to a binary file as it comes in. The problem seems to be speed: my code has worked fine on my 9600 baud test device, but when carried over to the 115200bps live devic...
I would like to use the Win32::SerialPort module under Windows XP to read a text string from a COM port.
There is a scale attached to the serial port which continuously sends the current measured weight. Since I'm also using Win32::GUI I need a way to read that non-blocking. What's the best way to do this? Should I use Lookfor or stream...