Valid

GB/T 37733.2-2020Sensor network—Remote personal health status monitoring—Part 2: Interface technical requirements between terminals and platform (English PDF)

传感器网络 个人健康状态远程监测 第2部分:终端与平台接口技术要求

Preview PDF

This is a limited preview

Buy now to download the full PDF (17 pages)

Need quotation for your management?

Get a formal quotation for GB/T 37733.2-2020 in 30 minutes.

Issued by

SAMR; SAC

Level / Type

National · Recommended

Issue date

April 28, 2020

Implementation date

November 1, 2020

Scope

GB/T 37733.2-2020 is the English-translated version of 传感器网络 个人健康状态远程监测 第2部分:终端与平台接口技术要求.

GB/T 37733.2-2020 is the Chinese standard "Sensor network—Remote personal health status monitoring—Part 2: Interface technical requirements between terminals and platform".

Its scope clause reads: This part of GB/T 37733 specifies the interaction flow between the terminal and the platform interface of the personal health status remote monitoring sensor network system Programming and interface data coding and functional requirements.

This section applies to the design, development and deployment of the interface between the personal health status remote monitoring sensor network terminal and the platform. Its clauses include terms and definitions; abbreviations.

Found what you need?

Document preview — GB/T 37733.2-2020

National Standard of the People's Republic of China

ICS
35.110
Classification
L 79

Issued by: State Administration for Market Regulation; Standardization Administration of the PRC

Contents

  • 1 Scope1
  • 2 Normative references1
  • 3 Terms and definitions1
  • 4 Abbreviations1
  • 5 Terminal and platform interface interaction process2
  • 6 Data encoding and function of terminal and platform interface2
  • 6.1 Interface data encoding format2
  • 6.2 Terminal registration interface3
  • 6.3 Terminal login interface4
  • 6.4 Heartbeat interface5
  • 6.5 Terminal exit interface6
  • 6.6 Terminal status update interface7
  • 6.7 Terminal data reporting interface8
  • 6.8 Terminal control interface9
  • 6.9 Terminal query interface10
  • 6.10 Terminal firmware upgrade interface11
  • Appendix A (informative appendix) Terminal and platform interface implementation example12

1 Scope

This part of GB/T 37733 specifies the interaction flow between the terminal and the platform interface of the personal health status remote monitoring sensor network system

Programming and interface data coding and functional requirements.

This section applies to the design, development and deployment of the interface between the personal health status remote monitoring sensor network terminal and the platform.

2 Normative references

The following documents are indispensable for the application of this document. For dated reference documents, only the dated version applies to this article

Pieces. For undated references, the latest version (including all amendments) applies to this document.

GB/T 16263.1-2006 Information Technology ASN.1 Coding Rules Part 1.Basic Coding Rules (BER), Regular Coding

Rules (CER) and Atypical Encoding Rules (DER) specifications (ISO /IEC 8825-1.2002, IDT)

GB/T 30269.501-2014 Information Technology Sensor Network Part 501.Identification. Rules for Compiling Sensor Node Identifiers

3 Terms and definitions

The following terms and definitions apply to this document.

3.1 Personal health terminal

A logical entity with personal vital signs data collection, processing, storage and transmission functions, composed of personal health equipment and personal health gateway composition.

Note. Referred to as terminal.

[GB/T 37733.1-2019, definition 3.2]

3.2 Long connection

A communication process that can send multiple packets continuously.

Note. When no data packet is sent, the terminal sends a heartbeat packet to the platform.

3.3 Heartbeat package

A link detection packet is sent at the agreed time interval to notify the other party of its own state regularly between the terminal and the platform.

3.4 Terminal identifier terminalidentification; TID

A series of consecutive characters used to uniquely and unambiguously identify the identity of a terminal worldwide.

4 Abbreviations

The following abbreviations apply to this document.

Appendix A (Informative appendix)

Example of terminal and platform interface implementation

This example uses pseudo-code to show the implementation process of the terminal and platform interface.

//--------------------General class definition------------------------- - structSTAT_DATA{//Define the terminal status update tag, this example takes the terminal status update data as an example shortm_Tag=9;//Operation flag, Tag shortm_Length;//Value length, Length

BYTE*m_Value;//Value, Value

//Define other data packets

//Interface definition boolRegister(REGIST_DATA)//Define the registration interface

REGIST_DATA_ACK=SendToPlatform(REGIST_DATA);//Send registration information to the platform if(REGIST_DATA_ACK.ACKVal =0) returnfalse;

returntrue;

boolLogin(LOGIN)//Define the login interface

LOGIN_ACK=SendToPlatform(LOGIN);//Send login information to the platform if(LOGIN_ACK.ACKVal =0) returnfalse;

returntrue;

boolLogOut(LOGOUT)//Define the exit interface

LOGOUT_ACK=SendToPlatform(LOGOUT);

if(LOGOUT_ACK.ACKVal =0) returnfalse;

returntrue;

boolHeartBeat(HEART_BEAT)//Define the heartbeat packet interface

HEART_BEAT_ACK=SendToPlatform(REGIST_DATA);

if(CheckHeartBeatData(HEART_BEAT_ACK))//If check heartbeat packet error returnfalse;

returntrue;

}boolUpdateState(STAT_DATA)//Define terminal status update interface

STAT_DATA_ACK=SendToPlatform(REGIST_DATA);

if(STAT_DATA_ACK.ACKVal =0) returnfalse;

returntrue;

boolColectData(COLLECT_DATA)//Define terminal data reporting interface

COLLECT_DATA_ACK=SendToPlatform(REGIST_DATA);

if(COLLECT_DATA_ACK.ACKVal =0) returnfalse;

returntrue;

boolSetData(REMOTE_CTRL)//terminal control interface

REMOTE_CTRL_ACK=GetFromPlatform( if(REMOTE_CTRL_ACKK.ACKVal =0) returnfalse;

REMOTE_CTRL_ACK=SetCtrlInfo(REMOTE_CTRL);//Set control information if(REMOTE_CTRL_ACKK.ACKVal =0) returnfalse;

returntrue;

boolQueryData(QUERY)//terminal query interface

GetFromPlatform( if(CheckQueryCommand(STAT_DATA))//Check the query command and set the query result according to the query command returnfalse;

returntrue;

boolUpdateFirmware(UPDATE)//Terminal firmware update interface

GetFromPlatform( if(UpdateToNewVersion(UPDATE))//Check the updated version and update the firmware returnfalse;

returntrue;

//--------------------Pseudo code of terminal main function----------------------- --- intmain() if(Register(REGIST_DATA))//Registration is not successful

{Exit(1);//Exit abnormally if(Login(LOGIN))//Login failed

Exit(1);

if(HeartBeat(HEART_BEAT))//heartbeat failure

Exit(1);

if(UpdateState(STAT_DATA))//Update status failed

Exit(1);

if(ColectData(COLLECT_DATA))//Failed to report collected data

Exit(1);

if(SetData(REMOTE_CTRL))//Get the control information issued by the platform and set the control information, fail

Exit(1);

if(QueryData(QUERY))//Failed to obtain query information issued by the platform

Exit(1);

else if(UpdateState(STAT_DATA))//Report status information to the platform

Exit(1);

if(UpdateFirmware(UPDATE))//Update firmware failed

Exit(1);

if(Logout(LOGOUT))//safe exit failed

Exit(1);

return0;//Exit successfully

//--------------------Pseudo code of platform main function----------------------- --- voidmain() while(1) if(GetDataFromPlatform( exit(0);//If the data obtained by the monitoring terminal fails, exit if(i_GetData== REGIST_DATA)//If it is terminal registration

REGIST_DATA_ACK=Register(REGIST_DATA));

SendToClient(REGIST_DATA_ACK);

if(i_GetData==LOGIN)//If it is a terminal login

LOGIN_ACK=Login(LOGIN));

SendToClient(LOGIN_ACK);

if(i_GetData== HEART_BEAT)//If it is a heartbeat packet

HEART_BEAT_ACK=HeartBeat(HEART_BEAT));

SendToClient(HEART_BEAT_ACK);

if(i_GetData==STAT_DATA)//If the terminal status is updated

STAT_DATA_ACK=UpdateState(STAT_DATA)

SendToClient(STAT_DATA_ACK);

if(i_GetData==COLLECT_DATA)//If the terminal reports collected data

COLLECT_DATA_ACK=ColectData(COLLECT_DATA)

SendToClient(COLLECT_DATA_ACK);

if(SetData(REMOTE_CTRL_ACK))//If the remote setting fails

WriteLog(Errinfo);//Write error information to the log if(i_GetData== UPDATE)//If the terminal requests to update the firmware

UPDATE_ACK=UpdateFirmware(UPDATE)

SendToClient(UPDATE_ACK);

}if(i_GetData==LOGOUT)//If it is a terminal exit

LOGOUT_ACK=UpdateFirmware(LOGOUT)

SendToClient(LOGOUT_ACK);

return0;//Exit successfully […]

......
This preview omits tables, figures, formulas and parts of the technical clauses. The complete document — 17 pages — is available in the English PDF.

Referenced standards

Similar standards

How to Download GB/T 37733.2-2020

  1. 1

    Add to cart

    Click "Download PDF" on this page and choose "Buy this standard". You can add more standards before checkout.

  2. 2

    Checkout

    Enter your email and billing details. Payment is processed securely by Stripe (cards or bank transfer). Prefer bank details? Request a quotation (min. order $300).

  3. 3

    Instant delivery (0–9 sec)

    Delivery is automatic: within seconds of payment you'll receive an email with a secure download link. The link stays valid for 72 hours.

  4. 4

    Invoice included

    A tax invoice is attached to the confirmation email. Need a custom invoice? Contact us.

Related Standards

English PDF
17 pages
Instant delivery (0–9 sec)
Invoice included
View Cart

Secure payment via Stripe

Payments accepted

VisaMastercardAmerican ExpressApple PayGoogle PayStripe

GB/T 37733.2-2020

$300.00