Skip to content

Instantly share code, notes, and snippets.

#include <SPI.h>
#include <stdint.h>
#include <BLEPeripheral.h>
#include <Adafruit_GFX.h>
#include <nrf_nvic.h>//interrupt controller stuff
#include <nrf_sdm.h>
#include <nrf_soc.h>
#include <WInterrupts.h>
#include <Adafruit_SSD1306.h>
#include <TimeLib.h>
:020000040800F2
:20000000780A00201902000821020008230200082502000827020008290200080000000030
:200020000000000000000000000000002B0200082D020008000000002F02000831020008E0
:200040003302000833020008330200083302000833020008330200083302000833020008B8
:200060003302000833020008330200083302000833020008A120000833020008330200080C
:200080003302000833020008000000003302000833020008330200083302000833020008B5
:2000A0003302000833020008330200083302000833020008000000003302000800000000D2
:2000C0003302000800000000330200083302000833020008330200083302000800000000B2
:2000E0000000000000000000330200080000000000000000000000000000000000000000C3
:20010000330200080000000000000000330200080000000000000000000000000000000065
:020000040800F2
:20000000580900200D02000883180008B117000881180008790B0008D93F00080000000088
:20002000000000000000000000000000CD240008870F00080000000025190008512C00085E
:20004000270200082702000827020008270200082702000827020008270200082702000818
:200060002702000827020008270200082702000827020008270200082702000827020008F8
:200080002702000827020008270200082702000827020008270200082702000827020008D8
:2000A000270200089D2C000827020008270200082702000827020008270200082702000818
:2000C000270200082702000827020008270200082702000827020008270200082702000898
:2000E000270200082702000827020008270200082702000827020008270200082702000878
:20010000270200082702000827020008270200082702000827020008270200082702000857
/*
* Decompiled with CFR 0.0.
*
* Could not load the following classes:
* java.lang.CharSequence
* java.lang.Object
* java.lang.String
*/
package desay.desaypatterns.patterns;
/*
* Test Code For Hoverboard with this firmware:
* https://github.com/p-h-a-i-l/hoverboard-firmware-hack
*
* Connect the PPM Receiver Data Pin to Arduino Pin 3
* And set the Amount of channels of the PPM Receiver.
* this code uses the Arduino Hardware serial.
*
*/
{
"count": 125,
"result": [
{
"id": "145",
"device_id": "8124",
"project_number": "HB093-2",
"device_name": "H29",
"identifier": "iband",
"blood_pressure": "1.0.0",
yFoAIF2FBwBlhQcAZ4UHAGmFBwBrhQ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":"https://www.vphband.com/vph_2/VPH_2_00063300_14.zip","NewVersion":"00.06.33","Version":"06.33","Url":"https://www.vphband.com/vph_2/VPH_2_00063300_14.zip","Type":"zip","DeviceType":"14","Des":"1. The firmware upgrade will take 1-3 minutes.\n2. Before upgrading, ensure that the battery of your mobile phone and the device are both 40% above.\n3. Please do not operate the mobile phone while upgrading, and keep the device and cell phone within 0.2 meters.\n4. The device name will change to DFULang or DFU-52 if the upgrade fails, and the device will maintain upgrade state and the screen can not bright. Please reconnect the device and upgrade again.\n5. If upgrades fail repeatedly, please change a phone to upgrade again, due to the possibility of instability of mobile phone bluetooth. Before that´╝î please switch off the bluetooth of preceding mobile phone.","Size":"71672","NewSize":"71672","MD5":"f98ff19c61ebd0b55b137705ec97540a","NewMD5":"f98ff19c
1 Response:{\"data\":{\"deviceVer\":[{\"appname\":\"Fitband_EFM32_154.bin\",\"appurl\":\"http:\/\/care.desay.com\/apk_update\/test\/Fitband_EFM32_154.bin\",\"explains\":\"test108\",\"explainsEN\":\"test108\",\"gtype\":\"01\",\"manufCode\":1,\"md5\":\"a1aca069223b47d7fcc22990bb8b4ab5\",\"ver\":108},{\"appname\":\"Fitband_EFM32_154.bin\",\"appurl\":\"http:\/\/care.desay.com\/apk_update\/test\/Fitband_EFM32_154.bin\",\"explains\":\"test2019011402\",\"explainsEN\":\"test2019011402\",\"gtype\":\"02\",\"manufCode\":1,\"md5\":\"a1aca069223b47d7fcc22990bb8b4ab5\",\"ver\":2}]},\"msg\":\"Data submission success\",\"stateCode\":\"001\"}
14 Response:{\"data\":{\"deviceVer\":[{\"appname\":\"B103_5.0.3_038.img\",\"appurl\":\"http:\/\/care.desay.com\/apk_update\/test\/B103_5.0.3_038.img\",\"explains\":\"1\u3001\u8BBE\u7F6EDA14580\u82AF\u7247\u5185\u90E8LDO\u5BC4\u5B58\u5668\",\"explainsEN\":\"1, set DA14580 chip internal register\",\"gtype\":\"02\",\"manufCode\":14,\"md5\":\"fa0bcd19a0b23932211771d312fa61cb\",\"ver\":38}]},
14 Response:{\"data\":{\"deviceVer\":[{\"appname\":\"B103_5.0.3_036.img\",\"appurl\":\"http:\/\/care.desay.com\/apk_update\/B103_5.0.3_036.img\",\"explains\":\"1\u3001\u89E3\u51B3ANCS\u91CD\u542F\\n2\u3001\u89E3\u7ED1\u6CA1\u6709\u9A6C\u4E0A\u65AD\u94FE\",\"explainsEN\":\"1, solve the ANCS restart\\n2, the unbundling not broken\",\"gtype\":\"02\",\"manufCode\":14,\"md5\":\"087b8b7d5b39517067230b5c57cec0a9\",\"ver\":36}]},\"msg\":\"Data submission success\",\"stateCode\":\"001\"}
15 Response:{\"data\":{\"deviceVer\":[{\"appname\":\"B522_0.9.2_1.0.0_024.zip\",\"appurl\":\"http:\/\/care.desay.com\/apk_update\/test\/B522_0.9.2_1.0.0_024.zip\",\"explains\":\"\u4F18\u5316\u5E7F\u64AD\u53C2\u6570\uFF0C\u4F18\u5316\u7761\u7720\u7B97\u6CD5\uFF0C\u4F18\u5316\u8BA1\u6B65\u7B97\u6CD5\u3002\",\"explainsEN\":\"Optimization of radio parameters, optimal sleep algorithm, optimization step algorithm.\",\"gtype\":\"02\",\"manufCode\":15,\"md5\":\"249a41bac3247ab5bd0ceae30870b21c\",\"ver\":24}]},\"msg\":\"Data submission success