MiSchroe / klf-200-api

This module provides a wrapper to the REST API of a KLF-200 interface. Supporting the new API with firmware version 0.2.0.0.71 is in progress.
MIT License
38 stars 2 forks source link

Error: Invalid frame structure. #31

Closed dktjsp closed 3 years ago

dktjsp commented 3 years ago

Hi i have this error when i try to change position

(node:5021) UnhandledPromiseRejectionWarning: Error: Invalid frame structure. at cfmHandler.klfProtocol.on (/Users/spichtj/Desktop/velux/node_modules/klf-200-api/dist/connection.js:162:40) at listeners.forEach (/Users/spichtj/Desktop/velux/node_modules/klf-200-api/dist/utils/TypedEvent.js:25:50)

I'm logged in but this command fails, could you help me ?

Thanks

dktjsp commented 3 years ago

Here is the frame

GW_COMMAND_SEND_REQ {
  Command: 768,
  offset: 3,
  BufferSize: 66,
  data:
   <Buffer 45 03 00 00 00 01 03 00 00 00 be 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ... >,
  SessionID: 0,
  Nodes: 0,
  MainValue: 48640,
  PriorityLevel: 3,
  CommandOriginator: 1,
  ParameterActive: 0,
  FunctionalParameters: [],
  PriorityLevelLock: 0,
  PriorityLevels: [],
  LockTime: Infinity }
MiSchroe commented 3 years ago

The error will be generated by the KLF-200 itself, so something at your frame is wrong. Try the sample in the README.MD.

dktjsp commented 3 years ago

I found out the issue , thanks