-
Notifications
You must be signed in to change notification settings - Fork 38
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
Support for MID900 #45
Comments
Hey! So, you said you get an error on this over here #40 Can you do what you're trying and share a debug log? To enable it, set the environment variable |
Hello, thank you very much for your support. Here is the code I am executing, trying to get the traces with MID0900:
And here you are the log:
If I use the Open Protocol Interface Tester, here you are part of the result because MID0900 also contains binary data in the last part of the telegram (I captured it with Wireshark):
|
From your log, it looks like it breaks down when mid 8 is getting serialized into a buffer.
Is referencing this call: node-open-protocol/src/mid/0008.js Line 61 in f514d00
Which means that It looks like the object payload you're providing to node-open-protocol/src/mid/0008.js Lines 10 to 14 in f514d00
More examples can be found in the unit tests for mid 8: https://github.com/st-one-io/node-open-protocol/blob/master/test/0008.spec.js What is this Open Protocol Interface Tester? I haven't heard of this tool before but it sounds useful haha |
Same error....
|
Let me know if you would like to test/debug in real time. I can always share the screen during a meeting. |
Hello!!! Super good news!! A manage to make it work in a "manual" mode, ignoring parsing and serializing functions, however, I only receive the first trace and the program stop with an error: log``` //@ts-check /* Copyright: (c) 2018-2020, Smart-Tech Controle e Automação GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) */function parser(msg, opts, cb) { function serializer(msg, opts, cb) { function revision() { module.exports = {
OPEN-PROTOCOL 10352: new SessionControlClient
|
quick tip, you can fold the log messages like this on github comments (or anywhere that supports markdown). some text
<details>
<summary>logs</summary>
```
log content here
```
</details> which gives the following: some text logs
anyway, yeah I feel like some kind of coop debugging session is needed here. What is your timezone? Ideally we could connect on Discord, but I don't feel comfortable putting my info out here publicly. My email should be on my github profile. I haven't used the which makes me think your //To MIDs not implemented
let opts = {
payload: {
midNumber: 900,
revision: 1,
dataLength: 35,
extraData: "00000000000000000000000000000001001"
}
} |
Hello,
I have a machine in my lab. If someone helps we can work on it.
I have tried several combinations of MID0008 with MID0900 but does not work.
Regards,
The text was updated successfully, but these errors were encountered: