tinytuya icon indicating copy to clipboard operation
tinytuya copied to clipboard

3.1 and/or 3.4 packet trace?

Open lmcd opened this issue 10 months ago • 6 comments

Hey,

I'm trying to validate a Tuya protocol implementation, but don't have any 3.1 or 3.4 versioned devices. Everything I've bought is 3.3 or 3.5.

Is anybody able to provide a packet trace between tinytuya and a device, preferably with the key so I can validate the encryption.

Otherwise, can anybody recommend some cheap devices known to use these versions that are purchasable on Amazon?

Thanks!

lmcd avatar Feb 13 '25 23:02 lmcd

You're unlikely to find any v3.1 devices on Amazon. What I did is went to eBay, searched "smart plug," filtered to used only, and picked a couple lots of the oldest, yellowest ones I could find (after googling the actual model # to make sure they were Tuya). Worked great :)

I'll see if I can scare up some packet traces. v3.4 is going to be tricky to validate with a trace as it uses the same 3-way handshake as v3.5 devices. Actually, this may be a good excuse to add v3.1/3.3/3.4 to my "fake device" script.

uzlonewolf avatar Feb 14 '25 00:02 uzlonewolf

I've got the 3-way handshake fully working, so shouldn't be a problem if I have the key (and local nonce) prior to key negotiation

lmcd avatar Feb 14 '25 00:02 lmcd

Also the 3.1 advice is useful, thanks! So I'm guessing these are discontinued and not in retail circulation anymore?

lmcd avatar Feb 14 '25 00:02 lmcd

Correct. Even v3.3 devices are beginning to become hard to come by.

uzlonewolf avatar Feb 14 '25 01:02 uzlonewolf

I've bought lots of bulbs recently from various brands for various fixtures, and they're all 3.3. I had to buy a smart plug before finding a 3.5 device in the wild.

lmcd avatar Feb 14 '25 01:02 lmcd

I've actually had the opposite experience - nearly every bulb I've bought recently has been v3.5, and non-bulb devices have been either 3.4 or 3.5. I guess it's going to depend on how old the store's stock is.

uzlonewolf avatar Feb 14 '25 01:02 uzlonewolf