Skip to content
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

3.1 and/or 3.4 packet trace? #595

Open
lmcd opened this issue Feb 13, 2025 · 6 comments
Open

3.1 and/or 3.4 packet trace? #595

lmcd opened this issue Feb 13, 2025 · 6 comments

Comments

@lmcd
Copy link

lmcd commented Feb 13, 2025

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!

@uzlonewolf
Copy link
Collaborator

uzlonewolf commented Feb 14, 2025

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.

@lmcd
Copy link
Author

lmcd commented Feb 14, 2025

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
Copy link
Author

lmcd commented Feb 14, 2025

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

@uzlonewolf
Copy link
Collaborator

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

@lmcd
Copy link
Author

lmcd commented Feb 14, 2025

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.

@uzlonewolf
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants