serial-port

Problems with sending commands over pySerial

偶尔善良 提交于 2020-01-06 06:05:09
问题 I'm trying to talk to a home made card over a serial port, and is therefor using pySerial. In Hyperterminal, everything works fine. I can write: $ audio on and the audio is enabled, but if I use ser = serial.Serial("COM1", 38400) ser.write("audio on\r\n") nothing happens. I can read incoming data however, so it's not something wrong with the communication. I doesn't help if I change \r\n to just \n or \r either. EDIT: Sometime I actually get the feedback: No such command when sending the

UnsatisfiedLinkError using Serial port from Processing in Eclipse

放肆的年华 提交于 2020-01-06 05:59:08
问题 I have a processing program that is supposed to read the data from a serial port created by an arduino uno. I got the program to work perfectly in Processing but not in Eclipse. I added core.jar serial.jar and jssc.jar to my java project's build path, but am still getting an error calling the port with Serial.list()[0] . I have seen similar questions on here, but none have helpful answers. I don't know if I'm missing something or need to import a different jar file to my build path. import

How to increase speed and split data with multiple plots using PyQtGraph?

家住魔仙堡 提交于 2020-01-06 05:36:08
问题 I am reading datas from serial port using an STM32 kit. Problem is that I need to use own timestamp for plot ADC datas. That is mean x-axis should be my RTC time(using ms for this) and y-axis is ADC datas. There are programs for plot serial port but as I said I need to set own time for graph. I tried matplotlib for this but it was really slow. Then have used pyqtgraph and this script: from pyqtgraph.Qt import QtGui, QtCore import numpy as np import pyqtgraph as pg from pyqtgraph.ptime import

PySerial can read but not write

筅森魡賤 提交于 2020-01-06 04:36:20
问题 I'm trying to use PySerial to connect to an FTDI FT232R chip. I have verified communication with my RealTerm and, using RealTerm, can both send and receive data. However, my implementation in Python can only receive data. I am trying to write using this line: for i in range(0,100): print "Loop "+str(i) print "Sending byte" ser.flush() print ser.write("B".encode('ascii')) time.sleep(1) 回答1: Comunication depends on the configuration of the chip, the connecting cable and the parameters of

Finding string to address serial port dynamically

試著忘記壹切 提交于 2020-01-05 11:49:43
问题 I have an application developed in Java, and a second under development in Ruby on Rails, which require connecting to Arduino by serial communication. While I can input a string based on my own computer to address the correct serial port, the string changes depending even on which USB port I use, which makes me think it would be better for the user to be able to select a valid serial port from one that is scanned from a list on their own computers, not one predefined by me. Does anyone have a

Finding string to address serial port dynamically

ぐ巨炮叔叔 提交于 2020-01-05 11:49:22
问题 I have an application developed in Java, and a second under development in Ruby on Rails, which require connecting to Arduino by serial communication. While I can input a string based on my own computer to address the correct serial port, the string changes depending even on which USB port I use, which makes me think it would be better for the user to be able to select a valid serial port from one that is scanned from a list on their own computers, not one predefined by me. Does anyone have a

How does windows map the virtual com port to a device

…衆ロ難τιáo~ 提交于 2020-01-05 05:26:49
问题 I have run a test to verify, that windows (7 and 8) is capable of remembering the configured com port number for each usb port when i insert an usb->serial converter. My test was simple: I have 2 similar USB to Serial converters from the same manufacturer and 1 converter from a different manufacturer. I insert converter no 1 into USB port no 1 and configure it as COM9 in device manager. I pull it out and insert the converter no 1 into USB port no 2 and configure it as COM10 in device manager.

RXTX serial port library on Android

泪湿孤枕 提交于 2020-01-05 04:33:08
问题 I am using the rxtx library in my Java project to read the serial data coming from my gps chip. Now, I try to port this to my android device, a rooted Galaxy Nexus with an Android 4.0.3 stock rom. I already created a project and ported my classes to an android version. It uses the rxtx library for android like this: public void init() { try { Enumeration portIdentifiers = CommPortIdentifier.getPortIdentifiers(); // / See what ports are available. and latch on desired port while

Server-Client malfunction in Android (socket is not bound/socket is already in use)

∥☆過路亽.° 提交于 2020-01-04 13:45:46
问题 Hayho, well my problem is a little tricky to me to explain. I try to connect my android tablet (4.0.3) to a RS-232 converter. That already works, but only oneway. If i try to send anything, it is sended. I cannot receive any answers, but this is neccessary. I get this Logcat Errors: Either Socket is not bound, or EADRESS already in use. I tried multiple ways, but none worked as i need it. My target: Sending AND receiving Bytes whenever they are sent. My Architecture: MainActivity -> calls 2

Server-Client malfunction in Android (socket is not bound/socket is already in use)

a 夏天 提交于 2020-01-04 13:44:49
问题 Hayho, well my problem is a little tricky to me to explain. I try to connect my android tablet (4.0.3) to a RS-232 converter. That already works, but only oneway. If i try to send anything, it is sended. I cannot receive any answers, but this is neccessary. I get this Logcat Errors: Either Socket is not bound, or EADRESS already in use. I tried multiple ways, but none worked as i need it. My target: Sending AND receiving Bytes whenever they are sent. My Architecture: MainActivity -> calls 2