question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Converting Sniffed Data To Converter

See original GitHub issue

Hi,

I have sniffed some traffic between a TuYa device and its native gateway to ascertain how certain app only functions seem to work with the device.

The data points are as follows:

  • wdykState: 1
  • wdykCountdownTimer: 9
  • wdykFaultCode: 26
  • wdykRelayStatus: 27
  • wdykChildLock: 29
  • wdykVoltage: 101
  • wdykCurrent: 102
  • wdykActivePower: 103
  • wdykLeakageCurrent: 104
  • wdykTemperature: 105
  • wdykRemainingEnergy: 106
  • wdykRechargeEnergy: 107
  • wdykCostParameters: 108
  • wdykLeakageParameters: 109
  • wdykVoltageThreshold: 110
  • wdykCurrentThreshold: 111
  • wdykTemperatureThreshold: 112
  • wdykTotalActivePower: 113
  • wdykEquipmentNumberType: 114
  • wdykClearEnergy: 115
  • wdykLocking: 116
  • wdykTotalReverseActivePower: 117
  • wdykHistoricalVoltage: 118
  • wdykHistoricalCurrent: 119

I am trying to add a toZigbee converter for wdykRelayStatus (which is power on behaviour), wdykLocking (which is a device test), and wdykClearEnergy (which clears the devices memory of any historical data).

When I sniff the data in wireshark, I can see an unknown command being sent from the gateway to the device and the data for the different commands looks like this:

Power On Behaviour (Off): 00:1C:1B:04:00:01:00 Power On Behaviour: (On): 00:1D:1B:04:00:01:01 Power On Behaviour (Previous): 00:1B:1B:04:00:01:02 Test: 00:1E:74:01:00:01:01 Clear: 00:38:73:01:00:01:01

In an attempt to decipher the above, it appears that the 3rd value is the data point, the 5th and 6th value always seems to remain the same, and the 7th value is the actual setting.

I have tried sending the commands in various formats from Zigbee2MQTT including using the toZigbee tuya_data_point_test converter.

I cannot however, seem to get any of the commands working - I have managed to get other commands working such as setting the wdykState data point

Please does anybody have any hints on how to get this going?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
drzonycommented, Oct 1, 2021

No, the decode is: status = 00 (one byte) transid = 3d (one byte) dp = 6d (one byte) datatype = raw (00 - one byte) length = 8 (00 08 - two bytes) data = 01 00 00 00 19 00 00 01 (8 bytes)

0reactions
drzonycommented, Oct 1, 2021

Great 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Converting a sniffed scapy packet to bytes - Stack Overflow
So how can I convert a sniffed packet into human readable Binary, or an array of Bytes or something more useful so that...
Read more >
Convert a Sniffer Trace to MPEG (Video) File Viewable With VLC
This document describes how to convert a sniffer trace containing MPEG traffic into a video that you can watch with VLC.
Read more >
CAN Bus Sniffer - Reverse Engineer Vehicle Data [SavvyCAN ...
In this intro we explain how to hack your car/truck to decode proprietary data - letting you convert the raw CAN data to...
Read more >
LC-MS/MS raw file conversion to .mzML format ... - YouTube
LC-MS/MS raw file conversion to .mzML format, data upload, and MassIVE data set submission. 4.1K views · 1 year ago ...more ...
Read more >
Export and convert TI Smart RF Packet Sniffer .psd file ... - TI E2E
Try converting PSD to PCAP, open with Wireshark, and export packet dissection as a plain text file. e2e.ti.com/.../ · osqa-ask.wireshark.org/...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found