Category : serial-port

I’m trying to parse the following serial input raw data: [51,45,51,30,33,30,33,00,00,00,C0,50,17,FE,05,00,00,58,02,9A,0E,00,00,00,00,02,00,0D,0A] It consist of some chars(0X51,0x45,0x51…) and some raw data (0x00,0x00,0xC0…) and it ends with ‘rn’ (0x0D,0x0A). The end result I’m getting is (‘rn’ is not included): [’51’,’45’,’51’,’30’,’33’,’30’,’33’,’0′,’0′,’0′,’fffd’,’50’,’17’,’fffd’,’5′,’0′,’0′,’58’,’2′,’fffd’,’e’,’0′,’0′,’0′,’0′,’2′,’0′] The values in index 10,13,19 (C0,FE,9A) are not displayed correctly (because they are not part of the ..

Read more

This question is related to a situation that occurred when using Chrome Serial API but probably could be relevant to any ReadableStream. I studied the documentation and probably missed some feature or pattern. A simple program is running in Chrome browser, accessing CW keyer (based on Arduino, but this is not important). The application sends ..

Read more

When retrieving data from a balance using webserial api. I am getting the following SԬ-000��.96��� When I should be getting ST,-00027.96 g I am opening the port with the following await port.open({ baudRate: 2400, databits: 7, stopbits: 1, parity: "none", flowControl: "none"}); and reading the data const readerData = await this.reader.read(); var datavalue = (new ..

Read more

I am trying to write multiple data using the same port but I can not do it. But node-serialport provides multiple data read function at the same time. How I write multiple data at the same time This way I tryout – index.js- const SerialPort = require(‘serialport’); const Readline = SerialPort.parsers.Readline; const port = new ..

Read more

I built application in laravel and now I need to read data from serial port (rs232) at local pc. Currently my application is on localhost and it will stay on localhost. I read some explanations on google and stackoverflow as well and couldn’t do that. Not sure if this even posible. Please any advice will ..

Read more