FAQ Database Discussion Community
python,serial-port,raspberry-pi,pyserial
I'm using a USB to RS232 cable for get communication with a pure rs232 device. With pyserial lib a got this code running in loopback tx -> rx cable pins. Setting the port: def __init__ (self, baudrate,timeout,parity,stopbits,bytesize): try: #self.s = serial.Serial(port="'/dev/ttyUSB0'",baudrate=baudrate,timeout=timeout,parity=parity,stopbits=stopbits,bytesize=bytesize) #self.s = serial.Serial("/dev/ttyUSB0",9600) self.s=serial.Serial( "/dev/ttyUSB0", baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE,...
c,windows,serial-port
So I have something like as follows: In my main.c HANDLE *hCom; success = openport(hCom); ReadFile(hCom......) // This Produces Garbled Results The openport() function: int openport(HANDLE *hCom) { hCom = CreateFile(......) ReadFile(hCom......) // This Produces Good Results return 0; } When I do read commands inside of my openport() function...
c,linux,serial-port,virtualbox
I don't know if this problem is because of VirtualBox or because of the serial port configuration. I'm testing a program that interacts with a particular piece of hardware over a serial port. Everything is generally working fine, but in the data stream received from the device, some bytes are...
python,serial-port,hex
I am trying to send a hexadecimal string to a serial port and it has to be in the following format '\x02\x81....' this is my code from binascii import unhexlify string='0281E1B1' print unhexlify(string) gives me some randon symbols ?a+ instead of \x02\x81\xE1\xB1 I have python 2.7 so decode('hex') isnt working...
javascript,serial-port,google-chrome-app
I am developing a packaged chrome app that communicates with a serial device. To make a long story short, here are the facts: I can open a connection successfully with the serial port when a page loads I can execute a particular command that takes about 20-60 seconds to return...
android,python,serial-port,pyserial
I'm trying to print out the content of a file on my Android through the serial port and it just cut off half of it. My code look like this: ser = Serial('/dev/ttyUSB0', 115200, timeout=0) ser.write(' cat /sdcard/dump.xml \r\n') sleep(5) while ser.inWaiting(): print ser.readline() ser.close() Cat works without any problems...
c,file,serial-port
From C code on an AVR micro controller I am writing text over USART/USB to a PC, where I redirect the text to a file with (stty raw; cat > test.txt) < /dev/ttyUSB0 The command blocks until I terminate it using CTRL+C. What I need is to be able to...
ruby,serial-port,arduino-uno
I have some problem because I don't know how you can put in which COM(serial port) is my arduino in next code: require 'serialport' sp = SerialPort.new "/dev/**PATH_TO_YOUR_DEVICE**", 9600 case ARGV[0] when 1 sp.write 1 when 0 sp.write 0 end How do you write that PATH? Thanks for the help...
c++,serialization,serial-port,arduino,openframeworks
I'm trying to read serial data from an Arduino UNO using an ofSerialobject and assign it as an int. I am able to read in individual bytes, however, the values I'm receiving in the openframeworks console are not the same as the values I'm reading in the Arduino serial monitor....
javascript,node.js,silverlight,serial-port,japplet
In my web application(sencha extjs 5) I have a user requirement to read/write data to the client PC serial port. I am aware of the client browser can not access local machine hardware without installing some binaries on the local machine(Native app, Windows Service, etc..). I have seen the same...
c#,serial-port
Is in C# any serial port listener, that will call my function if there will be any data on serial port? My only idea is to use infinite loop, something like this: while true if someDataOnSerialPort callmyfunction(serialPortData) ? Any handler that will call my function if there will be any...
excel-vba,serial-port,arduino,microcontroller,avr-gcc
I am doing this project: I have 4 inputs. These are push buttons, connected to a microcontroller. Each time a push button is pressed, say for example pushbutton_1 is pressed, the press of a switch button should be recognised as a HIGH. In its normal unpressed state it should be...
c#,.net,winapi,events,serial-port
I've been digging through the reference sources for the .NET SerialPort and SerialStream classes, and have found that they fire their DataReceived events by waiting on WaitCommEvent(). The event usually fires just once, when the serial port has received some amount of data. Usually when the event fires, transmission has...
c++,osx,unix,serial-port,posix
After hours spent researching this online, I'm still not quite clear as to how VTIME and read(int fildes, void *buf, size_t nbyte); work together. It seems to me that as soon as read() gets a single byte, then it disregards VTIME. VTIME is only obeyed when no bytes have been...
c,serial-port,stm32,adc,usart
I'm studying ADC programming on STM32 F103x and starting with the simplest case - single conversion. The internal temperature sensor (connected to ADC1) value is measured and sending it to COM port by using USART. A target seems clear but when I try to download source code to flash, it...
c++,qt,serial-port,qtserialport
I am trying to write really big files to serialport using QSerialPort (QT 5.3.1). The problem is - I keep sending more than device can handle. Programm works like this (this function is called once in 50ms): void MainWindow::sendNext() { if(sending && !paused && port.isWritable()) { if(currentLine >= gcode.size()) //check...
node.js,serial-port,raspberry-pi
I am developing a node.js application for my Raspberry Pi which receives data from its serial port, but I don't directly develop the application on it, I use my main computer instead. So I have this code in my app.js : var serialport = require("serialport"); var SerialPort = serialport.SerialPort; var...
visual-c++,serial-port,arduino
I've been working on the school project with Gird-Eye. I use the Arduino Uno to access the data form Grid-Eye. And now I want to implement a serial communication test program with c++. I use the library form here: http://playground.arduino.cc/Interfacing/CPPWindows Here is Arduino Code: int data[64]; void setup() { //...
android,serial-port,file-permissions,android-4.4-kitkat,tty
I have written an Android app which runs on a custom kernel on Android 4.4 Kitkat device, which uses the Android Serial Port API (https://code.google.com/p/android-serialport-api/) in order to open the serial port "/dev/ttyACM0" which is the port associated with my serial device. The port has the proper "666" permissions (crw-rw-rw),...
c#,algorithm,serial-port
I've been researching this everywhere and all the LRC implementation seems to not giving me the right answer. After spending few days on it, I decided to put my code here to see if anyone else can spot the problem. Here's the code (C#) //Input Data = "31303030315E315E31303030325E315E31303030375E39395E31303032325E36353631335E" //LRC Answer...
linux,printing,serial-port,usb
I have a Seiko DPU-D2 printer. I'm connecting it to computer with usb port and I'm trying to write to it using serial. What I don't know is where this printer is mounted. What I have so far are those pieces of information: # lsusb Bus 002 Device 009: ID...
python,c,serial-port,arduino
Background: I am working on a project that is supposed to have an Arduino mega send data from ultra sonic sensors to the computer via USB and I keep getting the same errors. I have checked the device manager and I am sure that the Arduino is on the correct...
c,bash,serial-port,echo,cat
I have written a couple of bash script files that communicate via two serial ports. One script can be thought of as a receiver and the other as a transmitter. The receiving script reads and displays data line by line until it reads the character sequence <break>. It then stops...
node.js,serial-port,node-webkit,node-serialport,g-code
I am trying to display a message on my FlashForge Creator Pro (dual) 3D printer by sending the Gcode to the printer through serial communication. When I open the ReplicatorG software and place the string: M70 P5; Hello World. And click "Build" everything works fine and the machine shows the...
c++,node.js,serial-port,arduino,intel-edison
Background: I am using the "base block" to power and access the UART2 console on the edison. I have an arduino block with a sketch to print data to serial. https://www.sparkfun.com/products/13036 The serial data is transmitted from the arduino and I intend to use a node script to read that...
c#,.net,serial-port,.net-3.5,virtual-serial-port
I'm writing an application where I need to send a file (~600kB) to another unit via a virtual serialport. When I send it using a terminal application (TeraTerm) it takes less than 10 seconds, but using my program it takes 1-2 minutes. My code is very simple: port.WriteTimeout = 30000;...
c#,.net,serial-port
I been trying to read the temperature/humidity monitoring device through serialport(Prolific USB-to-Serial Comm Port) but the values i'm getting is not what i'm expecting. May be I'm going somewhere wrong. Here what I have tried so far. Port Settings: PortName:Com1 BaudRate: 38400 DataBits: 8 DiscardNull:False DtsEnable:False GenerateMember: True Handshake: None...
java,serial-port,arduino,gnu,rxtx
I have following Java code: import java.io.*; import java.util.ArrayList; import gnu.io.CommPortIdentifier; import gnu.io.SerialPort; import gnu.io.SerialPortEvent; import gnu.io.SerialPortEventListener; public class SerialCommDataReading implements SerialPortEventListener { private static SerialPort serialPort; private static final String PORT_NAME = "COM5"; private BufferedReader input; private static final int TIME_OUT = 2000; private static final int DATA_RATE =...
java,nullpointerexception,serial-port,processing
First of all I am new to Java so I apologize if this is an obvious answer. I am using Processing in Java to read the input values coming from a usb port. Here is the custom class I set up to get the values. I call the getCurrentValue() method...
java,android,android-studio,gps,serial-port
I am working on a project where I have to connect my android device (LG G3) to a GPS with usb. I can't figure out how I can get the data out of my GPS and I do not want to use the device it's internall GPS because I need...
matlab,data,serial-port,fscanf
I try to read data from the COM3 port. I'm using : in = fscanf(s); if(in == 'A') fclose(s); break; end The problem is, when no data is send to the com3 port, the fscanf line will wait for a certain time and than give a timeout. Is there a...
string,serial-port,arduino,hex,rfid
I've an RDM880 HW to read some 13.56MHz cards. I've read the protocol of comunication and writed a sketch following some guides i found on the net. I'm able print on serial the response from the reciver correctly, but when i try to store it to use it, i encountering...
c++,osx,arduino,serial-port
I have been scouring the internet for some time now trying to figure out how to send data from C++ (which will read an input .txt file) to an Arduino. Because there does not seem to be a native way in Arduino to read files directly, I chose to use...
c++,visual-studio-2010,serial-port,serial-communication
i need a little help with my coding.. see the coding below is used if we were to write a string and send through a com port.. what if we were to generate random strings and send it through a com port.. what do i actually have to change in...
c#,user-interface,serial-port,hyperterminal
When the user enters a character with the TextBox in focus, I do not want the character to show up on the TextBox at all and I don't want to use the Clear() method as there may be other text in the TextBox I don't want erased. so far I've...
python,serial-port,twisted
Going through the twisted finger tutorial and seen the SO questions: Question-1 Question-2 However, I can't (yet) write a twisted program that can read & write from multiple serial ports, especially where the protocol involves reading single or multiple lines, and writing back to the device accordingly. What I am...
c#,serial-port,buffer
In my app I have to receive and process some data from device, connected through COM port. I do it partially. In that particular device first two bytes are the length of the packet (minus 2 since it doesn't take into account these very two bytes; so it is length...
c#,serial-port,serial-communication
I'm using this code to detect all available serial ports: foreach (string PortName in System.IO.Ports.SerialPort.GetPortNames()) { PortBox.Items.Add(PortName); } Is there a way to MessageBox.Show("Could not find any ports"); if there are no serial ports?...
c,function,serial-port,posix
I get confused with one line of code: temp_uart_count = read(VCOM, temp_uart_data, 4096); I found more about read function at http://linux.die.net/man/3/read, but if everything is okay it returns 0, so how we can get num of bytes received from that? temp_uart_count is used to count how much bytes we received...
python,serial-port
In my javascript code I turn the arudino lights on like following: var serialport = require("serialport"); var SerialPort = require("serialport").SerialPort; serialPort.write("1", function(err, results) How can I implement this method in Python?...
c,string,floating-point,serial-port,concatenation
I am parsing a string that has 3 values in it, comma separated. I am currently using sscanf for this, which works just fine. What I am trying to do is to manipulate on of these values after parsing the string and concatenate my results back into the same format...
serial-port,arduino,elixir
I'm using knewter/erlang-serial with Elixir and try to read a JSON-String (e.g. {"temperature":20.40,"humidity":30.10} coming in from an Arduino via serial input after it receives a control-signal: defmodule MyApp.SerialInput do require Logger def start_link do serial_pid = :serial.start [{:open, "/dev/cu.usbmodem1431"}, {:speed, 115200}] control_signal = "1" :timer.send_interval 5000, serial_pid, {:send, control_signal} wait_for_new_values...
c#,multithreading,exception,serial-port
I am reading a SerialPort in a separate thread using the code below. I open the Serial Port and try to read a line. Since there is nothing connected in the Serial Port there is an error. I was expecting some TimeoutException to be thrown, but NO! There are not...
c#,serial-port,arduino,questionmark
here is my problem. I use thise piece of code to send a string to my arduino with a serialport: Arduino.Open(); Arduino.WriteLine("1.5,3.7,2"); After that I receive it with my arduino like this: char buffer[12]; String inc; void setup() { Serial.begin(115200); } void loop() { if (Serial.available() >= 11) { for...
python,multithreading,serial-port,pyserial
I am sending continuous stream of data from Arduino to my serial port at a high speed. I would like to dump those data to my hard drive continuously. At low speed, a simple and inefficient code would do: import serial ser = serial.Serial('COM4', baudrate=9600) f = open('data.dat', 'wb') for...
ruby,serial-port
I am trying to use the control bits of a USB serial port adapter as general purpose I/O. This simple example should toggle the DTR line high, then low. require 'serialport' DataBits = 8 StopBits = 1 Parity = SerialPort::NONE Baud = 38400 port = '/dev/tty.usbserial-A100KXWU' serial = SerialPort.new(port, 'baud'...
c#,.net,string,winforms,serial-port
I need to parse this string from serial:- !00037,[email protected] 00037 as one string, 00055 as another string However this string is came out when the robot's tire is rotated and some other string may also display before and after the string that I need to parse. For example this is...
java,swing,serial-port,runnable
I have Class, that receive and send information from serial port: public class Terminal implements Runnable { static LinkedList<String> receiver = new LinkedList<String>(); public Terminal() { //... } public String getReceivedMessage() { String data = receivedMessfges.removeFirst(); return data; } // Other function that perform connection to COM port // ......
qt,c++11,serial-port,uart
I am trying to write a QT application that will be able to communicate with my embedded system using serial port. For now I am testing the config with Null Modem emulator as I dont have the embedded system ready yet. The emulator works fine as I have tested it...
node.js,serial-port,node-serialport
I'm trying to use the SerialPort module for serial communication between my udoo and the built in arduino. The problem is that the the module doesn't install. I wanted to upload the photo with the error but I couldn't because I do not have not enough reputation. But I did...
linux,serial-port,raspberry-pi,raspbian
I need to receive data using a serial port in an application written in C, in Linux (raspbian). This is for a half-duplex data acquisition (by RS485) so when any device is sending data, all the others must be listening. The problem is that every char received on the serial...
c#,multithreading,serial-port
I am designing a program to take an input from a serial hand scanner and compare it to a combobox filled with part numbers. The hand scanner reads a data matrix and compares it to the selected part. Here is the code currently public partial class Form1 : Form {...
c#,.net,visual-studio,serial-port
I am working on Windows 6 application in Visual Studio 2008 (C#). I am trying to receive weight from weighing scale. I am able to receive weight, but whenever weight gets changed on weighing scale it is not getting the changed weight. It is continuously showing the same weight in...
c#,vb.net,visual-studio-2010,serial-port
I'm writing a software in VB.net to communicate with an external device with modbus I have a problem while reading data received from the device , to put it in example , using sp1.ReadByte() the data sent from the device is this : 05-03-04-00-00-01-9F-FE-0B Update : to read data i...
c++,serial-port,arduino,usb,raspberry-pi
I have a Raspberry Pi connected to Arduino Mega with USB and trying to send a 8-byte package from RPI to Arduino. I'm using WiringPi serial library to accomplish this. RPI part scans serial buffer for data available. If not, it writes data to serial. for(;;) { if (int i...
c++,qt,serial-port
I'm currently setting my Serial port as follows; #define PORT "COM10" serial.setPortName(PORT); Whenever I change the port number from 10, Qt can no longer open the port unless I physically change the port accessed via device manager. How can I set the serial port to be whatever I wish (from...
matlab,serial-port,synchronization
I'm having an issue which is partially Matlab- and partially general programming-related, I'm hoping that somebody can help me brainstorm for solutions. I have an external microcontroller that generates a large stream of binary data (~40kb) every 400ms and sends it via UART to a PC running Matlab scripts. The...
osx,cocoa,swift,serial-port,iokit
I'm trying to make an application that communicates with a USB device about the same way I use the screen command on Terminal. To make my question easier to understand, This is what I normally do in Terminal : command : ls /dev/tty.usb* returns : /dev/tty.usbmodem1411 /dev/tty.usbmodem1451 Next, I call...
serial-port,tcl,expect,permission-denied,reconnect
I have been working towards automating hardware testing using TCL, where the hardware is connected to a serial port. The current script can connect to the serial port the first time through, and disconnect at the end. However, it cannot reconnect to the serial port again unless the application is...
c#,serial-port,zedgraph
I am making a GUI that reads in serial data, and I want to have the option to choose to plot the data on either the left or right Y axis. I can plot the data on the left y axis, but I am unable to plot it on the...
c++,string,serial-port,communication,string-parsing
On an embedded system, I would like to parse data that arrives via serial interface (RS232). The data arrives one line at a time (lines are separated with \r characters and by some time) from a proprietary source. See example data below. What I would like to do is to...
serial-port
I would like to ask you folks about passing one serial port to multiple forms in one project. I acomplished to passed it from "main" form to "Form1" but I don't know how to handle it by buttons, combobox, etc. I want to change serial port parameters in seperate form....
c#,.net-4.0,serial-port,windows-xp
I have a SerialPort object to control a gsm modem connected to a virtual com port. My problem is that i do not receive any data under Windows XP. The DataReceived Event is not triggered nor outputs port.ReadExisting() any data if called periodically. But when i shut down my program...
delphi,gps,serial-port,sniffer
I know how to comunicate over serial port using TComPort, but I'd like to view the data going in and out a virtual (USB<=>RSR232) COM port without interupting the transmition and (obviously) opening the port. To be precise I want to see the GPS data from the USB GPS receiver....
delphi,serial-port,delphi-7,delimiter,arduino-uno
I am a newbie in Delphi programming and I need some help. I have a problem with spliting my serial data. This is my code: procedure TForm1.ComPort1RxChar(Sender: TObject; Count: Integer); var DataByte : string; x, i: integer; save_data : TStringList; begin save_data := TStringList.create; for x := 0 to Count-1...
qt,serial-port,intervals,qtserialport
I am using Qserialport to receive a 7 byte data on every 10 ms. the baud rate is 115200. and i use signal(readyread) and slot(readLine in a separate function) method. the ready read signal is only emitted on every 16ms. but my device sends data at 10 ms interval. How...
c#,winforms,serial-port,ussd
I have a Windows Form in my project. This form contains 3 controls: txtUss, btnCheck and txtMessage. The scenario is that after a "ussd" command has been entered in the txtUss text box and the btnCheck button has been pressed, the result will displayed in txtMessage. here is the detail...
delphi,serial-port,thread-safety,delphi-xe2
A customer is beta testing a program for me. He is getting an intermittent error in which the program fails to detect an incoming character from a serial port, which indicates an external device has finished a task. Try as I may I, cannot repeat the problem in my office,...
serial-port,rfid
Today i got this reader from local shop. Earlier i worked with Wiegand type readers with no problem. So anyway, when i try to read EM type card with 0009177233 ID (written on card) i should get at least 9177233 with start and stop chars expected. But instead i get...
java,serial-port
I am currently looking for a java library for serial communication, like txrx (which from what I understood isn't anymore updated) and that isn't too hard to use, as I need to implement it in a project which relies for 99% on the serial communication I had the possibility to...
c#,time,serial-port
I'm trying to display the data received on textbox. But I realized that when data were being received on [email protected] terminal it look fine (eg. 14:02:33.43 > T 11 22.32) but running on the software the time stamp is missing. Am I missing out anything which lead to this? using...
c#,serial-port
According to the documentation isOpen returns the open or closed status of a SerialPort. Now if I try to open a port in the correct COM number but with the wrong baud rate. In theory the port opens but the two ends cannot communicate. So the isOpen method should return...
qt,serial-port,serial-communication
i came across the following error described below , how can i rectify this sort of error and why does this error got generated?? what is background of this sort of error . QIODEVICE::write:device not open ( the com port are also not visible in device manager ) is this...
c++,qt,serial-port,qtgui
I could not find a conclusive answer to my issue so I decided to post my first question on this site. I'm fairly new to programming and have been using Qt for a couple of months now. My code communicates with a microcontroller via serial ports, however the available port...
c,osx,serial-port
I'm trying to write a little program in C that will read from the serial port using the select command so that it blocks and waits for input. It's working, except it keeps breaking up lines and I have no idea why. The device is programmed not to break up...
c#,wpf,serial-port
I have a SerialPort DataReceived event handler in C# code: void serPort1_DataReceived(object sender, SerialDataReceivedEventArgs e) { SerialPort sp = (SerialPort)sender; string indata = ""; while (sp.ReadBufferSize > 0) { int bytes = sp.ReadBufferSize; char[] result = new char[bytes]; sp.Read(result, 0, bytes); indata += new string(result).Replace("\0", ""); } Dispatcher.Invoke((Action)(() => port1out.Text...
c,linux,serial-port,debian
I am thinking of creating a C program that will use picocom to read and write serial streams to ports (GPS module, NTPD). The c program will run on a Debian OS. Is it possible to do this using Picocom? Is it bad design to interact with Picocom through c...
c#,asynchronous,.net-4.0,serial-port
I have found that the C# serial port implementation can be pretty flaky when it comes to the datarecieved event, so I decided to implement my own asynchronous read using the underlying stream. I implemented a continuous read loop that I would expect to get a stack overflow due to...
c++,boost,serial-port,boost-asio
I would like to control an instrument operation by using a c++ program. How do I use boost asio library to set the RTS pin to logical true or logical false? This is for a RS-232 serial port....
c#,winapi,serial-port,interop
How to check CTS line value of opened SerialPort? Idea is to set this value from device on other side while using 3-wire serial interface without handshaking. Here is some code to start discussion (adapted msdn example): [DllImport("kernel32.dll")] static extern bool SetCommMask(IntPtr hFile, uint dwEvtMask); [DllImport("kernel32.dll")] static extern bool WaitCommEvent(IntPtr...
java,serial-port,arduino,jssc
I have been trying to use serial communication with my Arduino Uno and have used the library jSSC-2.6.0. I am using a SeriaPortEvent listener to receive bytes from the Serial Port (Arduino) and store them in a linked list. public synchronized void serialEvent(SerialPortEvent serialPortEvent) { if (serialPortEvent.isRXCHAR()) { // if...
c++,windows,serial-port,port,parity
I'm not really experienced in programming but I'm trying to port a C++ code from Linux to Windows. It's a function which writes to serial port and reads the answer, which is then parsed. I could probably put this together but what I'm not sure about is how to port...
c#,serial-port
I'm building an app in C# that runs with Excel, the end game is to allow users to click a button on an excel sheet, which then sends some commands down the serial port, and then reads back data. This is done and works fine. My question is, how can...
c#,regex,parsing,serial-port
I am stuck trying to extract data from raw data I get from a serial server. RegEx is not my game and I feel like spinning around... Well here's the template of my servers response: TIME STAMP dd/MM/YY HH:mm:ss SAMPLING DATA IN SLOT 1 - COMS Dev 1 Par 1:...
c#,.net,serial-port
I'm writting a small application that automatically connects to the correct serial port by sending a list of commands, and then waiting for a response back from the serial device (RF Transmitter). The serial port objects sends certain commands in decimal format, a reset, login and then a query command....
c,linux,serial-port
I am experimenting reading (and eventually writing) serial ports in C. I want to be able to connect to a port on debian and read in some data but I need a port that is writing (speaking). I am new to linux programming. What port, that will definitely be present...
javascript,serial-port
I'm trying to use serialport.js, even just including it at the moment causes a runtime error TypeError: undefined is not an object (evaluating 'stream._ansicursor'). var React = require('react') var SerialPort = require('serial port') The context of this is within a react app, so its being compiled from jsx. I have...
.net,serial-port
I have a .NET application that listens on a COM port. The other side of the connection is a UDOO board running lubuntu. After the udoo board is rebooted, the COM port temporarily goes missing and then re-appears on the device manager. However, when I call the "Open" function of...
android,android-studio,serial-port,embedded-linux,beagleboneblack
I am currently working on an embedded system for my company that runs the android 4.2 OS (from TI bbb source) on the Beaglebone black. I have been tasked with setting up communication with the serial port (UART). I have been able to configure the serial port and run the...
c++,multithreading,ubuntu,asynchronous,serial-port
I´m writing an asynchronous serial data reader class for Ubuntu using C++ and termios and I´m facing difficulties checking is there is data available. Here is my code: #include <iostream> #include <string> #include <sstream> #include <vector> #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <termios.h> class MySerialClass { public: MySerialClass(std::string port);...
c#,serial-port,zedgraph
I am trying to read in data from two serial ports, and plot each curve over time, on the same graph. However, when I do this, it connects the curves. How do I keep the two data sets separate but on the same graph? I've seen a lot of solutions...
android,matlab,sockets,bluetooth,serial-port
I want to connect an android device over bluetooth with matlab for exchanging data between matlab and my own android app. But I can't connect via 'Instrument Control'-Toolbox with my android devices. Why? First I scaned for all available devices and then tried to connect (with the "connect"-button) with android....