Closed chas-iot closed 3 years ago
Still cannot get it working ☹️
I had the same problem, and I know howto fix
I had the same problem, and I know howto fix
Please tell me more?
const deconzSerialProber = new SerialProber({
name: 'deConz',
allowRPIAMASerial: true,
baudRate: 38400,
// deConz VERSION Command - deConz pdf protocol page 9 of 21
probeCmd: [
0xc0, // END - SLIP Framing
0x0d, // VERSION Command
0x01, // Sequence number
0x00, // Reserved - set to zero
0x09, 0x00, // Frame length
0x00, 0x00, 0x00, 0x00,
0xe9, 0xff, // CRC
0xc0, // END - SLIP framing
],
probeRsp: [
0xc0, // END - SLIP framing
0x0d, // VERSION Command
0x01, // Sequence NUmber
0x00, // Reserved
0x09, 0x00, // Frame length
// This would normally be followed a 4 byte version code, CRC, and END
// but since we don't know what those will be we only match on the first
// part of the response.
],
filter: [
{
vendorId: /0403/i,
productId: /6015/i,
},
{
vendorId: /1cf1/i,
productId: /0030/i,
},
],
});
function calcCrc(buffer, len) {
let crc = 0;
for (let i = 0; i < len; i++) {
crc += buffer[i];
}
return (~crc + 1) & 0xffff;
}
console.log(calcCrc([
0x0d, // VERSION Command
0x01, // Sequence number
0x00, // Reserved - set to zero
0x09, 0x00, // Frame length
0x00, 0x00, 0x00, 0x00,
]
, 9)); // packet size
for frame-builder.js in deconz-api
frame_builder[C.FRAME_TYPE.VERSION] = function(_frame, _builder) {
_builder.appendUInt32LE(0);
};
dongle does'nt respond anymore if the command is incomplete
that works 🙂
Do you know if these changes work with both old and new firmware? It's definitely worth getting the changes integrated into the packages
i did'nt test with old firmware, I will test with conbee II since my raspbee is upsgraded
@frederic34 - Thank-you 🙂
@mrstegeman @dhylands - any thoughts or advice?
there is an issue on deconz github with explanation
@chas-iot happy to know you are online again
there is an issue on deconz github with explanation
I've spent a while searching but so far did not find a link to this issue. Do you have the link?
I updated https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3787 with a request for updated documentation.
I'll add a pointer to that comment, thanks @frederic34
reading this comment https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3260#issuecomment-692486099 , it appears that using the new length with the old firmware should work. I'll ask for clarification once their tech support respond
Another option worth exploring is to keep the old probe and add a new probe with the new length.
On Tue, Dec 1, 2020 at 1:46 AM chas-iot notifications@github.com wrote:
reading this comment dresden-elektronik/deconz-rest-plugin#3260 (comment) https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3260#issuecomment-692486099 , it appears that using the new length with the old firmware should work. I'll ask for clarification once their tech support respond
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/WebThingsIO/serial-prober-node/issues/11#issuecomment-736360453, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7EDAENEI6KHQLPXVGU7LSSS3QRANCNFSM4UHAQCWA .
-- Dave Hylands Peachland, BC, Canada http://www.davehylands.com
Another option worth exploring is to keep the old probe and add a new probe with the new length.
Thank-you @dhylands 🙂 I'm thinking about that while waiting for the updated documentation. The wrinkle is that there's this change - which can easily be handled, however we need to know the impact first
for frame-builder.js in deconz-api
frame_builder[C.FRAME_TYPE.VERSION] = function(_frame, _builder) { _builder.appendUInt32LE(0); };``` Once we get the docs, I'm sure @frederic34 and I can quickly get it working. Hopefully before dongles with the new firmware start shipping
This is a self-inflicted issue - at least in part ☹️ My deconz ZigBee dongle is not detected after upgrading the firmware. I tried putting back the earlier firmware, but still the same issue. An edited log follows, the lines regarding other dongles are removed.
Do you have any advice on how to further debug/fix?
What I have noticed:
DEBUG && console.log('SerialProber: Rcvd:', chunk);
USB Serial Device 1cf1:0030 Vendor: dresden elektronik ingenieurtechnik GmbH Serial: DE2217317 found @ /dev/ttyACM0
, which matches the probe set up for deconz.