Questions tagged as 'serial'

1
answer

Error closing serial port in C #

I'm new to C #. I made a program, which is continuously reading the serial port data and showing in a textBox. So far, everything works fine. The problem occurs when I try to close the port, it gives the following error    The I / O operat...
asked by 30.06.2017 / 18:10
0
answers

serial port node.js

I need to write a code for node.js that receives a "post request" (in this case a word String ), and pass this word forward to serial port. Then you receive from this serial port another word and put this word as answer for a "post reque...
asked by 24.07.2016 / 14:06
0
answers

java.lang.NoClassDefFoundError: gnu / io / SerialPortEventListener communication with arduino

I'm trying to do java communication with an arduino but I'm having a problem when I invoke a Class that implements SerialPortEventListener in my controller. Controllers This Java class is the only one that will deal with co...
asked by 10.11.2015 / 19:11
0
answers

DP-20 serial printer with PHP

I'm putting together a script that prints Check with the DP-20 printer using PHP. But I only find tutorial with the use of their DLL, nothing via serial port. Does anyone know how I can do this with the serial port only?     
asked by 07.12.2015 / 19:57
2
answers

Converts String to Arduino int in C

Good people, I'll try to explain my problem. I am developing a small software in NetBeans that communicates with Arduino via Serial Port. My problem is that in NetBeans I'm sending String, and I need to convert this String to integer and I'm...
asked by 03.11.2016 / 04:23
1
answer

Problems with Decode and Arduino

Hello, People I have the following code in Arduino if((digitalRead(4) != 1)||(digitalRead(5) != 1)) { Serial.print("\t"); Serial.print(analogRead(A0)); Serial.print(","); Serial.print(millis()); Serial.print(...
asked by 17.04.2018 / 05:38
1
answer

Read serial port data with javascript, node

Good afternoon, I need a framework, or some alternative to read data from a COM5 usb port, with bound 115200. Has anyone ever used any type of tool? I have seen many in java, c ++ etc. I'm working with a sensor libelium waspmote, ac meter, th...
asked by 28.06.2018 / 17:31
1
answer

Serial Communication and Array Division with Virgula

Hello, Good night, today I came up with another problem, reading data generated by arduino sensors, I was able to print them and save them in an array, but to really be good, I need to break the two separate columns, as in the example 292.00,2...
asked by 24.03.2018 / 03:03
1
answer

Problem with PySerial library (PYTHON)

I'm trying to control the arduino by a Python script through the "pyserial" and "serial" library. But every time I run the code it gives an error in the first few lines: import serial ser = serial.Serial('COM7', 9600) error returned: Tra...
asked by 04.03.2018 / 19:48
1
answer

spyder can not read serial port

I created the following test program: import serial porta = '/dev/ttyUSB0' baud_rate = 9600 try: Obj_porta = serial.Serial(porta, baud_rate) valor = Obj_porta.read() print valor Obj_porta.close() except serial.Se...
asked by 19.08.2015 / 21:09