Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Victor Aprea
    i'm trying to work around this by breaking the string into characters and introducing an intra-character delay of 10ms
    but it would be nice to know if "it's not just me"
    i'm pretty sure i'm not overflowing the 64-byte input buffer on the arduino either
    and there's nothing going on in my arduino code that would be disabling interrupts or what not
    John Melody Me
    Frank Lemanschik
    @vicatcu thats normal for serial communication
    the data don't gets send in a packet its not the tcp ip protocol
    when you send serial data you normal know the length of the messages that you send and recive
    and you need to listen till its full there
    or timeout
    "my long string message" => reciver => "my " => reciver => "long s" reciver "tring message"
    so a easy normal protocol for serial communication looks like encode "my long string message" into bytes then add a type via the msg for example the reciver accepts messages for a screen on the type 127
    Frank Lemanschik
    you can define the Payload like this 127 (length of byte string as number) (byte encoded string)
    and the reciver gets 127 knows a the next is a message so the next byte will tell me how long it is
    and then wait till the message is there
    and then waits for 127 again
    this is only a simple binary protocol now there are thousends that exist you can use what ever you like
    Frank Lemanschik
    @scorpioRED ya i deprecated it the new is called node-cctalk
    the other one was not a complet implamentation
    the node-cctalk package has 2 example devices emp800 and taiko jmc pub 7
    Victor Aprea
    electron-builder is giving me this:
    install prebuilt binary  name=@serialport/bindings version=2.0.8 platform=win32 arch=x64
      ⨯ cannot build native dependency  reason=prebuild-install failed with error and build from sources not possible because platform or arch not compatible
                                        cause=exit status 1
                                        errorOut=prebuild-install info begin Prebuild-install version 5.3.0
    building with:
    ubuntu 18.04 / node 8.16.2
    same project built successfully for macos target, any ideas how to resolve?
    Frank Lemanschik
    Victor Aprea
    anyone around who can help me work through this build issue?
    Frank Lemanschik
    @vicatcu looks like you got a other issue befor that info that you posted
    as win32 x64 is supported
    Christoph Wiechert
    Hi there, I've also trouble with electron:
    prebuild-install http 404 https://github.com/serialport/node-serialport/releases/download/v8.0.6/bindings-v8.0.6-electron-v75-win32-x64.tar.gz
    I could not find out how to fix the url
    Christoph Wiechert
    Fixed it by editing .prebuild-installrc
    NitroCode Alex
    i built a storage pipe for nodejs do check it out still in development all feedback are welcome
    Frank Lemanschik
    @9trocode good exercise
    keep up that effort
    Trying to create a custom parser via Transform stream and when I pipe a SerialPort stream to it I get: TypeError [ERR_INVALID_ARG_TYPE]: The "emitter" argument must be an instance of EventEmitter. Received type string ('unpipe')
    _transform(chunk, encoding, cb) {
        this.incomingData = Buffer.concat([this.incomingData, chunk])
        const packet = this.parseBuffer()
        this.emit('data', packet)