SHENZHEN  YUSHENGCHANG  TECHNOLOGY CO.,LTD

4p-touch.en.made-in-china     |     English    |     Chinese

Server Protocol configuration

Views:70     Author:Site Editor     Publish Time: 2021-05-28      Origin:Site


Device System firmware software is Language C ;

App software language for IOS is Object C,yet language for Android is Java

The server language is Node. JS


key encryption is AES128


Server Protocol GPRS Communication               

Version:V1.8_20190313 update

Contents

一. Device send command........................................................................................................... 2

1. Link Keep......................................................................................................................... 2

2. Position data report.......................................................................................................... 2

3. Blind spot Data Supplements............................................................................................ 3

4. Alarm data report.............................................................................................................. 3

二. Platform send command........................................................................................................ 4

1. Upload the data interval set up......................................................................................... 4

2. Center number set up...................................................................................................... 4

3. Message Control password set up................................................................................... 4

4. Outgoing calls.................................................................................................................. 4

5. Listen in/ Voice Monitor.................................................................................................... 5

6. SOS number set up.......................................................................................................... 5

7. IP port set up................................................................................................................... 6

8. Restore factory set up...................................................................................................... 6

9. Language and time zone set up....................................................................................... 6

10. SOS SMS alarm switch................................................................................................... 7

11. Low battery alarm message switch.................................................................................. 7

12. Check the version.......................................................................................................... 7

13. Restart........................................................................................................................... 7

14. Position command.......................................................................................................... 8

15. The shutdown command................................................................................................ 8

16. Take off the watch alarm switch..................................................................................... 8

17. Pedometer set up........................................................................................................... 9

18. Walk time section set up................................................................................................. 9

19. Sleep and tumbling time detection set up....................................................................... 9

20. No disturbance time section set up................................................................................ 9

21. Looking for a watch command........................................................................................ 9

22. A number of small red flowers set up........................................................................... 10

23. Alarm clock set command............................................................................................. 10

24.Voice chat function........................................................................................................ 10

25. Device checking the offline voice message.................................................................. 11

26. Phrases Display command............................................................................................ 11

27.Phonebook set up......................................................................................................... 12

28.Touch to add single friend ........................................................................................... 12

29.Romove single friend.................................................................................................... 12

30. Scene mode................................................................................................................. 13

三. Heart Rate protocol Appendix.............................................................................................. 13

3.1. Platform remote request Heart rate and blood pressure

3.2.Device upload the heart rate data

3.3. Blood pressure upload( blood pressure measuring only)

3.4. Heart rate and Blood pressure upload( both measuring at the same time)...........14

3.5.Voice Alarm version take medicine (request device reply)

四.Remote Snapshot Command.......................................................................................     .....14

五.Fall down alarm alert..............................................................................................................15

六.Body temperature measure......................................................................................................16

七. Wifi Setting protocol………………………………………………………………………………17-18

八.Appendix..........................................................................................................................      19-20 


(In this protocol all the command strings in the format of [the manufacture*Device ID*content length*content], in it the manufacturer must be fixed two bytes only, device ID is 10 numbers comes from the IMEI ,the content length fixed are four byte ASC II codes, and the high digit forward and low digit afterward. For example, FFFF means the length is 65535.)

 Note: Any string or command in the string should start with [ and end with ], even on server end data .



一. Device send command

1. Link Keep

(1) Device Send:

 [CS*YYYYYYYYYY*LEN*LK]

 Example:[SG*8800000015*0002*LK]

Platform response:

[CS*YYYYYYYYYY*LEN*LK]

Example:[SG*8800000015*0002*LK]

Note:Once connected with local network, the datas will be send every 5-8 minutes, if the device not receive the reply from the server , then it will send the link keep every minute, after failure of connection 5 times, the device will reboot


(2) Device Send:

[CS*YYYYYYYYYY*LEN*LK,step, tumbling number,battery status percentage]

Example:[SG*8800000015*000D*LK,50,100,100]

Platform response:

[CS*YYYYYYYYYY*LEN*LK]

Example:[SG*8800000015*0002*LK]

Note: Once connected network, the datas will be send every 5-8 minutes, if the device not receive the reply from the server , then it will send LK every minute, after failure of link 5 times, the device will reboot


(Both of these strings exist.)

Very important tip: The server must reply all LK data! Otherwise the device will not send any other

data and keep on sending the LK data every minute.

2. Position data report

Device Send:

[CS*YYYYYYYYYY*LEN*UD, the position data (see appendix one)]

Example:[3G*9403094122*00CD*UD,180916,025723,A,22.570733,N,113.8626083,E,0.00,249.5,0.0,6,100,60,0,0,00000010,7,255,460,1,9529,21809,158,9529,63555,133,9529,63554,129,9529,21405,126,9529,21242,124,9529,21151,120,9529,63556,119,0,40.7]



Note:

Data contents:

UD-command number

(Type:

UD: that means the device is using 2G GSM network.

UD_WCDMA: that means the device is using 3G WCDMA network.

UD_LTE: that means the device is using 4G LTE network.)

180916-date

025723-time(Greenwich mean time)

A-gps Positioning is valid (A or V: A means GPS location is valid. V means GPS location is invalid,please check LBS or WIFI location data.)

22.570733-latitude

N or S: North /South.

113.8626083-longitude

E or W: East / West.

0.00-Speed (for a personal GPS tracker, this speed almost is no reference value)

249.5-Direction (for a personal GPS tracker, this speed almost is no reference value)

0.0-altitude (height above sea level, this data almost is no reference value.)

6-satellite numbers ( Effective)

100-gsm signal strength(Full is 100)

60-battery status ( Full is 100%)

0-pedometer ( Counting steps number)

0-tumbling times( Counting sleeping flipping)

00000010-the device situation,The data is hexadecimal,it show in 16 Hexadecimal,convert it in binary system is 0000 0000 0000 0000 0000 0000 0001 0000

in the front of 4 bit of the string is status,the last 4 bit is alarm,0001, the number is please kindly refer to the data note is the device is in rest status.You can refer to the last part of this file for detail information.( Please refer to the appendix form for the meaning of each bit.)

7-local base station numbers

255,460,1,9529,21809,158,9529,63555,133,9529,63554,129,9529,21405,126,9529,21242,124,9529,21151,120,9529,63556,119,base station information

0-WiFi number

40.7-positioning accuracy,it's meter

 

No response from platform

Note: The device reports the location and status information according to the set interval, and does not need the platform reply.

3.Blind spot Data Supplements           

Device send:

[CS*YYYYYYYYYY*LEN*UD2, the position data (see appendix one)]

Example:[3G*9403094122*00D0*UD2,180916,064032,A,22.570512,N,113.8623267,E,0.00,154.8,0.0,11,100,100,0,0,00000010,7,255,460,1,9529,21809,157,9529,21405,131,9529,63555,130,9529,21242,129,9529,63554,126,9529,63556,120,9529,21151,113,0,12.2]

Server no need reply.

Note: Re-upload the data which produced in off-line or disconnection, and report it to server immediately once online again, it’s ok for 3-5 positions in memory.

4. Alarm data report

Device Send:

[CS*YYYYYYYYYY*LEN*AL, the position data (see appendix one)]

Example:[3G*8800000015*00CD*AL,180916,064153,A,22.570512,N,113.8623267,E,0.00,154.8,0.0,11,100,100,0,0,00100018,7,0,460,1,9529,21809,155,9529,21242,132,9529,21405,131,9529,63554,131,9529,63555,130,9529,63556,118,9529,21869,116,0,12.4]

Platform response:

 [CS*YYYYYYYYYY*LEN*AL]

Example:[SG*8800000015*0002*AL]

Note: Device sends alarm information to the platform after alarming , if the device has not received the reply, then regular reporting until receive the alarm confirmation

eg.:[3G*4504816162*010A*AL_LTE,241020,085353,V,0.0,N,0.0,E,22.0,0,-1,1,100,35,0,0,00200000,1,1,460,11,30602,125639728,100,5,4P-Touch,bc:5f:f6:1e:07:be,-55,ChinaNet-a9Ld,c4:b8:b5:c4:14:79,-53,ChinaNet-CX9r,f0:92:b4:95:3d:b9,-57,5B,08:31:8b:ae:ef:c8,-66,TP-LINK_274E,50:bd:5f:80:27:4e,-63,0.0]

Fall down is 00200000, the 21st bit

(refer to appendix one)

Count from right to left, the 1st bit is 0, the 21st bit is 00200000,the SOS AL is 16 bit is 00010000

二.Device send command

1. Upload the data interval set up

Platform send:

[CS*YYYYYYYYYY*LEN*UPLOAD,interval]

Example:[SG*8800000015*0009*UPLOAD,10]

Device response:

[CS*YYYYYYYYYY*LEN*UPLOAD]

Example:[SG*8800000015*0006*UPLOAD]

Noted: Set the regular time interval for the device to upload datas. The upload interval for the device once in dynamic state only, the watch does not report the position data once the device in sleep status.if no any moving or shaking from the different orientation for 2 minutes , it will be auto go to sleep mode , only linkkeep for network connection only .but if any moving or shaking , it will wake up immediately .and syncs the data per time interval .the time interval is seconds,the min is 10, the max is 65535 seconds.

2. Center number set up

Platform send:

[CS*YYYYYYYYYY*LEN*CENTER,center number]

Example:[SG*8800000015*0012*CENTER,00000000000]

Device response:

[CS*YYYYYYYYYY*LEN*CENTER]

Example:[SG*8800000015*0006*CENTER]

Noted: set the center number,it can send the SMS command through this center phone number。Meanwhile, all the alarm messages will send to this center number in the mobile phone.

3. Control password set up

Platform send :

[CS*YYYYYYYYYY*LEN*PW,password]

Example:[SG*8800000015*0009*PW,111111]

Device response:

[CS*YYYYYYYYYY*LEN*PW]

Example:[SG*8800000015*0002*PW]

Note: set the device message control password,if any other phone number (it's not the center number) send SMS commands to the device add this password.

4. Outgoing calls

Platform send:

[CS*YYYYYYYYYY*LEN*CALL,phone number]

Example:[SG*8800000015*0010*CALL,00000000000]

Device response:

[CS*YYYYYYYYYY*LEN*CALL]

Example:[SG*8800000015*0004*CALL]

Noted: The device will dial the corresponding phone number in this command once the device receive the command

5.Listen in/ Voice Monitor

Platform send:

[CS*YYYYYYYYYY*LEN*MONITOR]

Example:[SG*8800000015*0007*MONITOR]

Device Response:

[CS*YYYYYYYYYY*LEN*MONITOR]

Example:[SG*8800000015*0007*MONITOR]

Note:device automatic callback the center number.

Platform send:

[CS*YYYYYYYYYY*LEN*MONITOR,00000000000]

Example:[SG*8800000015*0013*MONITOR,13100010002]

Device Response:

[CS*YYYYYYYYYY*LEN*MONITOR]

Example:[SG*8800000015*0007*MONITOR]

Note: device  automatic callback the phone number in the command.

The above 2 commands are valid

6.SOS number set up

(1) First SOS number Set up

Platform send:

[CS*YYYYYYYYYY*LEN*SOS1,phone number]

Example:[SG*8800000015*0010*SOS1,00000000000]

Device response:

[CS*YYYYYYYYYY*LEN*SOS1]

Example:[SG*8800000015*0004*SOS1]

(2) the second SOS number set up

Platform send:

[CS*YYYYYYYYYY*LEN*SOS2, phone number]

Example:[SG*8800000015*0010*SOS2,00000000000]

Device response:

[CS*YYYYYYYYYY*LEN*SOS2]

Example:[SG*8800000015*0004*SOS2]

(3) The third SOS number set up

Platform send:

[CS*YYYYYYYYYY*LEN*SOS3, phone number]

Example:[SG*8800000015*0010*SOS3,00000000000]

Device response:

[CS*YYYYYYYYYY*LEN*SOS3]

Example:[SG*8800000015*0004*SOS3]

(4)  set the 3 SOS number at the same time

Platform send:

[CS*YYYYYYYYYY*LEN*SOS,phone number, phone number, phone number]

Example:[SG*8800000015*0027*SOS,00000000000,00000000000,00000000000]

Device response:

[CS*YYYYYYYYYY*LEN*SOS3]

Example:[SG*8800000015*0003*SOS]

Note:After setting the SOS numbers,once any SOS emergency, the device will auto dial the SOS numbers one by one , if any number pick up the phone, it will stop dialing the next number; if none pick up, it will auto dial the SOS numbers 2 rounds and then end it. Meanwhile, it will send the emergency message to the 3 SOS numbers..

7.IP port set up

Platform send:

[CS*YYYYYYYYYY*LEN*IP,IP or URL,port]

Example:[SG*8800000015*0014*IP,113.81.229.9,5900]

Device not reply this command, directly disconnect the current connection, connect the new server

Note: setting the link of platform IP address and port.

8. Restore factory set up

Platform send:

[CS*YYYYYYYYYY*LEN*FACTORY]

Example:[SG*8800000015*0007*FACTORY]

Device response:

[CS*YYYYYYYYYY*LEN*FACTORY]

Example:[SG*8800000015*0007*FACTORY]

Note: The device restores factory original settings

9. The language and time zone set up

Platform send:

[CS*YYYYYYYYYY*LEN*LZ,language,time zone]

Example:[SG*8800000015*0006*LZ,1,8]

Terminal response:

[CS*YYYYYYYYYY*LEN*LZ]

Example:[SG*8800000015*0002*LZ]

Note: Set the terminal language and time zone.

The following is the parameter charactor of the language supported by the terminal:

0-English,
1-Simplify Chinese
3- Portuguese
4-Spain
5-German

7-Turkish
8-Vietnam

9-Russia

10-French

Note:Not all the devices support all these 10 languages

10. SOS SMS alarm switch

Platform send:

[CS*YYYYYYYYYY*LEN*SOSSMS,0 OR 1]

Example:[SG*5678901234*0008*SOSSMS,0]

Device response:

[CS*YYYYYYYYYY*LEN*SOSSMS]

Example:[SG*5678901234*0006*SOSSMS]

Note: send sms to sos numbers or not when there is sos alarming(0:OFF, 1:ON).

11. Low battery alarm message switch

Platform send:

[CS*YYYYYYYYYY*LEN*LOWBAT,0或1]

Example:[SG*5678901234*0008*LOWBAT,1]

Device response:

[CS*YYYYYYYYYY*LEN*LOWBAT]

Example:[SG*5678901234*0006*LOWBAT]

Note: send sms to center number or not when there is low battery alarming (0:OFF, 1: ON)  

.

12.Check the version

Platform send:

[CS*YYYYYYYYYY*LEN*VERNO]

Example:[SG*8800000015*0005*VERNO]

Device response:

[CS*YYYYYYYYYY*LEN*VERNO,VERSION INFORMATION]

Example:[SG*8800000015*0028*VERNO,G29_BASE_V1.00_2014.04.23_17.46.49]

Note: check the device vision.

13. Restart

Platform send:

[CS*YYYYYYYYYY*LEN*RESET]

Example:[SG*5678901234*0005*RESET]

Device response:

[CS*YYYYYYYYYY*LEN*RESET]

Example:[SG*5678901234*0005*RESET]

Note:the device will restart after receive the command,the device just restart in the backstage and not show it on the device.

14.Position command

Platform send:

[CS*YYYYYYYYYY*LEN*CR]

Example:[SG*5678901234*0002*CR]

Device response:

[CS*YYYYYYYYYY*LEN*CR]

Example:[SG*5678901234*0002*CR]

Note: Wake up the device GPS mode immediately, constant position for 3 minutes ,upload the map location datas every 10 minutes,it will stop after 3 minutes.

15. The shutdown command

Platform send:

[CS*YYYYYYYYYY*LEN*POWEROFF]

Example:[SG*5678901234*0008*POWEROFF]

Device response:

[CS*YYYYYYYYYY*LEN*RESET]

Example:[SG*5678901234*0008* POWEROFF]

Note:the device will shut down once receive the command

16. Take off the watch the alarm switch ( Please kindly check the device firmware if with light sensor or not, if not , then unnecessary for configuration)--this is only for the GPS with valid light sensor for take off alerts feature only)

Platform send:

[CS*YYYYYYYYYY*LEN*REMOVE,0 OR 1]

Example:[SG*5678901234*0008*REMOVE,1]

Device response:

[CS*YYYYYYYYYY*LEN*REMOVE]

Example:[SG*5678901234*0006*REMOVE]

Note: Take off the watch the alarm switch,(1:ON,0:OFF).

 

Take off the watch the SMS alarm switch:

Platform send:

[CS*YYYYYYYYYY*LEN*REMOVESMS,0 OR 1]

Device response:

[CS*YYYYYYYYYY*LEN*REMOVESMS]

Note:Take off the watch the SMS alarm switch,(1:ON,0:OFF)

17.Pedometer set up ( UN-necessary)

Platform send:

[CS*YYYYYYYYYY*LEN*PEDO,0 OR 1]

Example:[SG*5678901234*0004*PEDO,0]

Device response:

[CS*YYYYYYYYYY*LEN*PEDO]

Example:[SG*5678901234*0004*PEDO]

Note: Pedometer function switch. (1:ON,0:OFF)

18. Walktime set up* (Pedometer)

Platform send:

[CS*YYYYYYYYYY*LEN*WALKTIME, time section, time section, time section]

Example:[SG*5678901234*002A*WALKTIME,8:10-9:30,10:10-11:30,12:10-13:30]

Device response:

[CS*YYYYYYYYYY*LEN*ANY]

Example:[SG*5678901234*0008*WALKTIME]

Note: set the walking time step counting time section.

 

Note:The device records two values, one is the number of steps per day, which will be reset every day, and the other is the cumulative total number of steps, which will not be reset. What the device report to the server is the total number of steps, and the server must calculate the number of steps per day based on the total number of steps uploaded

19. Sleep and tumbling time detection settings

Platform send:

[CS*YYYYYYYYYY*LEN*SLEEPTIME, time section]

Example:[SG*5678901234*0014*SLEEPTIME,21:10-7:30]

Device response:

[CS*YYYYYYYYYY*LEN*ANY]

Example:[SG*5678901234*0009*SLEEPTIME]

Note: Sleep and tumbling time detection settings in time section

20. No disturbance time section set up

Platform send:

[CS*YYYYYYYYYY*LEN*SILENCETIME,time section, time section, time section, time section]

Example:[SG*5678901234*0037*SILENCETIME,21:10-7:30,21:10-7:30,21:10-7:30,21:10-7:30]

Device response:

[CS*YYYYYYYYYY*LEN*SILENCETIME]

Example:[SG*5678901234*000B*SILENCETIME]

Note: Set the range of non-disturbing time period, the time period only for Monday to Friday, intercept the device of any calls, the weekend is invalid.

21.Look for a watch set up

Platform send:

[CS*YYYYYYYYYY*LEN*FIND]

Example:[SG*5678901234*0004*FIND]

Device response:

[CS*YYYYYYYYYY*LEN*FIND]

Example:[SG*5678901234*0004*FIND]

Note: Send this command , the device ringing 1 minute, press the button for confirmation

22. A number of small red flowers set up

Platform send:

[CS*YYYYYYYYYY*LEN*FLOWER,flower pieces]

Example:[SG*5678901234*0008*FLOWER,5]

Device response:

[CS*YYYYYYYYYY*LEN*FLOWER]

Example:[SG*5678901234*0006*FLOWER]

Note: the device screen will appear the number of the red flowers.

23. Alarm clock set command

Platform send:

[CS*YYYYYYYYYY*LEN*REMIND,alarm 1,alarm 2,alarm 3]

Example:[SG*5678901234*0018*REMIND,08:10-1-1,08:10-1-2, 08:10-1-3-0111110]

Device response:

[CS*YYYYYYYYYY*LEN*REMIND]

Example:[SG*5678901234*0006*REMIND]

Note:Clock alarm format:time-switch-how often(1:Once;2:every day;3: self defaulted)

08:10-1-1:colock alarm time 8:10,ON,Once

08:10-1-2:colock alarm time 8:10,ON,every day

08:10-1-3-0111110:colock alarm time 8:10,ON,self defaulted monday to friday

24.Voice chat function

(1)Platform send voice message:

[CS*YYYYYYYYYY*LEN*TK,AMR audio data]

Device response:

[CS*YYYYYYYYYY*LEN*TK,receive status]

receive status:1—success receving

0-    failure

the server ARM audio data need to be changed the version as follows,once the server receive the voice message or voice recorder the datas format on the left will changed tothe data format on the right:

0X7D 0X01 -->  0X7D

0X7D 0X02 -->  0X5B

0X7D 0X03 -->  0X5D

0X7D 0X04 -->  0X2C

0X7D 0X05 -->  0X2A

 

(2)Device send the voice message:

[CS*YYYYYYYYYY*LEN*TK,AMR audio data]

Platform response:

[CS*YYYYYYYYYY*LEN*TK, receive status]

receive status:1—success receving

0-    0- failure

 

the server ARM audio data need to be changed the version as follows,once the server receive the voice message or voice recorder the datas format on the left will changed tothe data format on the right:

0X7D --> 0X7D 0X01

0X5B --> 0X7D 0X02

0X5D --> 0X7D 0X03

0X2C --> 0X7D 0X04

0X2A --> 0X7D 0X05

25.Device checking the offline voice message

Device demand to send the voice recorder:

[CS*YYYYYYYYYY*LEN*TKQ]

Platform response:

[CS*YYYYYYYYYY*LEN*TKQ]

Device demand to send the friend voice recorder:

[CS*YYYYYYYYYY*LEN*TKQ2]

Platform response:

[CS*YYYYYYYYYY*LEN*TKQ2]

26. Phrases Display set command

Platform send:

[CS*YYYYYYYYYY*LEN*MESSAGE,phrases contents]

Example:[SG*5678901234*0018*MESSAGE,597D003100320033]

Device response :

[CS*YYYYYYYYYY*LEN*MESSAGE]

Example:[SG*5678901234*0007*MESSAGE]

Note: this command push sending the phrases to device,the phrases in GB232 coding be sent to device.

 

27.Phone book set up

Platform send(1):

[3G*8800000015*len*PHB,phone number,name, phone number,name, phone number,name, phone number,name, phone number,name, phone number,name]

len: Send length hexadecimal ,Occupies 2 bytes

phone number:ascii character

name:Unicode coding

available for 5 names and 5 numbers the most,the phone number no more than 20 pieces ascii characters,name no more than 10 pieces Unicode characters

