serial-port

Slow serial port reading from Arduino in VB

六月ゝ 毕业季﹏ 提交于 2019-12-12 06:57:06
问题 I have an issue with reading data from a serial port, and that data comes from an arduino that periodically (1 or 2 times a second) sends the status of what it's doing. Using Atmel studio or Arduino IDE to read the serial port, everything works fine, but I'm writing a monitoring program in VB.net 2010 and then things start to go to heck. I open my port (115200 baud) and have an event handler for the 'Datareceived" event, in this event, I have a stringbuilder which appends the output of Serial

Not able to print hex bytes in C

久未见 提交于 2019-12-12 06:55:37
问题 I know this question has already been asked many times. I am facing a problem where I am getting few hex bytes via serial communication in ubuntu . I have written a C code which reads all the data and display it. It is working fine as I have tested it with many strings. I also have another system running windows and a software named Docklight . This software is giving me hex bytes and I need to receive it in my application. Hex bytes are like below: FF AA 2E 0F CC 0D I have connected both the

How to write commands to a serial port using NodeJs?

橙三吉。 提交于 2019-12-12 06:33:24
问题 Good day everyone, I am having issues writing commands to a lock connected to a USB controller which is connected to the laptop port using NodeJs. I have successfully achieved this in python, but is having issues in nodejs. The reason why I am converting to nodejs is because the entire application is written in nodejs and runs has a desktop app via electron, and opening/closing port is just a small component of it. The python equivalent and which works fine ser = serial.Serial() ser.baudrate

serial port for MindWave in Windows8.1

依然范特西╮ 提交于 2019-12-12 05:47:46
问题 How can I find what is the serial port assigned to the MindWave USB in Windows8.1? The code I am using has this for Mac OSX: import platform import sys, time from mindwave import bluetooth_headset import httplib, urllib, urllib2 import json #serial_port = '/dev/tty.MindWaveMobile-DevA-10' Here's what my device manager shows: I'd like to know how to change line 10 of http://pastebin.com/jR21F4Xf in order to make it work in Windows. Currently MindWave USB Dongle is connected to COM4. Here's the

Read from Serial port to Excel

有些话、适合烂在心里 提交于 2019-12-12 05:32:34
问题 I need to create a button in Excel to read data in from serial port. I can't have any extra files attached to the excel sheet. I need to transfer this excel file to another computer to read this data. Here is how the file is suppose to function: Press button to select the serial port. Then, press another button to read data from serial port into the excel cell. Could someone please tell me how to do this? Use VB macro or ActiveX macro? Sorry, this is the first time i'm using excel for this.

Module does not receive data through UART, TinyOS Progeamming

偶尔善良 提交于 2019-12-12 04:56:06
问题 Module does not receive data through UART, help with TinyOS Postby Telosb » Tue Jul 15, 2014 6:47 Dear Memebers, i am new to the tinyos programming. I am working with the KMoteB from: http://www.tinyosmall.com/product_p/100-101.htm I use the YETI2 Plugin and the TinyOS compiler. The problem is, that if i send data via printf through the Serial Interface to the computer, i am able to receive it as sended. On the other hand the PC-to-Mote Communication does not work. The RX LED light up, but

Serial port communication Arduino VC++

社会主义新天地 提交于 2019-12-12 04:54:22
问题 I am not able to write a string on to my Arduino using Visual C++. I am somehow able to open the COM port but not able to send data to the Arduino. What would the problem actually be in my case? int main() { HANDLE hComm; hComm = CreateFileA("\\\\.\\COM11", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0); if (hComm == INVALID_HANDLE_VALUE) { printf("com not opened"); } else { printf("COM OPENED"); } COMMTIMEOUTS cto = { 1, 100, 1000, 0, 0 }; DCB dcb; memset(&dcb,0

SerialDevice.FromIdAsync() returns null

心已入冬 提交于 2019-12-12 04:47:38
问题 I encountered a really strange problem when trying to connect my raspberry pi to my Arduino Uno through serial (usb). serialPort = await SerialDevice.FromIdAsync(myDevices[0].Id); Always returns null. I tried many things and it won't until I put it in a loop and then it works the second time. So I removed the loop and made it run 2 times. This is my output begintest testrange \\?\USB#VID_2341&PID_0001#55639313633351210252#{86e0d1e0-8089-11d0-9ce4-08003e301f73} test1 null begintest ok ok2

How to integrate iPhone with other non iPhone devices using serial port?

拥有回忆 提交于 2019-12-12 04:25:33
问题 Anybody knows how to integrate iPhone with other non-iPhone devices using serial port? 回答1: You can't directly. There may be some sort of serial line (i2c) on the dock connecter, but it is not exposed through the SDK, the Made for iPhone / ExternalAccessory.framework stuff is only for USB and BT. You could conceivably use a WiFi/serial bridge (such things do exist) since you can send whatever you want over a TCP tunnel, but I doubt that is what you want. 回答2: Underlying

arduino serial erratic behaviour missing characters and occasionally the whole transmission

瘦欲@ 提交于 2019-12-12 04:19:44
问题 I have a problem with the hardware serial on the UNO, in many occasions it seems to drop a character (usually the first character being received) and in some cases it misses a whole transmission. this only occurs when the Arduino is receiving data from the computer typed by me in the serial monitor. I can see the RX light flashing when I send the string but the arduino just completely ignores it. The data I am sending is three comma separated 8 bit unsigned integers #include <Adafruit