-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement: serialport.parsers.ccTalkParser #1240
Comments
Can you describe what your parser is meant to do? I'm having a hard time following it. Also you can use |
@reconbot its parsing cctalk messages https://en.wikipedia.org/wiki/CcTalk this protocol is used by near any hardware that has todo with Money accepting devices |
@reconbot maybe you got a idea i don't wrapped my head long enought around it but i think maybe i can use the stream get for that and always do get 2 and then i know i need to get the next 3 + what ever the secund number was so i have the full 5+x ? |
Oh man, I learn about new uses of node serialport every day. We're in robots, IoT devices, underwater sensor networks, sports medicine sensor harnesses, forklifts, highway sings, vending machines, water fountains and now.. ATMs? I highly recommend a state machine to parse the incoming data byte by byte. Take the incoming data, buffer it, and then read what's in the buffer byte by byte and slice off packets and If you'd like to leverage the already setup testing environment of node serialport and submit a CcTalk parser to this project I'd be happy to land it. I'd take a crack at it but the wikipedia page isn't quite enough background information (or sample data) and I don't have any hardware. |
Current versionhttps://github.com/direktspeed/serialport-parsers-cctalk/blob/master/src/cctalk.js Current Implamentation into serialportneeds test/parser-cctalk fixed |
If you get a PR open I can assist/advise with tests. |
@reconbot ya i am working on it at present i am under presure and need to focus on 4.0 usage as i got 2 importent projects that are using this one is the cctalk part and now the fingerprinter part saw you last time on PuchDB Repos 👍 |
@reconbot https://github.com/the-AjK/GT-511C3/blob/master/package.json at present i am porting this monster from serialport 2 and i think really amazing usage of listners into a class that uses normal serialport methods :) but you should look at it he opens a port attaches complet only to get the response :D |
Summary of Problem
in serialport 4 i added the parser as option
Question now
can you help me to refactor that to use the new Buffer methods and also the new Transform stream methods?
my current refactoring state not using new Buffer and maybe something other wrong?
The text was updated successfully, but these errors were encountered: