User Tools

Site Tools


surepet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
surepet [2021/02/02 10:14] marksurepet [2021/02/02 19:12] (current) mark
Line 18: Line 18:
  
 {{https://user-images.githubusercontent.com/6843129/78118319-24d8c300-7407-11ea-93b5-406c375d5ade.png}} {{https://user-images.githubusercontent.com/6843129/78118319-24d8c300-7407-11ea-93b5-406c375d5ade.png}}
 +
 +The best link so fare is:
 +
 +https://github.com/alextoft/sureflap/issues/17
 +
 +{{https://user-images.githubusercontent.com/72194966/103685603-cfc96f00-4f8d-11eb-8d42-e3b6fa46dcba.png}}
  
  
Line 30: Line 36:
 So instead for now we are using a UZBee+. So instead for now we are using a UZBee+.
  
-{{https://www.digchip.com/prod/photo/1128071-UZBEEPLUS.jpg}}+{{https://www.digchip.com/prod/photo/1128071-UZBEEPLUS.jpg?100}} 
 + 
 + 
 +After creating a simple sniffer tool, when the "setup" button on the SurePet device is pressed, the following packet is received: 
 + 
 +b'+PDAI=1343C832FFFFFFFF6E2A02C0F9D5B370072FECE8\r\n' 
 + 
 +The MAC address is printed on the bottom of the device, This matches the above packet. 
 + 
 +1343C832FFFFFFFF6E2A02C0F9D5B370072FECE8 
 + 
 +13=Length 
 + 
 +So 
 + 
 +43C832FFFFFFFF6E2A02C0F9D5B370072FECE8 
 + 
 +6E2A02C0F9D5B370=Mac (reversed) 
 + 
 + 
 +The P2P protocol is documented in the following document: 
 + 
 +https://ww1.microchip.com/downloads/en/DeviceDoc/00001204C.pdf 
 + 
 + 
 +So the full payload decodes as: 
 + 
 + 
 +  * 43C8=Frame Control 
 +  * 32=Sequence Number 
 +  * FFFF=Destination PAN ID 
 +  * FFFF=Destination Address 
 +  * Source PAN ID (0 bytes) 
 +  * 6E2A02C0F9D5B370=Source Address 
 +  * 072F=Payload 
 +  * ECE8=Frame Check 
 + 
 + 
 +And the Frame Control: 
 + 
 +43C8= 
 + 
 + 
 + 
 +Test 1: 
 + 
 +16 
 + 
 + 
 +CC01 
 +00 
 +FFFF 
 +70B3D5F9C0022A6E 
 +70B3D5F9C0022AD4BE 
 + 
 + 
 +  * CC01=Frame Control 
 +  * 00=Sequence Number 
 +  * FFFF=Destination PAN ID 
 +  * 70B3D5F9C0022A6E=Destination Address 
 +  * Source PAN ID (0 bytes) 
 +  * 70B3D5F9C0022AD4=Source Address 
 +  * 072F=Payload 
 +  * ECE8=Frame Check 
  
  
surepet.1612260878.txt.gz · Last modified: 2021/02/02 10:14 by mark