Example:

[3G*8800000015*0010*PHB,110,5F204E09]

Device response:[3G*8800000015*0003*PHB].

 

Platform send(2):

[3G*8800000015*len*PHB2, phone number,name, phone number,name, phone number,name, phone number,name, phone number,name, phone number,name]

len: Send length hexadecimal ,Occupies 2 bytes

phone number:ascii character

name:Unicode coding

available for 5 names and 5 numbers the most,the phone number no more than 20 pieces ascii characters,name no more than 10 pieces Unicode characters

Example:

[3G*8800000015*0010*PHB2,110,5F204E09]

Device response:[3G*8800000015*0004*PHB2]

Note:PHB is for the front 5 numbers, PHB2 for the last 5 numbers

28.Touch to add friend

Device send:

[CS*YYYYYYYYYY*LEN*PP,the device current time,position data(see appendix one)]

Example:[3G*8800000015*00D4*PP,091046,180916,085033,A,22.570193,N,113.8621950,E,0.48,60.3,0.0,9,100,100,0,0,00000010,7,255,460,1,9529,21809,160,9529,21405,133,9529,63555,133,9529,63554,124,9529,21242,119,9529,21151,118,9529,63574,116,0,23.2]

Platform response:

situation 1:add friend success

[SG*8800000015*LEN*ID]

Example:[SG*8800000015*000A*8800000015]

situation 2:add friend failure

[SG*8800000015*LEN*X]

X if 1 means the other device already add you as friends, X if 2 means you already add the other device as friends .

Example:

[SG*8800000015*0001*1]

[SG*8800000015*0002*2]

29.Remove single friend

Platform send:

[SG*8800000015*0003*PPR]

no response from the device

 

30.Scence mode

Platform send:

[CS*YYYYYYYYYY*LEN*profile,x]

X-1,2,3,4

1-vibration and ringing

2- ringing

3- vibration

4-silence

Device response:
[CS*YYYYYYYYYY*LEN*frofile]

 

.Heart rate protocol


3.1.*Platform remote request Heart rate and blood pressure:

Platform send:
[3G*8800000015*len*hrtstart,x]

x is 1 means device upload the heart rate datas single time, then auto stop after uploading. Eg.:[3G*9513979338*000a*hrtstart,1]
x is 0 means device stop uploading the heart rate datas.

Device response:
[3G*8800000015*len*hrtstart]

[3G*8800000015*0013*bphrt,112,73,67,,,,]

Systolic blood pressure:112

Diastolic blood pressure:73

Heart rate:67


3.2.Device upload the heart rate data ( UN-necessary)


Device upload:
[3G*8800000015*len*heart,x]
x is the heart rate data every minute
Example:[3G*8800000015*0009*heart,100]
means:100times/minute

 

3.3. Blood pressure upload( blood pressure measuring only) ( UN-necessary)

 

Device upload:

[3G*8800000015*len*bpxy,xx,xx,xx,xx,xx,xx]

The 1st parameter xx represents high pressure and 0 means invalid.

The 2nd parameter xx represents low pressure and 0 means invalid.

The 3rd parameter xx represents height in cm

The 4th parameter xx represents gender 1 is male 2 is female

The 5th parameter xx represents age

The 6th parameter xx represents weight in KG

 

Platform response:

[3G*8800000015*len*bpxy]

 

 

3.4. *Heart rate and Blood pressure upload( both measuring at the same time)

 

Device upload:

[3G*8800000015*len*bphrt,xx,xx,xx,xx,xx,xx,xx]

 

The 1st parameter xx represents high pressure and 0 means invalid.

The 2nd parameter xx represents low pressure and 0 means invalid.

The 3rd parameter xx represents a heart rate of 0 for invalid

The 4th parameter xx represents height in cm

The 5th parameter xx represents gender 1 is male 2 is female

The 6th parameter xx represents age

The 7th parameter xx represents weight in KG

 

Platform response:

[3G*8800000015*len*bphrt]

 

 

3.5.Voice Alarm version take medicine (request device reply)

 

The platform send:

[3G*8800000015*len*TAKEPILLS, reminder settings, number, reminder text, voice data]

 

Note: 1. The value of the medication reminder function (DD) in the function configuration protocol CONFIG is configured as "2".

