Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Frank Lemanschik
    @frank-dspeed
    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
    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
    Frank Lemanschik
    @frank-dspeed
    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
    @frank-dspeed
    @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
    @vicatcu
    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:
    electron-builder@21.2.0
    ubuntu 18.04 / node 8.16.2
    electron@1.8.8
    same project built successfully for macos target, any ideas how to resolve?
    Frank Lemanschik
    @frank-dspeed
    ok
    Victor Aprea
    @vicatcu
    anyone around who can help me work through this build issue?
    Frank Lemanschik
    @frank-dspeed
    @vicatcu looks like you got a other issue befor that info that you posted
    as win32 x64 is supported
    Christoph Wiechert
    @psi-4ward
    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
    @psi-4ward
    Fixed it by editing .prebuild-installrc
    NitroCode Alex
    @9trocode
    i built a storage pipe for nodejs do check it out still in development all feedback are welcome
    https://www.npmjs.com/package/node_storage_manager
    Frank Lemanschik
    @frank-dspeed
    @9trocode good exercise
    keep up that effort
    nnewc
    @nnewc
    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')
    nnewc
    @nnewc
    _transform(chunk, encoding, cb) {
        this.incomingData = Buffer.concat([this.incomingData, chunk])
        const packet = this.parseBuffer()
        this.emit('data', packet)
        cb()
      }