Whats the best way to send float, double, int16 over serial on Arduino?
The Serial.print() only sends values only ascii encoded. But I want to send the values as bytes. Serial.write() accepts byte and bytearrays, but whats the best way to convert the values to bytes? I tried to cast an int16 to an byte*, without luck. I also used memcpy,...
Hi,
I have a DLL which I intend to send to a 3rd party and I'd like to protect it by restricting it to run only if a specific USB device is connected.
I'm using the setupapi to get the device's serial number (by calling SetupDiGetDeviceInstanceId()).
I would like to make the verification hard to track in case someone disassembles the DL...
Hi,
I'm revisiting a communications protocol parser design for a stream of bytes (serial data, received 1 byte at a time).
The packet structure (can't be changed) is:
|| Start Delimiter (1 byte) | Message ID (1 byte) | Length (1 byte) | Payload (n bytes) | Checksum (1 byte) ||
In the past I have implemented such systems in a procedu...
Hi
I'm having some problems making Python talk to a hardware display using pyserial.
Some of the display's functions require Signed Word to be sent as arguments after commands (ie. X or Y on display screen).
I've been getting by with chr() previously, but that only works with numbers < 255.
I've tried the following for conversion but ...
hi fellows,
i want to send integers to arduino via serial.
for example when i send "1" the data received by arduino is "49"
and when i send "a" the data received by arduino is "97"
there were two functions in python; ord() and unichr()
for example unichr(97) = u"a"
and ord(u"a")=97
but im not that good at C language.
...
hi fellows,
i got one of these gyros
http://www.xheli.com/wag0diadpiin.html
it has 6 pins 3,3
im afraid i might harm the device so i wanted to ask here.
how should i connect it to arduino.
and what code i should use?
...
Hello Everyone!
I am trying to figure out how I would go about taking serial information from an arduino which controls a javascript browser extension I have running in an open browser locally on a computer. It would seem that I would need some sort of middleman to internalize the serial readings and pass them to the browser (to activa...
I am currently writing an OS X driver for the NewTek LiveControl LC-11 as seen here.
newtek.com/addons/livecontrol.php
In the course of my reverse engineering I have found that it is using a serial to USB converter and that it communicates with hexadecimal output when a button is pushed or an analog value changes. Using this output...
Hi
I run a small site and use PostgreSQL 8.2.17 (only version available at my host) to store data.
In last few months there were 3 crashes of database system on my server and every time it happened 31 ID's from serial field (primary key) in one of the tables were missing. 93 ID's are missing now.
Table:
CREATE TABLE "REGISTRY"
(
"ID" ...
I am looking for a serial port component for .NET that overcomes the issues with the built-in Serial Port component related to sudden unplugging of USB-to-RS232 adapters, and suspension of the computer while the port is open. (Untrappable errors occurring after the the device is unplugged or the computer comes back after being suspended...
I would like to be able to generate unique serial numbers for each Android device for use in unlocking an application. How could I do this?
EDIT:
The reason is I want to revamp a paid application and provide users who have paid for the old version, which will have a different package name, a way to obtain the full version by downloadin...
I'd like to interpret a command string, recieved by a microcontroller (PIC16f877A if that makes any difference) via serial.
The strings have a pretty simple and straight-foward formatting:
$AABBCCDDEE (5 "blocks" of 2 chracters+'$' for 11 characters in total) where:
$AA= the actual name of the command (could be letters, numbers, both; m...
So I have kind of a ignorant (maybe?) question. I'm working with writing to a serial device for the first time. I have a frame [12, 0, 0, 0, 0, 0, 0, 0, 7, 0, X, Y] that I need to send. X and Y are checksum values. My understanding in using the pyserial module is that I need to convert this frame into a string representation. Ok that's f...
Hey Guys
At present we are using fedora core 3 for a system we are working on. This system needs to communicate via serial. The timing of communications is timing critical. At present it seems that the serial driver has delays in pushing the data from the 4k fifo into the 16byte hardware uart.
Is there any way in force linux to trea...
Possible Duplicate:
how to get motherboard id or serial number ?[Delphi]
Hi , is there any free component ?
...
[edit]
Initially I thought this was a pyserial problem but it's not. Basically it's a system problem: Sending anything over the serial port (/dev/ttyS0) would need a "\n" or "\r" or else it'll just be buffered. Below is the original question. Is it a limitation of Linux driver or is there some settings I can change?
Hello there,
I'm tr...
I have been tasked with sourcing an off the shelf touch pad device that can be used as a dedicated industrial instrument controller.
Is it possible to run a dedicated application and prevent user access to all other functions/applications within Android.
Also is it possible write your own USB device driver which would allow you to conne...
I'm running Ubuntu 9.10 and I seem to be having trouble with termios.
So I can start minicom open the serial port at 57600 Baud, 8N1, no hardware or software flow control and it works great. I type in @17 5 and my device responds. When I try to set up my serial port in my C++ code I don't get a response. I know that the software is com...
I have simple serial port program that is supposed to read the serial port and echo back the characters typed. I can get this to work fine by polling the serial recieved with a timer, but I'd like to use the dataReceived event instead. For some reason the event will occur once but never again.
SerialPort bsp;
public Form1()
...
Throughout my days as a PHP Programmer and a beginner at C# programming I've always wondered of the best way to generate unique serials such as how Microsoft Office and Microsoft operating systems do.
Does anyone have a good guide to how to handle this, Like what are the important factors in generating the unique serial, prevent duplic...