DD - medication reminder function (0: no, 1: have (old version), 2: voice version

 

1, reminder settings: the data format is the same as the alarm clock (time - switch - frequency - custom)

 

2, number 1 - 3 (up to 3 reminders)

3, reminder text using unicode encoding

4, the voice data can be empty (that is, no voice is set), but the protocol parameter format is unchanged (that is, there will be a comma ",")

eg.:[3G*4804582612*002a*TAKEPILLS,11:25-1-2,1,006f00770070006d0067]

Note:006f00770070006d0067 is HEX example of alarm text.

 

If the audio is recorded, the recording file will be added at the end:[3G*4804582612*002a*TAKEPILLS,11:25-1-2,1,006f00770070006d0067,audio file]

 

Terminal reply:

[3G*7893267563*0002*TAKEPILLS, status code]

 

Status code: 1 - success 0 - failure

 

.Remote Snapshot Command

Platform send:

[CS*YYYYYYYYYY*LEN*rcapture]

Example:

[3G*8800000015*len*rcapture]

Device response:

Upload picture command:

[3G*8800000015*len*img,x,y,z]

X  is 5:remote snapshot

Y means :time(year month date hour minute second:160429110950)

Character Z is picture contents

 

五.Fall down alarm alert

Platform send:

[3G*YYYYYYYYYY*LEN*FALLDOWN,X,Y]

X  is Fall down alarm alert switch,1 is ON ;0 is OFF

Y means once detect fall down, if need call the center number or not, 1 is ON ;0 is OFF

Device response:

[3G*YYYYYYYYYY*LEN*FALLDOWN]

 

Fall down detection sensitive setting

 

Platform send:

[3G*4504816144*0009*LSSET,X+6]

 

X represents the current sensitivity level, 6 represents the total sensitivity level

 

Device reply:[3G*4504816144*0007*LSSET,X]

 

Body Temperature Measure

1.    Temperature upload from watch (old version)

Device send

[3G*8800000015*len*btemp,37.2]

 

(Note:len=000a)

 

Server do not reply

( Please kindly note 37.2 is dynamic change , it’s come from the device )

 

2.    Temperature upload from watch (new updated version)

Device send:

[3G*YYYYYYYYYY*LEN*btemp2,type,temp]

Type :measurement mode:0:forehead mode 1: wrist hand mode*

Temp :temperature degree,

 

When temp=0, low temperature abnormal (measure abnormal)

When temp=1, high temperature abnormal(measure abnormal)

 

Server reply:

[3G*YYYYYYYYYY*LEN*btemp2]

 

1.    Real-time temperature request (New version)

Server send:

[3G*YYYYYYYYYY*LEN*bodytemp2]

 

Device reply:

[3G*YYYYYYYYYY*LEN*bodytemp2]

 

2.    Temperature measurement request per time interval (New version)

Server send :

[3G*YYYYYYYYYY*LEN*bodytemp,arg1,arg2]

arg1 :0 : turn off interval measurement  1 :turn on interval measurement

arg2 :2(1-12) :time interval, Unit: hour, Range: 1-12 (No data in night mode)

 

Device reply:

[3G*YYYYYYYYYY*LEN*bodytemp]

 

七.Wifi setting

 

1.    Wifi search

Platform send :

[CS*YYYYYYYYYY*LEN*WIFISEARCH]

example:[SG*8800000015*000A*WIFISEARCH]

Device reply:

[CS*YYYYYYYYYY*LEN* WIFISEARCH,wifi numbers,WIFIID,SSID]

example:

[SG*8800000015*000A*WIFISEARCH,3,3gelec8888,08:c0:21:1e:68:e0,

3gelec8888,08:c0:21:1e:68:e0, 3gelec8888,08:c0:21:1e:68:e0]

Note:search device end wifi quantity

 

2.    Wifi set up

Platform send :

[CS*YYYYYYYYYY*LEN*WIFISET]

example:[SG*8800000015*000A*WIFISET, WIFIID, WIFIpassword, SSID]

Device reply:

[CS*YYYYYYYYYY*LEN* WIFISET]

example:

[SG*8800000015*000A* WIFISET, 3gelec3,3gelec8888,08:c0:21:1e:68:e0]

Note :set WIFI password

 

3.    Wifi delete

Platform send :

[CS*YYYYYYYYYY*LEN*WIFIDEL]

example:[SG*8800000015*000A* WIFIDEL,WIFIID, SSID]

Device reply:

[CS*YYYYYYYYYY*LEN* WIFIDEL]

example:

[SG*8800000015*000A* WIFIDEL, 3gelec3 ,08:c0:21:1e:68:e0]

Note:Delete WIFI

 

5Check the currently connected wifi

Platform send :

[CS*YYYYYYYYYY*LEN*WIFICUR]

Example:[SG*8800000015*000A* WIFICUR]

Device reply:

[CS*YYYYYYYYYY*LEN* WIFICUR, WIFIID, SSID]

example:

[SG*8800000015*000A* WIFICUR, 3gelec3, 08:c0:21:1e:68:e0]

Note:check the currently connected wifi information

0,0means disconnection。

 

 

2019-05-31 updated

 

5.Wifi setting modified report

Note :After the user sets the wifi information through the APP, and then resets the cached wifi through the smart phone watch wifi setting menu, the modified information needs to be reported

Device report

[CS*YYYYYYYYYY*LEN*WIFIINFOUP, wifi_name, wifi_password, wifi_ssid]

 

wifi_name                (HEX)

wifi_password                (HEX)

wifi_ssid                         

 

Platform reply

[CS*YYYYYYYYYY*LEN* WIFIINFOUP,status]

 

status:

 

-1:data length wrong

0:server un-normal

1:Success

 

*4G GPS watch GPS switch

 

For 4G watch ,There is a command need send from server end to control GPS positioning before the GPS positioning will be uploaded. By default, GPS positioning is not enabled.

[3G*0304927626*000C*APPLOCK,DW-1]

 

Noted :1 is ON, 0 is OFF


*Night mode Switch

 

Night power saving mode is on

[3G*0304927626*000C*APPLOCK,YJ-1]

Night power saving mode is off

[3G*0304927626*000C*APPLOCK,YJ-0]



八. Appendix

Appendix一: Locvation  Data Notes

Description

Examples  (ASII code)

Note

Date

120414

 (day month year) April 21, 2014

Time

101930

(hour, minutes   and seconds) ten nineteen 30 seconds

Whether   the Location

A

A: positioning V: No positioning

latitude

22.564025

According to the definition of DD.DDDDDD format, this latitude value is: 22.564025

Mark of latitude

N

N   expresses the north latitude, S expresses the south latitude.

Longitude

113.242329

According   to the definition of   DDD.DDDDDD format, this longitude value is: 113.242329.

Mark   of longitude

E

E   expresses the east longitude, W expresses the west longitude

Speed

5.21

5.21 km / hour.

Direction

152

In the direction of 152 degrees.

Altitude

100

Unit is meters

satellite   number

9

Indicates that the GPS satellite number

signal   intensity GSM

100

That represents the current GSM signal intensity (0-100)

Power

90

Battery   capacity status %

Pedometer

1000

Count   the number of steps

Tumbling   times

50

Tumbling   50 times

Device   status

00000000(Hexadecimal)

Indicated   with HEX string of character , the meaning is as follows:

The   high 16bit expression alarming, low 16bit expression condition.

The   Bit position (0 starts)       Meaning (1 Effective)

0                          Low battery   state

1                          out of fence state

2                          Into the fence   state

3                          watch state

16                        SOS alarm

17                        Low battery alarm

18                        out fence alarm

19                        Into the fence alarm

20                        Remove the watch alarm 

Base   stations number 

4

upload   Base stations number, 0 expressions does not uplaod the base station number

Base   station

1

GSM   Time delay

MCC code

460

MCC country code

MNC   code

02

MNC   network number

Base   station location area code

10133

Area code

Nearby   the base station numbers

5173

base   station serial No.

base   station signal strength

100

Signal strength

Nearby   the base station 1 location area code

10133

Area code

Nearby   the base station 1 number

5173

base   station serial No.

nearby   the base station 1 signal strength

100

Signal strength

Nearby   the base station 2 location area code

10133

Area code

Nearby   the base station 1 number

5173

base   station serial No.

nearby   the base station 2 signal strength

100

Signal strength

Nearby   the base station 3 location area code

10133

Area code

Nearby   the base station 3 number

5173

base   station serial No.

nearby   the base station 3 signal strength

100

Signal strength

Wifi hotspots valid

5

Wifi   hotspot valid quantity(the most 5),per the signal strength

Wifi 1name

rrr

The   1st wifi name

Wifi 1 MAC address

1c:fa:68:13:a5:b4

Wifi   1 MAC address

Wifi 1 signal strength

-61

Wifi   1 signal strength

Wifi 2 name

abc

The   2nd wifi name

Wifi 2 MAC address

1c:fa:68:13:a5:b5

Wifi   2 MAC address

Wifi 2 signal strength

-87

Wifi   2 signal strength





Shenzhen Yushengchang Technology
Co., Ltd

 Download APP

Contact us

  +86-755-29755516
  +8613267237809 (Connie Yan)
  +86 18588448985 (Selina Yu)    
  +8613509607927 (Alan Tong)

  
sales@4p-touch.com

Copyright © 2019 Shenzhen Yushengchang Technology Co., Ltd. All Rights Reserved

粤ICP备13064141号-1

CONTACT US