-
Notifications
You must be signed in to change notification settings - Fork 17
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
Local backend for sureflap protocol messages into mqtt. #17
Comments
Are you sure you have the surepet "Connect" version? As that has the MiWi controller in it. As the standard non-Connect range doesn't include it. |
Yes, I got the "Connect" version without the hub, it was a cheaper option. The idea is that I could get the hub later if I don't manage to reverse engineer the protocol or if the protocol is using security options. I can already sniff the beacon packet sent once the "setup" button is pressed and have made a start of creating a beacon response frame to start the handshake sequence, however it would be good to see a correct version. The Frame Control field is a bit confusing (a mixture of endian and the code etc...). |
The hubs use MiWi and not Zigbee at all. I have just got a CC2531 to capture the traffic and after the 802.15.4 frame it is completely different. But the byte stream is:
So the first byte is the Frame Control, then sequence number as per the first PDF I posted on page 8. So you'll need to build a whole new gateway to talk something other than zigbee to make it work. So I recommend just getting a hub as that will be cheaper and quicker... And if you do let me know as I would like to sniff all the traffic on the first boot. |
Yes, I have created a "wrapper" around the microchip MiWi protocol stack to run on a Pi. So far it receives the MiFi Beacon packet and generates a reply as per the MiWi protocol, however the Feeder ignores the reply. The code is here: https://github.com/mretallack/catfeeder Mark |
I have just posted my code here: https://github.com/plambrechtsen/pethublocal |
Following on from this post, I thought I should create a new issue: #8 (comment)
Hopefully sureflap don't go and close this hole off as the fact they don't validate CAs is brilliant should you want to run your own backend.
I setup a mosquitto backend with the aws api endpoint bouncing via PolarProxy to do the ssl decoding into a pcap.
Seems that it creates topics based on the mac addresses of devices connected in reverse byte order.
v2/production/hubuuid/messages/devicemac
The first message that comes through it:
Hub has gone offline
5fb08bc7 0220 Hub online at 15 2 0 39
The first value is hex for the utc timestamp, then 0220 seems to be a message counter.
Anyone else interested in decoding the protocol and building a local client?
Then figuring out what the /api/credentials is supposed to contain.
The text was updated successfully, but these errors were encountered: