nozza87

Orvibo Wifi Socket

Jul 13th, 2014
10,727
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #####################################################################################################
  2. ##### Substitute 'ac cf 23 24 19 c0' for your own MAC Address in all commands #####
  3. #####################################################################################################
  4. ================================================================================================================================================================
  5.  
  6. GLOBAL DISCOVERY DATA: Only needed to find IP Address and MAC Address of Unknown sockets, All configured sockets on network will reply.
  7. SEND: UDP 255.255.255.255:10000
  8. ASCII:
  9. hd\00\06qa
  10. HEX:
  11. 68 64 00 06 71 61
  12.  
  13. RECEIVE: UDP x.x.x.x:10000
  14. ASCII:
  15. hd\00*qa\00\ac\cf#$\t\88 \88\t$#\cf\ac SOC002(\cal\d7\01
  16. HEX:
  17. 68 64 00 2A 71 61 00 AC CF 23 24 19 C0 20 20 20 20 20 20 C0 19 24 23 CF AC 20 20 20 20 20 20 53 4F 43 30 30 32 28 CA 6C D7 01
  18.  
  19. BREAKDOWN:
  20. 68 64 - Magic Key
  21.  
  22. 00 2A - Full Message Length = 42bytes
  23.  
  24. 71 61 00 - Command ID ?
  25.  
  26. AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
  27. 20 20 20 20 20 20 - Mac Address Padding (spaces)
  28.  
  29. C0 19 24 23 CF AC - Mac Address Little Endian
  30. 20 20 20 20 20 20 - Mac Address Little Endian Padding
  31.  
  32. 53 4F 43 30 30 32 - = SOC002 (sometimes SOC001? Don't know what it means?)
  33.  
  34. 28 CA 6C - Time since manufacture? ((28:40) + (ca:202) * 255 + (6c:108) * 255 * 255 = 7074210seconds = 81.87743055555556days)
  35.  
  36. D7 - ??? Unknown ???
  37.  
  38. 01 - Power state = off (00 = off, 01 = on)
  39. ================================================================================================================================================================
  40.  
  41. DISCOVERY DATA: Only needed to find IP Address of known sockets.
  42. SEND: UDP 255.255.255.255:10000
  43. ASCII:
  44. hd\00\12qg\ac\cf#$\19\c0
  45. HEX:
  46. 68 64 00 12 71 67 ac cf 23 24 19 c0 20 20 20 20 20 20
  47.  
  48. RECEIVE: UDP x.x.x.x:10000
  49. ASCII:
  50. hd\00*qg\00\ac\cf#$\19\c0 \c0\19$#\cf\ac SOC001\902j\d7\00
  51. HEX:
  52. 68 64 00 2A 71 67 00 AC CF 23 24 19 C0 20 20 20 20 20 20 C0 19 24 23 CF AC 20 20 20 20 20 20 53 4F 43 30 30 31 90 32 6A D7 00
  53.  
  54. BREAKDOWN:
  55. 68 64 - Magic Key
  56.  
  57. 00 2A - Full Message Length = 42bytes
  58.  
  59. 71 67 00 - Command ID ?
  60.  
  61. AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
  62. 20 20 20 20 20 20 - Mac Address Padding (spaces)
  63.  
  64. C0 19 24 23 CF AC - Mac Address Little Endian
  65. 20 20 20 20 20 20 - Mac Address Little Endian Padding
  66.  
  67. 53 4F 43 30 30 31 - = SOC001 (sometimes SOC002? Don't know what it means?)
  68.  
  69. 90 32 6A - Time since manufacture? ((90:144) + (32:50) * 255 + (6a:106) * 255 * 255 = 6905544seconds = 79.92527777777778days)
  70.  
  71. D7 - ??? Unknown ???
  72.  
  73. 00 - Power state = off (00 = off, 01 = on)
  74. ================================================================================================================================================================
  75. SUBSCRIBE DATA: All Commands apart from discovery require a subscription first!
  76. (Note: Subscription expires after a few minutes)
  77. SEND: UDP x.x.x.x:10000
  78. ASCII:
  79. hd\00\1ecl\ac\cf#$\19\c0 \c0\19$#\cf\ac
  80. HEX:
  81. 68 64 00 1e 63 6c ac cf 23 24 19 c0 20 20 20 20 20 20 c0 19 24 23 cf ac 20 20 20 20 20 20
  82.  
  83. RECEIVE: UDP x.x.x.x:10000
  84. ASCII:
  85. hd\00\18cl\ac\cf#$\19\c0 \00\00\00\00\00\00
  86. HEX:
  87. 68 64 00 18 63 6C AC CF 23 24 19 C0 20 20 20 20 20 20 00 00 00 00 00 00
  88.  
  89. BREAKDOWN:
  90. 68 64 - Magic Key
  91.  
  92. 00 18 - Full Message Length = 24bytes
  93.  
  94. 63 6C - Command ID ?
  95.  
  96. AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
  97. 20 20 20 20 20 20 - Mac Address Padding (spaces)
  98.  
  99. 00 00 00 00 00 - ??? Unknown ???
  100.  
  101. 00 - Power state = off (00 = off, 01 = on)
  102.  
  103.  
  104. ================================================================================================================================================================
  105. TABLE DATA: (Table 1)
  106. SEND: UDP x.x.x.x:10000
  107. ASCII:
  108. hd\00\1drt\ac\cf#$\19\c0 \00\00\00\00\04\00\03\00\00\00\00
  109. Hex:
  110. 68 64 00 1D 72 74 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 01 00 00 00 00 00 00
  111.  
  112. RECEIVE: UDP x.x.x.x:10000
  113. ASCII:
  114. hd\00,rt\ac\cf#$\19\c0 \02\00\00\00\00\01\00\01\00\00\06\00\04\00\04\00\17\00\06\00\03\00\03\00\02\00
  115. HEX:
  116. 68 64 00 2C 72 74 AC CF 23 24 19 C0 20 20 20 20 20 20 02 00 00 00 00 01 00 01 00 00 06 00 04 00 04 00 17 00 06 00 03 00 03 00 02 00
  117.  
  118. BREAKDOWN:
  119. 68 64 - Magic Key
  120.  
  121. 00 2C - Full Message Length = 44bytes
  122.  
  123. 72 74 - Command ID ?
  124.  
  125. AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
  126. 20 20 20 20 20 20 - Mac Address Padding (spaces)
  127.  
  128. 00 00 00 00 - ??? Unknown ???
  129.  
  130. 01 - Table Number
  131.  
  132. 00 01 00 00 - ??? Unknown ???
  133.  
  134. 06 00 - Record Length Little Endian? = 6bytes
  135. 04 00 - Version Number Little Endian = 4
  136. 04 00 - Table Number Little Endian = 4 (Table 4 contains the Socket Data)
  137. 17 00 - Version Flag Little Endian = 23
  138.  
  139. 06 00 - Record Length Little Endian? = 6bytes
  140. 03 00 - Version Number Little Endian = 3
  141. 03 00 - Table Number Little Endian = 3 (Table 3 contains Timing data)
  142. 02 00 - Version Flag Little Endian = 2
  143.  
  144. ..... - This repeats for all tables that need to be requested in sequence by the next function
  145. ================================================================================================================================================================
  146. SOCKET DATA: (Table 4)
  147. SEND: UDP x.x.x.x:10000
  148. ASCII:
  149. hd\00\1drt\ac\cf#$\19\c0 \00\00\00\00\04\00\03\00\00\00\00
  150. Hex:
  151. 68 64 00 1D 72 74 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 AA 00 BB 00 00 00 00 (Note: AA = Table Number = 04, BB = Version Flag = 17)
  152.  
  153. RECEIVE: UDP x.x.x.x:10000
  154. ASCII:
  155. hd\00\a8rt\ac\cf#$\19\c0 \00\00\00\00\00\04\00\01\00\00\8a\00\01\00C%\ac\cf#$\19\c0 \c0\19$#\cf\ac 888888 Office \05\00\10\00\00\00\n\00\00\00\05\00\00\00\10'*yo\d0\10'vicenter.orvibo.com \c0\a8\01\c8\c0\a8\01\01\ff\ff\ff\00\01\01\00\08\00\00\0c\00
  156. HEX:
  157. 68 64 00 A8 72 74 AC CF 23 24 19 C0 20 20 20 20 20 20 02 00 00 00 00 04 00 01 00 00 8A 00 01 00 43 25 AC CF 23 24 19 C0 20 20 20 20 20 20 C0 19 24 23 CF AC 20 20 20 20 20 20 38 38 38 38 38 38 20 20 20 20 20 20 4F 66 66 69 63 65 20 20 20 20 20 20 20 20 20 20 05 00 10 00 00 00 0A 00 00 00 05 00 00 00 10 27 2A 79 6F D0 10 27 76 69 63 65 6E 74 65 72 2E 6F 72 76 69 62 6F 2E 63 6F 6D 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 C0 A8 01 C8 C0 A8 01 01 FF FF FF 00 01 01 00 08 00 00 0C 00
  158. BREAKDOWN:
  159. 68 64 - Magic Key
  160.  
  161. 00 A8 - Full Message Length = 168bytes
  162.  
  163. 72 74 - Command ID ?
  164.  
  165. AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
  166. 20 20 20 20 20 20 - Mac Address Padding (spaces)
  167.  
  168. 02 00 - Record ID Little Endian = 02
  169.  
  170. 00 00 00 - ??? Unknown ???
  171.  
  172. 04 - Table Number
  173.  
  174. 00 01 00 00 - ??? Unknown ???
  175.  
  176. 8A 00 - Record Length Little Endian = 138bytes
  177.  
  178. 01 00 - Record Number Little Endian = 1
  179.  
  180. 43 25 - VersionID Little Endian = 9539
  181.  
  182. AC CF 23 24 19 C0 - UID (Max Length = 12 = 24bytes)
  183. 20 20 20 20 20 20 - UID Padding
  184.  
  185. C0 19 24 23 CF AC - Mac Address Little Endian
  186. 20 20 20 20 20 20 - Mac Address Little Endian Padding (spaces)
  187.  
  188. 38 38 38 38 38 38 - Remote Password = 888888 (max Length = 12 = 24bytes)
  189. 20 20 20 20 20 20 - Remote Password Padding (spaces)
  190.  
  191. 4F 66 66 69 63 65 - Socket Name = Office (Max Length = 16 = 32bytes)
  192. 20 20 20 20 20 20 20 20 20 20 - Socket Name Padding (spaces)
  193.  
  194. 05 00 - Icon Little Endian = 5 (0 = Light bulb, 1 = Fan , 2 = Thermostat , 3 = Double Switch , 4 = American Power Point , 5 = Aus Power Point)
  195.  
  196. 10 00 00 00 - Hardware Version = 16
  197. 0A 00 00 00 - Firmware Version = 10
  198. 05 00 00 00 - CC3000 Firmware Version = 5 (ti wifi chipset)
  199.  
  200. 10 27 - Static Server Port Little Endian = 10000
  201. 2A 79 6F D0 - Static Server IP = 42.121.111.208
  202. 10 27 - Domain Server Port Little Endian = 10000
  203. 76 69 63 65 6E 74 65 72 2E 6F 72 76 69 62 6F 2E 63 6F 6D - Domain Server Name = vicenter.orvibo.com (Max Length = 40 = 80bytes)
  204. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 - Domain Server Name Padding (spaces)
  205.  
  206. C0 A8 01 C8 - Local Static IP = 192.168.1.200
  207. C0 A8 01 01 - Local Gateway IP = 192.168.1.1
  208. FF FF FF 00 - Local Net Mask = 255.255.255.0
  209. 01 - DHCP Mode = yes (00 = no, 01 = yes)
  210. 01 - Discoverable = yes (00 = no, 01 = yes)
  211.  
  212. 00 - Time Zone Set
  213. 08 - Time Zone
  214.  
  215. 00 00 - ??? Unknown ???
  216.  
  217. 0C 00 - Countdown Seconds = 12
  218.  
  219. ================================================================================================================================================================
  220. Timing DATA: (Table 3)
  221. SEND: UDP x.x.x.x:10000
  222. ASCII:
  223. hd\00\1drt\ac\cf#$\19\c0 \00\00\00\00\04\00\03\00\00\00\00
  224. Hex:
  225. 68 64 00 1D 72 74 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 AA 00 BB 00 00 00 00 (Note: AA = Table Number = 03, BB = Version Flag = 02)
  226.  
  227. RECEIVE:
  228. ASCII:
  229. hd\00Xrt\ac\cf#$\t\88 \02\00\00\00\00\03\00\01\00\00\1c\00\01\00\e2r\80\00c\0e\00\00\00\\\de\16\00\a0\19\00\01\00\de\07\07\r\10\00\00\ff\1c\00\02\00\e2r\80\00q\0f\00\00Pr\d2\16\00\a0\19\00\00\00\de\07\07\r\13\00\00\ff
  230. HEX:
  231. 68 64 00 58 72 74 AC CF 23 24 19 C0 20 20 20 20 20 20 02 00 00 00 00 03 00 01 00 00 1C 00 01 00 E2 72 80 00 63 0E 00 00 00 5C DE 16 00 A0 19 00 01 00 DE 07 07 0D 10 00 00 FF 1C 00 02 00 E2 72 80 00 71 0F 00 00 50 72 D2 16 00 A0 19 00 00 00 DE 07 07 0D 13 00 00 FF
  232. BREAKDOWN:
  233. 68 64 - Magic Key
  234.  
  235. 00 58 - Full Message Length = 88bytes
  236.  
  237. 72 74 - Command ID ?
  238.  
  239. AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
  240. 20 20 20 20 20 20 - Mac Address Padding (spaces)
  241.  
  242. 02 00 - Record ID Little Endian = 02
  243.  
  244. 00 00 00 - ??? Unknown ???
  245.  
  246. 03 - Table Number
  247.  
  248. 00 01 00 00 - ??? Unknown ???
  249.  
  250. 1C 00 - Record Length Little Endian = 28bytes
  251. 01 00 - Record Number Little Endian = 1
  252. E2 72 80 00 63 0E 00 00 00 5C DE 16 00 A0 19 00 - ??? Unknown ???
  253. 01 00 - Power state = on (00 = off, 01 = on)
  254. DE 07 - Year Little Endian = 2014
  255. 07 - Month = 7
  256. 0D - Day = 13
  257. 10 - Hour - 2? = 18 = 6pm
  258. 00 - Minute = 00
  259. 00 - Second = 00
  260. FF - Repeat = 255 = Repeat Everyday (Bits: 128 = Repeat, 64 = Sunday, 32 = Monday, 16 = Tuesday, 8 = Wednesday, 4 = Thursday, 2 = Friday, 1 = Saturday)?
  261.  
  262. 1C 00 - Record Length Little Endian = 28bytes
  263. 02 00 - Record Number Little Endian = 2
  264. E2 72 80 00 71 0F 00 00 50 72 D2 16 00 A0 19 00 - ??? Unknown ???
  265. 00 00 - Power state = off (00 = off, 01 = on)
  266. DE 07 - Year Little Endian = 2014
  267. 07 - Month = 7
  268. 0D - Day = 13
  269. 13 - Hour - 2? = 21 = 9pm
  270. 00 - Minute = 00
  271. 00 - Second = 00
  272. FF - Repeat = 255 = Repeat Everyday (Bits: 128 = Repeat, 64 = Sunday, 32 = Monday, 16 = Tuesday, 8 = Wednesday, 4 = Thursday, 2 = Friday, 1 = Saturday)?
  273.  
  274. ================================================================================================================================================================
  275. POWER ON DATA:
  276. SEND: UDP x.x.x.x:10000
  277. ASCII:
  278. hd\00\17dc\ac\cf#$\19\c0 \00\00\00\00\01
  279. HEX:
  280. 68 64 00 17 64 63 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 01
  281.  
  282. RECEIVE: UDP x.x.x.x:10000
  283. ASCII:
  284. hd\00\17sf\ac\cf#$\19\c0 \00\00\00\00\01
  285. HEX:
  286. 68 64 00 17 73 66 AC CF 23 24 19 C0 20 20 20 20 20 20 00 00 00 00 01
  287.  
  288. BREAKDOWN:
  289. 68 64 - Magic Key
  290.  
  291. 00 17 - Full Message Length = 23bytes
  292.  
  293. 73 66 - Command ID ?
  294.  
  295. AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
  296. 20 20 20 20 20 20 - Mac Address Padding (spaces)
  297.  
  298. 00 00 00 00 - ??? Unknown ???
  299.  
  300. 01 - Power state = on (00 = off, 01 = on)
  301.  
  302. ================================================================================================================================================================
  303. POWER OFF DATA:
  304. SEND: UDP x.x.x.x:10000
  305. ASCII:
  306. hd\00\17dc\ac\cf#$\19\c0 \00\00\00\00\00
  307. HEX:
  308. 68 64 00 17 64 63 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 00
  309.  
  310. RECEIVE: UDP x.x.x.x:10000
  311. ASCII:
  312. hd\00\17sf\ac\cf#$\19\c0 \00\00\00\00\01
  313. HEX:
  314. 68 64 00 17 73 66 AC CF 23 24 19 C0 20 20 20 20 20 20 00 00 00 00 00
  315.  
  316. BREAKDOWN:
  317. 68 64 - Magic Key
  318.  
  319. 00 17 - Full Message Length = 23bytes
  320.  
  321. 73 66 - Command ID ?
  322.  
  323. AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
  324. 20 20 20 20 20 20 - Mac Address Padding (spaces)
  325.  
  326. 00 00 00 00 - ??? Unknown ???
  327.  
  328. 00 - Power state = off (00 = off, 01 = on)
RAW Paste Data