Movatterモバイル変換


[0]ホーム

URL:


CN105745954B - A M2M terminal control method and related equipment - Google Patents

A M2M terminal control method and related equipment
Download PDF

Info

Publication number
CN105745954B
CN105745954BCN201480059094.8ACN201480059094ACN105745954BCN 105745954 BCN105745954 BCN 105745954BCN 201480059094 ACN201480059094 ACN 201480059094ACN 105745954 BCN105745954 BCN 105745954B
Authority
CN
China
Prior art keywords
terminal
group
social application
control
public social
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201480059094.8A
Other languages
Chinese (zh)
Other versions
CN105745954A (en
Inventor
于小博
龙水平
刘海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN201911077220.3ApriorityCriticalpatent/CN110808984A/en
Publication of CN105745954ApublicationCriticalpatent/CN105745954A/en
Application grantedgrantedCritical
Publication of CN105745954BpublicationCriticalpatent/CN105745954B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

According to the M2M terminal control method and the related equipment provided by the invention, the public social application platform is adopted to distribute the service information uniformly, the M2M terminal processes the service information to obtain the login information, the control instruction is directly forwarded through the public social application platform, the user does not need to perform complicated configuration on the M2M terminal side, and does not need to set a private customized communication protocol between the M2M terminal and the M2M service platform, the public social application platform is used for interconnecting and intercommunicating the M2M terminal, the popularization cost of an enterprise is reduced, and the operation process of the user in the use process is simple.

Description

Translated fromChinese
一种M2M终端控制方法及相关设备A M2M terminal control method and related equipment

技术领域technical field

本发明涉及M2M控制领域,特别涉及一种M2M终端控制方法及相关设备。The present invention relates to the field of M2M control, in particular to an M2M terminal control method and related equipment.

背景技术Background technique

如今,随着物联网技术的飞速发展,机器到机器(英文:Machine to Machine,简称:M2M)控制的应用领域也在逐渐拓宽。物联网(英文:Internet of Things,简称:IOT)是一个基于互联网、传统电信网等信息承载体,让所有能够被独立寻址的普通物理对象实现互联互通的网络,物联网的概念是普通物理对象与普通物理对象相联的网络,可以在没有人的因素介入的情况下实现普通物理对象之间的通信。无线传感网络则是物联网的一个典型技术模型。传感器可以通过与普通物理对象连接收集诸如温度、湿度、能量、烟雾、光照等等信息,并通过相应的通信方式将收集到的信息传递给用户。有效地 M2M方案可以使人们能够更加高效地收集信息并作出相应的控制。比如在智能家居的场景中,一个有效的M2M方案可以使用户在任何地方都可以方便地查看智能家居的状态,并能够作出相应地控制,同时,智能家居也可以发送信息给用户,实现智能家居与用户的交互式控制。Nowadays, with the rapid development of the Internet of Things technology, the application field of machine-to-machine (English: Machine to Machine, M2M for short) control is gradually expanding. The Internet of Things (English: Internet of Things, referred to as: IOT) is an information carrier based on the Internet, traditional telecommunication networks, etc., allowing all ordinary physical objects that can be independently addressed to realize interconnection. A network in which objects are connected to ordinary physical objects can realize communication between ordinary physical objects without the intervention of human factors. Wireless sensor network is a typical technical model of the Internet of Things. Sensors can collect information such as temperature, humidity, energy, smoke, light, etc. by connecting with ordinary physical objects, and transmit the collected information to users through corresponding communication methods. An effective M2M solution can enable people to collect information more efficiently and control it accordingly. For example, in the smart home scenario, an effective M2M solution can enable users to easily view the status of the smart home anywhere and make corresponding controls. At the same time, the smart home can also send information to the user to realize the smart home. Interactive controls with the user.

通常的做法之一,以海尔公司为例,海尔在自己的智能冰箱产品中部署了M2M方案。方案的整体框架是用户微信客户端与海尔M2M业务平台上的微信服务号对话,传递控制信息到海尔M2M业务平台。业务平台通过私有协议与海尔M2M终端进行通信并完成控制。具体的实现步骤是:1、用户下载“海尔微电器”的应用(简称:App,英文:Application)。2、用户打开App,用手机WiFi连接至已进入配置模式的海尔M2M终端。3、通过App来申请海尔M2M终端的账号和密码,3.用户终端关注海尔M2M业务平台上的微信服务号。4、利用微信服务号绑定海尔M2M终端。5、用户终端通过微信公众账号发送控制命令。6.海尔M2M业务平台解析控制命令。7、海尔M2M业务平台将控制命令下发给M2M终端。8、M2M终端收到控制命令,执行操作。One of the common practices, taking Haier as an example, Haier has deployed M2M solutions in its smart refrigerator products. The overall framework of the solution is that the user's WeChat client communicates with the WeChat service account on the Haier M2M business platform, and transmits control information to the Haier M2M business platform. The business platform communicates with Haier's M2M terminal through a private protocol and completes the control. The specific implementation steps are: 1. The user downloads the application (abbreviation: App, English: Application) of "Haier Micro Appliances". 2. The user opens the App, and connects to the Haier M2M terminal that has entered the configuration mode with the WiFi of the mobile phone. 3. Apply for the account number and password of the Haier M2M terminal through the App, 3. The user terminal follows the WeChat service account on the Haier M2M business platform. 4. Use the WeChat service account to bind the Haier M2M terminal. 5. The user terminal sends the control command through the WeChat public account. 6. The Haier M2M service platform parses the control commands. 7. The Haier M2M service platform sends the control command to the M2M terminal. 8. The M2M terminal receives the control command and executes the operation.

通常的做法之二,以LG公司为例,LG智能家居控制的M2M方案是用户通过Line客户端与LG M2M业务平台上的homechat(LG公司推出的一种智能家居服务)应用对话传递控制信息,Line服务号将控制信息交给LG业务平台,业务平台上的homechat应用利用自然语音处理解析控制命令,业务平台通过私有协议与智能家居终端进行通信并完成控制。具体的实现步骤是: 1、用户终端Line客户端关注homechat服务账号。2、用户在网络上注册一个M2M终端账号、昵称及密码。3、LG用户在各设备上输入步骤2中注册的账号和昵称,部分M2M终端具有显示屏(如洗衣机)可直接设置,其他设备可以通过用户终端和近场通信(英文:Near Field Communication,简称:NFC) 来中转设置。4、用户终端通过homechat服务账号绑定LG M2M业务平台的账号。5、用户终端通过LINE上的homechat服务账号发送控制命令。6.LG M2M业务平台收到并解析控制命令。7、LG业务平台将控制命令下发给M2M 终端,8.M2M终端收到控制命令,执行操作。The second usual practice, taking LG as an example, the M2M solution of LG smart home control is that the user communicates with the homechat (a smart home service launched by LG) application on the LG M2M business platform through the Line client to transmit control information. The Line service account sends the control information to the LG business platform. The homechat application on the business platform uses natural voice processing to analyze the control commands. The business platform communicates with the smart home terminal through a private protocol and completes the control. The specific implementation steps are: 1. The Line client of the user terminal pays attention to the homechat service account. 2. The user registers an M2M terminal account, nickname and password on the network. 3. LG users enter the account number and nickname registered in step 2 on each device. Some M2M terminals have display screens (such as washing machines) and can be set directly. Other devices can be set through user terminals and near field communication (English: Near Field Communication, referred to as : NFC) to relay the settings. 4. The user terminal binds the account of the LG M2M service platform through the homechat service account. 5. The user terminal sends a control command through the homechat service account on LINE. 6. The LG M2M service platform receives and parses the control command. 7. The LG service platform sends the control command to the M2M terminal. 8. The M2M terminal receives the control command and executes the operation.

可见这两种方案中,针对第一种方案的缺点有:1、方案只适用于海尔的 M2M终端,与其他品牌M2M终端的互联互通无法做到;2、M2M终端账号配置过程繁琐,会直接导致用户体验差;3、业务平台到M2M终端侧需要制定私有通信协议,部署复杂。It can be seen that among the two solutions, the disadvantages of the first solution are: 1. The solution is only applicable to Haier’s M2M terminals, and the interconnection with other brands of M2M terminals cannot be achieved; 2. The M2M terminal account configuration process is cumbersome and will directly Resulting in poor user experience; 3. It is necessary to formulate a private communication protocol from the service platform to the M2M terminal side, and the deployment is complicated.

针对第二种方案的缺点有:1、与其他品牌M2M终端在应用层面上的互联互通无法做到;2、M2M终端账号配置过程繁琐,会直接导致用户的体验差;3、业务平台到M2M终端侧需要制定私有通信协议,部署复杂。The disadvantages of the second solution are: 1. Interconnection with other brands of M2M terminals at the application level cannot be achieved; 2. The M2M terminal account configuration process is cumbersome, which will directly lead to poor user experience; 3. The business platform to M2M On the terminal side, a private communication protocol needs to be formulated, and the deployment is complicated.

发明内容Contents of the invention

有鉴于此,本发明提供了一种M2M终端控制方法及相关设备。In view of this, the present invention provides an M2M terminal control method and related equipment.

第一方面,本发明提供一种M2M控制方法,所述方法包括:In a first aspect, the present invention provides an M2M control method, the method comprising:

M2M终端接收M2M业务平台分配的登录信息,其中,所述登录信息由 M2M业务平台根据公共社交应用平台分配的服务信息得到;The M2M terminal receives the login information allocated by the M2M service platform, wherein the login information is obtained by the M2M service platform according to the service information allocated by the public social application platform;

所述M2M终端根据所述登录信息登录到所述公共社交应用平台,以使得所述公共社交应用平台根据所述登录信息建立主用户终端与M2M终端的控制关系;The M2M terminal logs in to the public social application platform according to the login information, so that the public social application platform establishes a control relationship between the main user terminal and the M2M terminal according to the login information;

所述M2M终端通过所述控制关系接收主用户终端的控制命令;The M2M terminal receives a control command from the primary user terminal through the control relationship;

所述M2M终端根据所述控制命令的内容执行相关操作。The M2M terminal performs related operations according to the content of the control command.

结合第一方面,在第一方面的第一种实施方式中,所述登录信息包括应用账号和密码,所述登录信息由M2M业务平台根据公共社交应用平台分配的服务信息得到具体包括:With reference to the first aspect, in the first implementation manner of the first aspect, the login information includes an application account and password, and the login information is obtained by the M2M service platform according to the service information assigned by the public social application platform, specifically including:

所述M2M业务平台获取公共社交应用平台分配的PKI证书、私有密钥、公共社交应用平台账号号段;The M2M service platform obtains the PKI certificate, private key, and account number of the public social application platform assigned by the public social application platform;

所述M2M业务平台利用私有密钥对所述公共社交应用平台账号号段的各个账号进行签名得到密码。The M2M service platform uses a private key to sign each account in the account number segment of the public social application platform to obtain a password.

结合第一方面的第一种实施方式,在第一方面的第二种实施方式中,所述M2M终端根据所述登录信息登录到所述公共社交应用平台具体包括:With reference to the first implementation manner of the first aspect, in the second implementation manner of the first aspect, the logging in of the M2M terminal to the public social application platform according to the login information specifically includes:

所述M2M终端将账号和密码发送至所述公共社交应用平台,以使得所述公共社交应用平台根据所述账号获取与该账号对应的PKI证书,利用PKI证书中的公共密钥对密码进行解密得到第一hash摘要,公共社交应用平台对账号进行hash处理得到第二hash摘要,若第一hash摘要与第二hash摘要相同,则登陆成功。The M2M terminal sends the account number and password to the public social application platform, so that the public social application platform obtains the PKI certificate corresponding to the account according to the account number, and uses the public key in the PKI certificate to decrypt the password The first hash digest is obtained, and the public social application platform performs hash processing on the account to obtain the second hash digest. If the first hash digest is the same as the second hash digest, the login is successful.

结合第一方面的第一种实施方式,在第一方面的第三种实施方式中,所述方法还包括:With reference to the first implementation manner of the first aspect, in a third implementation manner of the first aspect, the method further includes:

所述M2M终端接收M2M业务平台根据密码通过Hash算法计算得到的第一凭证码,以使得M2M终端公共社交应用账号和第一凭证码组成第二凭证码;The M2M terminal receives the first voucher code calculated by the M2M service platform through the Hash algorithm according to the password, so that the M2M terminal public social application account and the first voucher code form a second voucher code;

所述M2M终端与所述第二凭证码成对应关系。The M2M terminal is in a corresponding relationship with the second voucher code.

结合第一方面,在第一方面的第四种实施方式中,所述方法还包括:With reference to the first aspect, in a fourth implementation manner of the first aspect, the method further includes:

所述M2M终端接收所述主用户终端的昵称和头像设置。The M2M terminal receives the nickname and avatar setting of the main user terminal.

结合第一方面,在第一方面的第五种实施方式中,所述方法还包括:With reference to the first aspect, in a fifth implementation manner of the first aspect, the method further includes:

从用户终端通过主用户终端授权与M2M终端建立所述控制关系或从用户终端直接与M2M终端建立所述控制关系。The slave user terminal establishes the control relationship with the M2M terminal through the authorization of the master user terminal or directly establishes the control relationship with the M2M terminal.

结合第一方面至第一方面的第五种实施方式,在第一方面的第六种实施方式中,所述M2M终端获取主用户终端和M2M终端的控制关系之后还包括:With reference to the first aspect to the fifth implementation manner of the first aspect, in the sixth implementation manner of the first aspect, after the M2M terminal obtains the control relationship between the main user terminal and the M2M terminal, it further includes:

所述M2M终端接收主用户终端的加入控制群组的请求,其中所述控制群组包括至少一个M2M终端;The M2M terminal receives a request from a master user terminal to join a control group, where the control group includes at least one M2M terminal;

所述M2M终端根据所述请求加入控制群组;The M2M terminal joins the control group according to the request;

所述M2M终端接收主用户终端配置的群组配置命令;The M2M terminal receives a group configuration command configured by the main user terminal;

所述M2M终端对配置的群组配置命令进行语义识别解析并保存;The M2M terminal performs semantic recognition and analysis on the configured group configuration command and saves it;

所述M2M终端接收主用户终端发送的语义群组控制命令;The M2M terminal receives the semantic group control command sent by the main user terminal;

所述M2M终端根据自身保存的语义群组配置命令识别接收到的语义群组控制命令,以使得所述M2M终端根据语义群组控制命令执行相关操作。The M2M terminal identifies the received semantic group control command according to the semantic group configuration command saved by itself, so that the M2M terminal performs related operations according to the semantic group control command.

结合第一方面的第六种实施方式,在第一方面的第七种实施方式中,所述M2M终端根据所述请求加入控制群组之后还包括:With reference to the sixth implementation manner of the first aspect, in the seventh implementation manner of the first aspect, after the M2M terminal joins the control group according to the request, it further includes:

所述M2M终端接收主用户终端配置的协作群组配置命令;The M2M terminal receives a coordination group configuration command configured by the main user terminal;

所述M2M终端对所述协作群组配置命令进行解析并保存;The M2M terminal parses and saves the coordination group configuration command;

所述M2M终端接收主用户终端发送的协作群组控制命令,以使得所述 M2M终端在所述协作群组控制命令符合所述协作群组配置命令时执行相关操作。The M2M terminal receives the coordination group control command sent by the main user terminal, so that the M2M terminal performs related operations when the coordination group control command conforms to the coordination group configuration command.

结合第一方面的第六种实施方式,在第一方面的第八种实施方式中,所述M2M终端根据所述请求加入控制群组之后还包括:With reference to the sixth implementation manner of the first aspect, in the eighth implementation manner of the first aspect, after the M2M terminal joins the control group according to the request, it further includes:

所述M2M终端接收主用户终端发送的组播群组控制命令;The M2M terminal receives a multicast group control command sent by the main user terminal;

所述M2M终端查询所述组播群组控制命令是否包括自身的名称,以使得在组播群组控制命令包括自身的名称时在执行相关操作。The M2M terminal inquires whether the multicast group control command includes its own name, so as to perform related operations when the multicast group control command includes its own name.

结合第一方面的第三种实施方式,在第一方面的第九种实施方式中,所述M2M终端包括显示屏,所述M2M终端接收M2M业务平台根据密码通过 Hash算法计算得到的凭证码之后还包括:With reference to the third implementation manner of the first aspect, in the ninth implementation manner of the first aspect, the M2M terminal includes a display screen, and after the M2M terminal receives the voucher code calculated by the M2M service platform through the Hash algorithm according to the password, Also includes:

所述M2M终端在显示屏显示所述凭证码,以使得所述主用户终端通过扫描所述凭证码发送到所述公共社交应用平台。The M2M terminal displays the voucher code on the display screen, so that the main user terminal sends the voucher code to the public social application platform by scanning the voucher code.

结合第一方面的第一种实施方式至第一方面的第九种实现方式中任一种实施方式,在第一方面的第十种实施方式中,所述账号包括生产厂家、产品型号及产品编号中的至少一个。In combination with any one of the first implementation of the first aspect to the ninth implementation of the first aspect, in the tenth implementation of the first aspect, the account includes the manufacturer, product model and product at least one of the numbers.

结合第一方面的第六种实施方式,在第一方面的第十一种实施方式中,所述语义群组配置命令包括:命令符、目标M2M终端名称、操作内容中的至少一个。With reference to the sixth implementation manner of the first aspect, in the eleventh implementation manner of the first aspect, the semantic group configuration command includes: at least one of a command symbol, a target M2M terminal name, and an operation content.

结合第一方面的第七种实施方式,在第一方面的第十二种实施方式中,所述协作群组控制命令包括:命令符、目标M2M终端名称、逻辑词及操作内容中的至少一个。With reference to the seventh implementation manner of the first aspect, in the twelfth implementation manner of the first aspect, the cooperation group control command includes: at least one of a command symbol, a target M2M terminal name, a logical word, and an operation content .

第二方面,本发明提供一种M2M终端,所述终端包括:In a second aspect, the present invention provides an M2M terminal, where the terminal includes:

第一接收单元,用于接收M2M业务平台分配的登录信息,其中,所述登录信息由M2M业务平台根据公共社交应用平台分配的服务信息得到;The first receiving unit is configured to receive the login information allocated by the M2M service platform, wherein the login information is obtained by the M2M service platform according to the service information allocated by the public social application platform;

登录单元,用于根据所述登录信息登录到所述公共社交应用平台,以使得所述公共社交应用平台根据所述登录信息建立主用户终端与M2M终端的控制关系;A login unit, configured to log in to the public social application platform according to the login information, so that the public social application platform establishes a control relationship between the main user terminal and the M2M terminal according to the login information;

第一获取单元,用于根据所述控制关系获取主用户终端的控制命令;a first acquiring unit, configured to acquire a control command of the primary user terminal according to the control relationship;

执行单元,用于根据所述控制命令的内容执行相关操作。An executing unit, configured to execute related operations according to the content of the control command.

结合第二方面,在第二方面的第一种实施方式中,所述登录信息包括账号和密码,所述终端还包括:With reference to the second aspect, in the first implementation manner of the second aspect, the login information includes an account number and a password, and the terminal further includes:

登录单元,用于将账号和密码发送至所述公共社交应用平台,以使得所述公共社交应用平台根据所述账号获取与该账号对应的PKI证书,利用PKI 证书中的公共密钥对密码进行解密得到第一hash摘要,公共社交应用平台对账号进行hash处理得到第二hash摘要,若第一hash摘要与第二hash摘要相同,则登陆成功。The login unit is used to send the account number and password to the public social application platform, so that the public social application platform obtains the PKI certificate corresponding to the account according to the account number, and uses the public key in the PKI certificate to perform password verification. The first hash digest is obtained by decryption, and the public social application platform performs hash processing on the account to obtain the second hash digest. If the first hash digest is the same as the second hash digest, the login is successful.

结合第二方面,在第二方面的第二种实现方式中,所述终端还包括:With reference to the second aspect, in a second implementation manner of the second aspect, the terminal further includes:

第二接收单元,用于接收M2M业务平台根据密码通过Hash算法计算得到的第一凭证码,以使得M2M终端公共社交应用账号和第一凭证码组成第二凭证码,所述M2M终端与所述第二凭证码成对应关系。The second receiving unit is configured to receive the first credential code calculated by the M2M service platform according to the password through the Hash algorithm, so that the M2M terminal public social application account and the first credential code form a second credential code, and the M2M terminal and the The second voucher code is in a corresponding relationship.

结合第二方面,在第二方面的第三种实施方式中,所述终端还包括:With reference to the second aspect, in a third implementation manner of the second aspect, the terminal further includes:

配置单元,用于配置接收到的所述用户终端的昵称和头像。A configuring unit, configured to configure the received nickname and avatar of the user terminal.

结合第二方面,在第二方面的第四种实施方式中,所述终端还包括:With reference to the second aspect, in a fourth implementation manner of the second aspect, the terminal further includes:

第三获取单元,用于从用户终端通过主用户终端授权与M2M终端建立所述控制关系。The third acquiring unit is configured to establish the control relationship with the M2M terminal through authorization of the master user terminal from the user terminal.

结合第二方面,在第二方面的第五种实施方式中,所述终端还包括:With reference to the second aspect, in a fifth implementation manner of the second aspect, the terminal further includes:

第一群组接收单元,用于接收主用户终端的加入控制群组的请求,其中所述控制群组包括至少一个M2M终端;A first group receiving unit, configured to receive a request from a master user terminal to join a control group, where the control group includes at least one M2M terminal;

群组加入单元,用于根据所述请求加入控制群组;a group joining unit, configured to join the control group according to the request;

第二群组接收单元,用于接收主用户终端配置的语义群组配置命令;The second group receiving unit is configured to receive a semantic group configuration command configured by the main user terminal;

群组命令解析单元,用于对配置的语义群组配置命令进行语义识别解析并保存;The group command parsing unit is used for performing semantic recognition, parsing and saving of the configured semantic group configuration commands;

第三群组接收单元,用于接收主用户终端发送的语义群组控制命令;The third group receiving unit is configured to receive the semantic group control command sent by the main user terminal;

群组命令识别单元,用于根据自身保存的语义群组配置命令识别接收到语义群组控制命令,以使得所述M2M终端根据语义群组控制命令执行相关操作。The group command identification unit is configured to identify the received semantic group control command according to the semantic group configuration command stored by itself, so that the M2M terminal performs related operations according to the semantic group control command.

结合第二方面,在第二方面的第六种实施方式中,所述终端还包括:With reference to the second aspect, in a sixth implementation manner of the second aspect, the terminal further includes:

协作群组配置单元,用于接收主用户终端配置的协作群组配置命令;A cooperative group configuration unit, configured to receive a cooperative group configuration command configured by the main user terminal;

协作群组解析单元,用于对所述协作群组配置命令进行解析并保存;a cooperation group parsing unit, configured to analyze and save the configuration command of the cooperation group;

协作群组接收单元,用于接收主用户终端发送的协作群组控制命令,以使得所述M2M终端在所述协作群组控制命令符合所述协作群组配置命令时执行相关操作。The cooperation group receiving unit is configured to receive a cooperation group control command sent by the main user terminal, so that the M2M terminal performs a related operation when the cooperation group control command conforms to the cooperation group configuration command.

结合第二方面,在第二方面的第七种实施方式中,所述终端还包括:With reference to the second aspect, in a seventh implementation manner of the second aspect, the terminal further includes:

组播控制接收单元,用于接收主用户终端发送的组播群组控制命令;The multicast control receiving unit is used to receive the multicast group control command sent by the main user terminal;

组播查询单元,用于查询所述组播群组控制命令是否包括自身的名称,以使得在组播群组控制命令包括自身的名称时在执行相关操作。The multicast query unit is configured to query whether the multicast group control command includes its own name, so that when the multicast group control command includes its own name, related operations are performed.

结合第二方面的第二种实施方式,在第二方面的第八种实施方式中,所述终端包括显示屏,With reference to the second implementation manner of the second aspect, in an eighth implementation manner of the second aspect, the terminal includes a display screen,

所述显示屏,用于显示所述凭证码,以使得所述主用户终端通过扫描所述凭证码发送到所述公共社交应用平台。The display screen is used to display the voucher code, so that the main user terminal sends the voucher code to the public social application platform by scanning the voucher code.

结合第二方面的第一种实施方式,在第二方面的第九种实施方式中,所述账号包括生产厂家、产品型号及产品编号。With reference to the first implementation manner of the second aspect, in a ninth implementation manner of the second aspect, the account number includes a manufacturer, a product model, and a product serial number.

结合第二方面的第五种实施方式,在第二方面的第十种实施方式中,所述语义群组配置命令包括:命令符、目标M2M终端名称、操作内容。With reference to the fifth implementation manner of the second aspect, in the tenth implementation manner of the second aspect, the semantic group configuration command includes: command symbol, target M2M terminal name, and operation content.

结合第二方面的第六种实施方式,在第二方面的第十一种实施方式中, 25、根据权利要求20所述的M2M终端,其特征在于,所述协作群组控制命令包括:命令符、目标M2M终端名称、逻辑词及操作内容。With reference to the sixth implementation manner of the second aspect, in the eleventh implementation manner of the second aspect, 25. The M2M terminal according to claim 20, wherein the coordination group control command includes: command character, target M2M terminal name, logic word and operation content.

第三方面,本发明提供了一种M2M模块,所述M2M模块包括调制解调器及一体化软件平台,In a third aspect, the present invention provides an M2M module, the M2M module includes a modem and an integrated software platform,

所述调制解调器,用于所述M2M模块进行远程通信;The modem is used for the M2M module to perform remote communication;

所述一体化软件平台,用于安装公共社交应用平台的应用客户端以及提供应用程序编程接口,所述应用程序编程接口由一体化软件平台对远程互联网开放能力进行二次封装实现。The integrated software platform is used to install the application client of the public social application platform and provide an application programming interface, and the application programming interface is implemented by secondary packaging of the remote Internet open capability by the integrated software platform.

结合第三方面,在第三方面的第一种实施方式中,所述应用程序编程接口包括账号设置应用程序编程接口、语音图像应用程序编程接口及M2M终端到M2M业务平台接口及M2M终端到用户终端接口的至少一种。With reference to the third aspect, in the first implementation manner of the third aspect, the application programming interface includes an account setting application programming interface, a voice and image application programming interface, an M2M terminal-to-M2M service platform interface, and an M2M terminal-to-user interface. At least one type of terminal interface.

第四方面,本发明提供一种M2M控制系统,所述系统包括:In a fourth aspect, the present invention provides an M2M control system, and the system includes:

公共社交应用平台,用于向M2M业务平台分配服务信息;The public social application platform is used to distribute service information to the M2M business platform;

M2M业务平台,用于对接收所述公共社交应用平台分配的服务信息进行处理得到登录信息,并将所述登录信息分配至M2M终端;The M2M service platform is configured to process the service information distributed by the public social application platform to obtain login information, and distribute the login information to the M2M terminal;

如第二方面至第二方面的第十一种实施方式中任一种实施方式所述的 M2M终端;The M2M terminal described in any one of the eleventh implementation manners from the second aspect to the second aspect;

用户终端,用于根据所述控制关系向所述M2M终端发送控制命令。The user terminal is configured to send a control command to the M2M terminal according to the control relationship.

结合第四方面,在第四方面的第一种实施方式中,所述登录信息包括账号和密码,所述M2M业务平台还用于获取公共社交应用平台分配的PKI证书、私有密钥以及M2M终端公共社交应用平台的账号号段并利用私有密钥对所述M2M终端公共社交应用账号号段的各个账号进行签名得到密码;With reference to the fourth aspect, in the first implementation manner of the fourth aspect, the login information includes account number and password, and the M2M service platform is also used to obtain the PKI certificate, private key and M2M terminal assigned by the public social application platform The account number section of the public social application platform and use the private key to sign each account in the public social application account number section of the M2M terminal to obtain a password;

所述公共社交应用平台还用于根据所述M2M终端公共社交应用账号获取与该账号对应的PKI证书,利用PKI证书中的公共密钥对密码进行解密得到第一hash摘要,公共社交应用平台对账号进行hash处理得到第二hash摘要,若第一hash摘要与第二hash摘要相同,则登陆成功;The public social application platform is also used to obtain the PKI certificate corresponding to the account according to the public social application account of the M2M terminal, and use the public key in the PKI certificate to decrypt the password to obtain the first hash abstract. Perform hash processing on the account to get the second hash summary. If the first hash summary is the same as the second hash summary, the login is successful;

所述M2M终端接收M2M业务平台根据密码通过Hash算法计算得到的第一凭证码,以使得M2M终端公共社交应用账号和第一凭证码组成第二凭证码,所述M2M终端与所述第二凭证码成对应关系;The M2M terminal receives the first credential code calculated by the M2M service platform through the Hash algorithm according to the password, so that the M2M terminal public social application account and the first credential code form a second credential code, and the M2M terminal and the second credential Code into a corresponding relationship;

所述用户终端获取第二凭证码,用户终端将第二凭证码发送给公共社交应用平台。The user terminal obtains the second voucher code, and the user terminal sends the second voucher code to the public social application platform.

本发明提供的一种M2M终端控制方法及相关设备,采用公共社交应用平台统一分配服务信息,M2M终端再对服务信息进行处理获得登录信息,控制指令直接通过公共社交应用平台转发,用户不需要在M2M终端侧进行繁琐的配置,也不需要在M2M终端和M2M业务平台之间设置私有定制通信协议,使用公共社交应用平台进行M2M终端的互联互通,降低企业的推广成本,用户在使用过程中操作过程简单。An M2M terminal control method and related equipment provided by the present invention use a public social application platform to uniformly distribute service information, the M2M terminal then processes the service information to obtain login information, and the control instructions are directly forwarded through the public social application platform, and users do not need to The cumbersome configuration on the M2M terminal side does not need to set up a private customized communication protocol between the M2M terminal and the M2M service platform. The public social application platform is used for the interconnection of M2M terminals, which reduces the promotion cost of the enterprise and allows users to operate during use. The process is simple.

附图说明Description of drawings

图1是本发明M2M终端控制方法的一种实施例的流程图;FIG. 1 is a flowchart of an embodiment of an M2M terminal control method of the present invention;

图2是本发明M2M终端控制方法的另一种实施例的流程图;FIG. 2 is a flow chart of another embodiment of the M2M terminal control method of the present invention;

图3是本发明M2M终端的一种实施例的结构图;FIG. 3 is a structural diagram of an embodiment of an M2M terminal according to the present invention;

图4是本发明M2M终端另一种实施例的结构图;FIG. 4 is a structural diagram of another embodiment of an M2M terminal according to the present invention;

图4a是本发明M2M终端的语义群组控制的一种实施例的结构图;FIG. 4a is a structural diagram of an embodiment of the semantic group control of the M2M terminal in the present invention;

图4b是本发明M2M终端的协作群组控制的一种实施例的结构图;FIG. 4b is a structural diagram of an embodiment of cooperative group control of M2M terminals in the present invention;

图4c是本发明M2M终端组播群组控制的一种实施例的结构图;FIG. 4c is a structural diagram of an embodiment of M2M terminal multicast group control in the present invention;

图5是本发明M2M模块的一种实施例的结构图;FIG. 5 is a structural diagram of an embodiment of the M2M module of the present invention;

图6是本发明M2M控制系统的一种实施例的示意图。Fig. 6 is a schematic diagram of an embodiment of the M2M control system of the present invention.

具体实施方式Detailed ways

本发明提供了一种M2M控制方法及装置,使用公共社交应用平台进行 M2M终端的互联互通,降低企业的推广成本,用户在使用过程中操作过程简单。The present invention provides an M2M control method and device, which uses a public social application platform for interconnection and intercommunication of M2M terminals, reduces the promotion cost of enterprises, and makes the operation process simple for users during use.

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects and not necessarily Describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

请参考图1,本发明提供的一种M2M控制方法一种实施例,所述方法包括:Please refer to FIG. 1, an embodiment of an M2M control method provided by the present invention, the method includes:

101、M2M终端接收M2M业务平台分配的登录信息,其中,所述登录信息由M2M业务平台根据公共社交应用平台分配的服务信息进行处理得到;101. The M2M terminal receives the login information allocated by the M2M service platform, wherein the login information is obtained by processing the M2M service platform according to the service information allocated by the public social application platform;

M2M终端包括但不限于智能家电、智能传感器、智能本地网关、智能车载终端或可穿戴设备,M2M业务平台设置有公共社交软件的应用客户端, M2M可以是服务器,可以是家电厂商服务平台,也可以是汽车厂商服务平台。公共社交应用平台可以包括但不限于微信、连我、KakaoTalk或者WhatsApp,在M2M业务平台上也同样安装公共社交应用平台的应用客户端,在此不作限定,在M2M终端上安装公共社交应用平台的应用客户端,采用公共社交应用平台作为M2M终端控制平台,可以减轻M2M终端厂商的推广成本,同时也减轻用户的使用成本,便于可快速部署。M2M terminals include but are not limited to smart home appliances, smart sensors, smart local gateways, smart vehicle terminals or wearable devices. The M2M business platform is equipped with application clients of public social software. M2M can be a server, a home appliance manufacturer’s service platform, or It can be a car manufacturer service platform. The public social application platform may include but not limited to WeChat, Lianwo, KakaoTalk or WhatsApp, and the application client of the public social application platform is also installed on the M2M business platform. The application client adopts the public social application platform as the M2M terminal control platform, which can reduce the promotion cost of the M2M terminal manufacturer, and also reduce the user's use cost, and facilitate rapid deployment.

登录信息可以包括帐号密码,用于为M2M终端提供登录使用的信息,公共社交应用平台可以为公众日常社交使用的软件的运营平台,公共社交应用平台可以为M2M业务平台提供服务信息,服务信息可以包括PKI证书、私钥以及M2M终端公共社交应用账号号段,M2M终端公共社交应用账号号段包括一组或者几组账号,M2M业务平台对服务信息进行处理获得登录信息,例如利用私钥对M2M终端公共社交应用账号号段的每一个账号进行签名,将签名的结果作为账号的密码,使用hash算法对账号的密码进行处理得到第一凭证码,公共社交应用平台统一提供M2M终端公共社交应用账号,不需要用户自己在M2M终端本地注册账号,操作流程简单,利用安装在M2M终端上的公共社交应用平台的应用客户端可以实现不同厂商M2M终端间互联互通。The login information can include account passwords, which are used to provide login information for M2M terminals. The public social application platform can be an operating platform for software used by the public for daily social interaction. The public social application platform can provide service information for the M2M business platform. The service information can be Including PKI certificate, private key and M2M terminal public social application account number segment, M2M terminal public social application account number segment includes one or several groups of accounts, M2M service platform processes service information to obtain login information, for example, uses private key to M2M Each account in the account number segment of the terminal public social application is signed, and the signed result is used as the password of the account, and the hash algorithm is used to process the password of the account to obtain the first certificate code, and the public social application platform uniformly provides the M2M terminal public social application account , the user does not need to register an account in the M2M terminal locally, the operation process is simple, and the application client of the public social application platform installed on the M2M terminal can realize the interconnection and intercommunication between M2M terminals of different manufacturers.

当然,需要说明的是,本实施例中也可以采用公钥对M2M终端公共社交应用账号号段的各个账号进行加密,再利用私钥进行解密,不同点在于,利用公钥对M2M终端公共社交应用对账号号段进行加密,用私钥进行解密得到是原文。Of course, it should be noted that in this embodiment, the public key can also be used to encrypt each account in the M2M terminal public social application account number segment, and then use the private key to decrypt. The difference is that the public key is used to encrypt the M2M terminal public social The application encrypts the account number segment, and decrypts it with the private key to get the original text.

需要说明的是,配置到M2M终端的第二凭证码由M2M终端账号和通过 hash算法处理得到的第一凭证码两部分组成,M2M终端与所述第二凭证码成对应关系,M2M业务平台将登录信息配置到M2M终端的方式可以有多种,例如将第二凭证码附着在M2M终端,也可以印刷在M2M终端的产品说明书上并在表面附有可刮除的保护层,具体不做限定。It should be noted that the second voucher code configured to the M2M terminal consists of two parts: the M2M terminal account number and the first voucher code obtained through hash algorithm processing, and the M2M terminal is in a corresponding relationship with the second voucher code, and the M2M service platform will There are many ways to configure the login information to the M2M terminal, such as attaching the second voucher code to the M2M terminal, or printing it on the product manual of the M2M terminal and attaching a scratch-off protective layer on the surface, which is not limited. .

102、所述M2M终端根据所述登录信息登录到所述公共社交应用平台,以使得所述公共社交应用平台根据所述登录信息建立主用户终端与M2M终端的控制关系。102. The M2M terminal logs in to the public social application platform according to the login information, so that the public social application platform establishes a control relationship between the main user terminal and the M2M terminal according to the login information.

M2M终端通过登录信息登录到公共社交应用平台,公共社交应用平台根据M2M终端公共社交应用账号查找对应该M2M终端公共社交应用账号的 PKI证书,利用PKI证书中的公钥对账号的密码进行解密,得到账号的hash 摘要,公共社交应用平台对账号进行hash处理,得到另一个hash摘要,若两个hash摘要相同,则登陆成功,登陆成功并保存该密码以及通过该密码经过 hash算法处理得到第一凭证码。The M2M terminal logs in to the public social application platform through the login information, and the public social application platform searches for the PKI certificate corresponding to the public social application account of the M2M terminal according to the public social application account of the M2M terminal, and uses the public key in the PKI certificate to decrypt the password of the account, Get the hash summary of the account, and the public social application platform performs hash processing on the account to get another hash summary. If the two hash summaries are the same, the login is successful. The login is successful and the password is saved, and the password is processed through the hash algorithm to obtain the first password. voucher code.

103、所述M2M终端根据所述控制关系获取主用户终端的控制命令;103. The M2M terminal acquires a control command of the primary user terminal according to the control relationship;

主用户终端与M2M终端建立了控制关系,主用户终端可以进行昵称和头像的设置,昵称可以设置为M2M终端的名称,头像可以设置为M2M终端的图标,在此不作限定,M2M终端接收主用户终端的控制指令,控制指令的形式包括但不限于语音、文本,在此不作限定。The master user terminal has established a control relationship with the M2M terminal. The master user terminal can set the nickname and avatar. The nickname can be set as the name of the M2M terminal, and the avatar can be set as the icon of the M2M terminal. There is no limitation here. The M2M terminal receives the master user The control instruction of the terminal, the form of the control instruction includes but not limited to voice and text, which is not limited here.

104、所述M2M终端根据所述控制命令的内容执行相关操作。104. The M2M terminal performs related operations according to the content of the control command.

控制命令包括但不限于语音或者文本,M2M终端接收到控制指令可以通过语义识别技术进行解析,可以将控制命令中语句解析为对M2M终端进行控制操作的命令,可以通过语义识别技术解析配置命令并存储,例如在“下班”配置命令中找到对应于自身的操作(窗帘关闭),并向用户终端反馈配置成功消息,例如,配置“下班了”,可以通过解析获得空调关闭的操作,控制命令中可以设置欲控制的M2M终端的名称及要执行的操作,例如空调关闭,对于命令格式在此不作限定,当M2M终端解析出控制指令的内容,则执行对应控制指令的操作,这里的操作可以为针对单个M2M终端的控制,也可以建立多个M2M终端的群组,对群组内的M2M终端进行群组控制,对此不做限定。Control commands include but are not limited to voice or text. The M2M terminal can analyze the control command received by the semantic recognition technology, and can parse the sentence in the control command into a command to control the M2M terminal, and can use the semantic recognition technology to analyze the configuration command and Store, for example, find the operation corresponding to itself (curtain closing) in the "off work" configuration command, and feed back the configuration success message to the user terminal, for example, configure "off work", the operation of closing the air conditioner can be obtained through analysis, and the You can set the name of the M2M terminal to be controlled and the operation to be performed, such as turning off the air conditioner. The command format is not limited here. When the M2M terminal parses out the content of the control command, it will execute the operation corresponding to the control command. The operation here can be For the control of a single M2M terminal, a group of multiple M2M terminals may also be established to perform group control on the M2M terminals in the group, which is not limited.

需要说明的是,M2M终端接收到的控制命令可以是对应M2M终端的应用客户端账号以及控制指令。公共社交应用平台接受用户终端发送的控制命令,根据M2M终端的昵称寻找对应的M2M终端账号,为确保昵称和M2M 终端账号的一一对应,可以但不限于规定每个M2M终端的昵称唯一。M2M 终端昵称信息和客户端账号的对应关系可以存储到用户终端上,昵称通过主用户终端检查无重复后才可以设置成功。用户终端发送控制命令时,用户终端将昵称转化为对应M2M终端的客户端账号,并由公共社交应用平台将控制指令发送给对应客户端账号的M2M终端。It should be noted that the control command received by the M2M terminal may be an application client account and a control command corresponding to the M2M terminal. The public social application platform accepts the control command sent by the user terminal, and searches for the corresponding M2M terminal account according to the nickname of the M2M terminal. In order to ensure the one-to-one correspondence between the nickname and the M2M terminal account, it can, but is not limited to, stipulate that each M2M terminal has a unique nickname. The corresponding relationship between the M2M terminal nickname information and the client account can be stored on the user terminal, and the nickname can only be successfully set after the main user terminal checks that there is no duplication. When the user terminal sends the control command, the user terminal converts the nickname into the client account corresponding to the M2M terminal, and the public social application platform sends the control command to the M2M terminal corresponding to the client account.

本实施例中提供的一种M2M终端控制方法,采用公共社交应用平台统一分配服务信息,M2M终端再对服务信息进行处理获得登录信息,控制指令直接通过公共社交应用平台转发,用户不需要在M2M终端侧进行繁琐的配置,也不需要在M2M终端和M2M业务平台之间设置私有定制通信协议,使用公共社交应用平台进行M2M终端的互联互通,降低企业的推广成本,用户在使用过程中操作过程简单。In the M2M terminal control method provided in this embodiment, the public social application platform is used to uniformly distribute service information, and the M2M terminal processes the service information to obtain login information, and the control instructions are directly forwarded through the public social application platform. The tedious configuration on the terminal side does not need to set up a private customized communication protocol between the M2M terminal and the M2M service platform. The public social application platform is used for the interconnection of the M2M terminal, which reduces the promotion cost of the enterprise. Simple.

请参考图2,下面针对如何进行M2M终端控制的过程还提供了另一种实施例,具体如下:Please refer to FIG. 2, another embodiment is provided below for how to control the M2M terminal, as follows:

201、M2M终端接收M2M业务平台分配的登录信息,其中,所述M2M 业务平台获取公共社交应用平台分配的PKI证书、私有密钥以及公共社交应用平台的M2M终端公共社交应用账号号段,所述M2M业务平台利用私有密钥对所述账号号段的各个账号进行签名得到密码,当然,需要说明的是,本实施例中也可以采用公钥对账号号段的各个账号进行加密,再利用私钥进行解密,这是公钥和私钥加密的性质,本领域技术人员应当了解,具体不做限定。201. The M2M terminal receives the login information assigned by the M2M service platform, wherein the M2M service platform obtains the PKI certificate, the private key assigned by the public social application platform, and the M2M terminal public social application account number segment of the public social application platform, and the The M2M service platform uses the private key to sign each account in the account number segment to obtain a password. Of course, it should be noted that in this embodiment, the public key can also be used to encrypt each account in the account number segment, and then use the private key to Key to decrypt, this is the nature of public key and private key encryption, those skilled in the art should understand, not specifically limited.

步骤201中,M2M业务平台不需要采用私有协议将登录信息传送至M2M 终端,实现不同厂商M2M终端间互联互通。In step 201, the M2M service platform does not need to use a private protocol to transmit the login information to the M2M terminal, so as to realize interconnection and intercommunication between M2M terminals of different manufacturers.

202、所述M2M终端将账号和密码发送至所述公共社交应用平台,以使得所述公共社交应用平台根据所述账号获取与该账号对应的PKI证书,利用 PKI证书中的公共密钥对密码进行解密得到第一hash摘要,公共社交应用平台对账号进行hash处理得到第二hash摘要,若第一hash摘要与第二hash摘要相同,则登陆成功。202. The M2M terminal sends the account and password to the public social application platform, so that the public social application platform obtains the PKI certificate corresponding to the account according to the account, and uses the public key in the PKI certificate to pair the password Decryption is performed to obtain the first hash digest, and the public social application platform performs hash processing on the account to obtain the second hash digest. If the first hash digest is the same as the second hash digest, the login is successful.

203、所述M2M终端接收M2M业务平台根据账号密码通过Hash算法计算得到的第一凭证码,M2M终端公共社交应用账号和第一凭证码组成第二凭证码,所述M2M终端与所述第二凭证码成对应关系。所述M2M终端在显示屏显示所述第二凭证码。203. The M2M terminal receives the first voucher code calculated by the M2M service platform according to the account password through the Hash algorithm, the M2M terminal public social application account and the first voucher code form a second voucher code, and the M2M terminal and the second voucher code Voucher codes form a corresponding relationship. The M2M terminal displays the second voucher code on a display screen.

对于如何计算得出第一凭证码在上文中已经介绍,在此不作赘述,需要说明的是,M2M终端对应一个账号,账号对应一个第二凭证码,所以M2M 终端与第二凭证码也成对应关系,通过凭证码可以查询到该第二凭证码对应的M2M终端,M2M终端设有显示屏的,可以通过显示屏在M2M终端开机时显示该第二凭证码,用户终端可以通过扫描显示屏上现实的第二凭证码,再将第二凭证码发送到公共社交应用平台,在此不作限定。How to calculate the first voucher code has been introduced above, so I won’t go into details here. What needs to be explained is that the M2M terminal corresponds to an account, and the account corresponds to a second voucher code, so the M2M terminal also corresponds to the second voucher code. The M2M terminal corresponding to the second voucher code can be queried through the voucher code. If the M2M terminal is equipped with a display screen, the second voucher code can be displayed through the display screen when the M2M terminal is turned on. The user terminal can scan the display screen. The actual second voucher code, and then send the second voucher code to the public social application platform, which is not limited here.

204、所述M2M终端根据所述登录信息登录到所述公共社交应用平台,以使得所述公共社交应用平台根据所述登录信息建立主用户终端与M2M终端的控制关系。204. The M2M terminal logs in to the public social application platform according to the login information, so that the public social application platform establishes a control relationship between the main user terminal and the M2M terminal according to the login information.

M2M终端获取主用户终端和M2M终端的控制关系,当主用户终端向公共社交应用平台发送第二凭证码后,公共社交应用平台查找该第二凭证码对应的M2M终端账号,建立主用户终端和M2M终端的相互社交关系以及控制关系,公共社交应用平台将该控制关系发送至M2M终端,公共社交应用平台自动设置M2M终端账号关注M2M业务平台,并将关注关系发送到M2M终端以及M2M业务平台。The M2M terminal obtains the control relationship between the main user terminal and the M2M terminal. When the main user terminal sends the second voucher code to the public social application platform, the public social application platform searches for the M2M terminal account corresponding to the second voucher code, and establishes the main user terminal and the M2M terminal. The mutual social relationship and control relationship of the terminals, the public social application platform sends the control relationship to the M2M terminal, the public social application platform automatically sets the M2M terminal account to follow the M2M service platform, and sends the follow relationship to the M2M terminal and the M2M service platform.

205、所述M2M终端获取主用户终端和M2M终端的控制关系;205. The M2M terminal obtains the control relationship between the main user terminal and the M2M terminal;

M2M终端获取主用户终端和M2M终端的控制关系,当主用户终端向公共社交应用平台发送凭证码后,公共社交应用平台查找该凭证码对应的M2M 终端账号,建立主用户终端和M2M终端的相互社交关系以及控制关系,公共社交应用平台将该控制关系发送至M2M终端,公共社交应用平台自动设置 M2M终端账号关注M2M业务平台,并将关注关系发送到M2M终端以及M2M 业务平台。The M2M terminal obtains the control relationship between the main user terminal and the M2M terminal. When the main user terminal sends a voucher code to the public social application platform, the public social application platform searches for the M2M terminal account corresponding to the voucher code, and establishes mutual social interaction between the main user terminal and the M2M terminal. relationship and control relationship, the public social application platform sends the control relationship to the M2M terminal, the public social application platform automatically sets the M2M terminal account to follow the M2M service platform, and sends the follow relationship to the M2M terminal and the M2M service platform.

所述M2M终端接收所述主用户终端的昵称和头像设置,主用户终端与 M2M终端建立了控制关系,主用户终端可以进行昵称和头像的设置,昵称可以设置为M2M终端的名称,头像可以设置为M2M终端的图标,在此不作限定,M2M终端接收主用户终端的控制指令,控制指令的形式包括但不限于语音、文本,在此不作限定。The M2M terminal receives the nickname and avatar settings of the main user terminal, the main user terminal establishes a control relationship with the M2M terminal, the main user terminal can set the nickname and avatar, the nickname can be set as the name of the M2M terminal, and the avatar can be set It is the icon of the M2M terminal, which is not limited here, and the M2M terminal receives the control command from the main user terminal, and the form of the control command includes but not limited to voice and text, which is not limited here.

可选的,本方法中还可以增加从用户终端一同控制M2M终端,从用户终端与M2M终端建立控制关系可以是从用户终端可以通过扫描M2M终端上的第二凭证码,直接建立与M2M终端的控制关系,建立的过程可以与主用户终端相同,这种情况时,主用户终端和从用户终端的定义可以预先配置在用户终端侧,也可以配置在公共社交应用平台,即首次与M2M终端建立控制关系的用户终端定义为主用户终端,从用户终端需要控制M2M终端时直接获取与M2M终端的控制关系即可,控制的过程简化,便于操作。Optionally, in this method, the slave user terminal can also be added to control the M2M terminal together. The establishment of a control relationship between the slave user terminal and the M2M terminal can be that the slave user terminal can directly establish a connection with the M2M terminal by scanning the second voucher code on the M2M terminal. The process of establishing the control relationship can be the same as that of the master user terminal. In this case, the definitions of the master user terminal and the slave user terminal can be pre-configured on the user terminal side, or can be configured on the public social application platform, that is, for the first time to establish with the M2M terminal The user terminal in the control relationship is defined as the master user terminal. When the user terminal needs to control the M2M terminal, it only needs to directly obtain the control relationship with the M2M terminal. The control process is simplified and easy to operate.

可选的,上述方法中,为了提高安全性,从用户终端获取与M2M终端的控制关系时需要向主用户终端获得授权,即所述M2M终端获取从用户终端与 M2M终端的控制关系,所述从用户终端通过主用户终端授权与M2M终端建立所述控制关系,对于授权的方式,可以是从用户终端向主用户终端发送请求控制M2M终端的信息,主用户终端对该信息进行判定,如果判定成功,则授权从用户终端控制M2M终端,具体举例,主用户终端可以通过发送授权的标识符给公共社交应用平台来设定是否需要授权。可设定标识符设置为1的话,代表主用户终端需要从用户终端通过授权才能获得控制关系。当公共社交应用平台收到来自从用户终端的信息时,判断主用户终端设置的对应M2M 终端控制关系建立授权标识符为1,通过主用户终端授权的方式来建立从用户终端和M2M终端的控制关系,当然授权的方式还可以用其他种方式,对此不做限定。Optionally, in the above method, in order to improve security, when the slave user terminal acquires the control relationship with the M2M terminal, it needs to obtain authorization from the master user terminal, that is, the M2M terminal acquires the control relationship between the slave user terminal and the M2M terminal, and the The slave user terminal establishes the control relationship with the M2M terminal through the authorization of the master user terminal. The authorization method may be that the slave user terminal sends information requesting control of the M2M terminal to the master user terminal, and the master user terminal judges the information. If successful, the slave user terminal is authorized to control the M2M terminal. For example, the master user terminal can set whether authorization is required by sending an authorized identifier to the public social application platform. If the configurable identifier is set to 1, it means that the primary user terminal needs to pass authorization from the secondary user terminal to obtain the control relationship. When the public social application platform receives information from the slave user terminal, it judges that the corresponding M2M terminal control relationship establishment authorization identifier set by the master user terminal is 1, and establishes the control relationship between the slave user terminal and the M2M terminal through the authorization of the master user terminal , of course, other authorization methods can also be used, which are not limited.

206、所述M2M终端根据所述控制关系获取主用户终端的控制命令。206. The M2M terminal acquires a control command of the primary user terminal according to the control relationship.

在获取控制指令的过程针对控制指令的不同还包括几种情况,下面分别介绍:In the process of obtaining control instructions, there are several situations for different control instructions, which are introduced below:

第一种情况:采用语义群组配置命令Case 1: Using Semantic Group Configuration Commands

首先介绍建立群组,在使用时包括多个M2M终端,主用户终端与多个 M2M终端分别建立控制关系,主用户终端选定想要控制的多个M2M终端建立群组,这里群组需要包括至少一个M2M终端。First introduce the establishment of a group, which includes multiple M2M terminals during use. The main user terminal establishes a control relationship with multiple M2M terminals respectively. The main user terminal selects multiple M2M terminals to be controlled to establish a group. Here, the group needs to include At least one M2M terminal.

在主用户终端建立群组之前需要向M2M终端发送邀请加入群组的通知信息,M2M终端接收到通知信息之后可以根据预先设定的条件加入到群组中,预先设定的条件包括:主用户终端授权M2M终端可以加入群组中,则M2M 终端接收到通知信息后加入群组,或者M2M终端在接收到通知信息之后发送询问消息到M2M业务平台查询是否可以加入群组,若查询可以加入则M2M 终端加入群组,或者在M2M终端接收到通知信息后直接不需要经过任何授权加入群组,用户可以根据实际需要灵活选取以上方式,当然也可以采用其他方式来实现,在此不作限定。Before the main user terminal establishes a group, it needs to send a notification message inviting the M2M terminal to join the group. After receiving the notification message, the M2M terminal can join the group according to the preset conditions. The preset conditions include: primary user The terminal authorizes the M2M terminal to join the group, then the M2M terminal joins the group after receiving the notification information, or the M2M terminal sends an inquiry message to the M2M service platform to inquire whether it can join the group after receiving the notification information, and if the inquiry can join, then The M2M terminal joins the group, or directly joins the group without any authorization after the M2M terminal receives the notification information. The user can flexibly choose the above methods according to actual needs, and of course other methods can also be used, which are not limited here.

所述M2M终端接收主用户终端配置的语义群组配置命令,具体包括:The M2M terminal receives the semantic group configuration command configured by the main user terminal, which specifically includes:

主用户终端配置语义群组配置命令,所述语义群组配置命令包括但不限于:命令符、目标M2M终端名称、操作内容,命令符可以采用特殊符号,例如@、#、*等等或者字母、单词缩写,例如order(中文:命令),为每一个目标M2M终端分配一个名字,操作内容可以设置为开启、待机或者关闭等,例如用户配置一个事件,该事件对应M2M终端执行对应操作,举例说明,用户想要在下班时空调打开、窗帘关闭热水器打开,水温设置在在35℃,可以进行这样配置“下班=@空调打开+@窗帘关闭+@热水器打开,温度设置到 35度”,将该配置信息发送至M2M终端,@控制命令后附加M2M终端的昵称,公共社交应用平台根据目标M2M终端名称在群组里寻找对应的M2M终端账号,为确保目标M2M终端名称和M2M终端账号的一一对应,可以但不限于规定每个目标M2M终端名称唯一,目标M2M终端名称可以存储到主用户终端上,目标M2M终端名称通过主用户终端检查无重复后才可以设置成功。The main user terminal is configured with semantic group configuration commands. The semantic group configuration commands include but are not limited to: command symbols, target M2M terminal names, and operation content. Command symbols can use special symbols, such as @, #, *, etc. or letters , word abbreviation, such as order (Chinese: command), assign a name to each target M2M terminal, and the operation content can be set to open, standby or close, etc. For example, the user configures an event, and the event corresponds to the M2M terminal to perform the corresponding operation, for example Instructions, if the user wants to turn on the air conditioner, close the curtains, and turn on the water heater when the user is off work, and set the water temperature at 35°C, he can configure it like this: "off work = @air conditioner on + @curtain off + @water heater on, and set the temperature to 35°C". The configuration information is sent to the M2M terminal, the nickname of the M2M terminal is appended to the @ control command, and the public social application platform searches for the corresponding M2M terminal account in the group according to the name of the target M2M terminal. For one-to-one correspondence, each target M2M terminal name may be unique, but not limited to, and the target M2M terminal name may be stored in the main user terminal. The target M2M terminal name can only be successfully set after the main user terminal checks that there is no duplication.

所述M2M终端对配置的语义群组配置命令进行语义识别解析并保存,具体包括:The M2M terminal performs semantic recognition, analysis and storage on the configured semantic group configuration command, specifically including:

各个M2M终端接收语义群组配置命令,用语义识别技术解析语义群组配置命令并存储,例如在“下班”配置命令中找到了对应于M2M终端名称自身的操作要求(窗帘关闭),配置成功之后可以提示主用户终端配置成功。Each M2M terminal receives the semantic group configuration command, uses semantic recognition technology to analyze and store the semantic group configuration command, for example, finds the operation requirement corresponding to the M2M terminal name itself (curtain close) in the "off work" configuration command, after the configuration is successful It can prompt that the configuration of the main user terminal is successful.

所述M2M终端接收主用户终端发送的语义群组控制命令,具体包括:The M2M terminal receives the semantic group control command sent by the main user terminal, specifically including:

主用户终端在群组中发送的语义群组控制命令,语义群组控制命令可以采用语音。文本等,在此不作限定。For the semantic group control command sent by the main user terminal in the group, the semantic group control command may be voiced. Text, etc., are not limited here.

所述M2M终端根据自身保存的语义群组配置命令识别接收到的语义群组控制命令,以使得所述M2M终端根据语义群组控制命令执行相关操作,具体包括:The M2M terminal identifies the received semantic group control command according to the semantic group configuration command saved by itself, so that the M2M terminal performs related operations according to the semantic group control command, specifically including:

M2M终端接收到语义群组控制命令,根据自身保存的语义群组配置命令对接收到的语义群组控制命令进行识别,根据语义群组控制命令的内容完成相应的操作,例如发送“下班”,根据之前配置,此时用户想要做的是空调打开、窗帘关闭及热水器打开,水温设置在在35℃,那么此时群组中的M2M 终端对应的空调、窗帘和热水器开始执行语义群组控制命令,则空调打开、窗帘关闭及热水器打开,水温设置在在35℃。The M2M terminal receives the semantic group control command, identifies the received semantic group control command according to the semantic group configuration command saved by itself, and completes the corresponding operation according to the content of the semantic group control command, such as sending "off work", According to the previous configuration, what the user wants to do at this time is to turn on the air conditioner, close the curtains, and turn on the water heater. The water temperature is set at 35°C. Then the air conditioners, curtains, and water heaters corresponding to the M2M terminals in the group start to perform semantic group control. command, the air conditioner is turned on, the curtains are closed and the water heater is turned on, and the water temperature is set at 35°C.

第二种情况:采用协作群组控制命令Case 2: Using Cooperative Group Control Commands

在本实施例中,对于如何建立群组已在上文中描述,此处不作赘述,下面介绍需要的M2M终端已加入群组之后的操作。In this embodiment, how to establish a group has been described above and will not be repeated here. The following describes the operations after the required M2M terminals have joined the group.

所述M2M终端接收主用户终端配置的协作群组配置命令,具体包括:The M2M terminal receives the coordination group configuration command configured by the main user terminal, which specifically includes:

主用户终端针对某一个M2M终端设置协作策略,协作策略可以使得 M2M终端在收到协作群组配置命令后执行操作,所述协作群组配置命令包括但不限于:命令符、目标M2M终端名称、逻辑词及操作内容,关于命令符、目标M2M终端名称及操作内容已在上文中描述,此处不作赘述,对于逻辑词,当一个M2M终端工作则触发另一个M2M终端动作,可以采用如果(控制命令 A),则(控制命令B),如果一个M2M终端执行某项操作,则指定另一个M2M 终端执行制定操作,协作群组配置命令的格式具体可以为:@目标M2M终端的名称+空格+如果M2M终端A执行操作,则目标M2M终端执行制定操作,其中M2M终端A与目标M2M终端协作,例如设置窗帘在收到“空调打开”命令时执行关闭操作。主用户终端将配置的协作群组配置命令发送到M2M终端,需要说明的是,本文中在控制命令中采用空格隔开M2M终端的名称和逻辑词,也可以采用其他的方式将M2M终端的名称和逻辑词隔开,当然,空格也可以没有,也可以不需要隔开M2M终端的名称和逻辑词,在实际应用时灵活选择,具体不做限定。The master user terminal sets a cooperation policy for a certain M2M terminal. The cooperation policy can enable the M2M terminal to perform operations after receiving a cooperation group configuration command. The cooperation group configuration command includes but is not limited to: command symbol, target M2M terminal name, Logical words and operation content, the command symbol, target M2M terminal name and operation content have been described above, and will not be repeated here. For logical words, when one M2M terminal is working, another M2M terminal will be triggered. If (control Command A), then (control command B), if one M2M terminal performs a certain operation, another M2M terminal is designated to perform the specified operation. The format of the cooperation group configuration command can be: @target M2M terminal name+space+ If M2M terminal A performs an operation, then the target M2M terminal performs a specified operation, wherein M2M terminal A cooperates with the target M2M terminal, such as setting curtains to perform a close operation when receiving the "air conditioner on" command. The main user terminal sends the configured cooperation group configuration command to the M2M terminal. It should be noted that in this paper, a space is used to separate the name of the M2M terminal from the logical word in the control command, and other methods can also be used to separate the name of the M2M terminal. Separated from the logical word, of course, there may be no space, or there is no need to separate the name of the M2M terminal from the logical word, and it can be flexibly selected in actual application, and there is no specific limitation.

所述M2M终端对所述协作群组配置命令进行解析并保存,具体包括:The M2M terminal parses and saves the coordination group configuration command, which specifically includes:

M2M终端收到协作群组配置命令并进行设置,将协作群组配置命令保存,配置成功后可以提示主用户终端配置成功。The M2M terminal receives and sets the cooperation group configuration command, saves the cooperation group configuration command, and can prompt the main user terminal that the configuration is successful after the configuration is successful.

所述M2M终端接收主用户终端发送的协作群组控制命令,以使得所述 M2M终端在所述协作群组控制命令符合所述协作群组配置命令时执行相关操作,具体包括:The M2M terminal receives the cooperation group control command sent by the main user terminal, so that the M2M terminal performs related operations when the cooperation group control command conforms to the cooperation group configuration command, specifically including:

M2M终端接收主用户终端发送的协作群组控制命令,根据M2M终端自身保存的协作群组配置命令对接收到的协作群组控制命令进行解析,如果M2M终端解析得到协作群组控制命令的对象是本身或者是存储的协作群组配置命令,则执行协作群组控制命令的操作,并将更新状态上报给主用户终端。The M2M terminal receives the cooperative group control command sent by the main user terminal, and analyzes the received cooperative group control command according to the cooperative group configuration command saved by the M2M terminal itself. If the M2M terminal parses and obtains the object of the cooperative group control command is itself or the stored cooperation group configuration command, execute the operation of the cooperation group control command, and report the update status to the main user terminal.

第三种情况:采用组播方式发送控制命令Case 3: Send control commands by multicast

本实施例中也涉及到建立群组,对群组中的M2M终端进行控制,建立群组的过程在上文中介绍,此处也不作赘述。This embodiment also involves establishing a group and controlling the M2M terminals in the group. The process of establishing a group was introduced above and will not be repeated here.

下面介绍M2M终端根据所述请求加入控制群组之后的操作,具体如下:The following describes the operation of the M2M terminal after joining the control group according to the request, specifically as follows:

所述M2M终端接收主用户终端发送的组播群组控制命令,具体包括:The M2M terminal receives the multicast group control command sent by the main user terminal, specifically including:

组播群组控制命令包括命令符、目标M2M终端名称以及操作内容,目标 M2M终端为用户想要控制的M2M终端,操作内容为用户想要目标M2M终端执行的操作,采用组播的方式可以向多个M2M终端一并发送组播群组控制命令,对多个M2M终端一同控制,组播群组控制命令可以为@目标M2M终端A+空格+@目标M2M终端B+操作内容,目标M2M终端A和目标M2M 终端B可以分别对应不同操作对象,例如当用户想要打开空调和热水器时候,组播群组控制命令可以为“@空调+空格+@热水器+空格+打开”,在命令符之间可以采用空格或者其他符号进行分割,使得目标M2M终端名称清楚准确,设置好组播群组控制命令之后,主用户终端将组播群组控制命令发送至目标 M2M终端。The multicast group control command includes command symbol, target M2M terminal name and operation content. The target M2M terminal is the M2M terminal that the user wants to control, and the operation content is the operation that the user wants the target M2M terminal to perform. Multiple M2M terminals send a multicast group control command to control multiple M2M terminals together. The multicast group control command can be @target M2M terminal A+space+@target M2M terminal B+operation content, target M2M terminal A and The target M2M terminal B can correspond to different operation objects. For example, when the user wants to turn on the air conditioner and water heater, the multicast group control command can be "@air conditioner+space+@water heater+space+open". Spaces or other symbols are used for division, so that the name of the target M2M terminal is clear and accurate. After the multicast group control command is set, the master user terminal sends the multicast group control command to the target M2M terminal.

所述M2M终端查询所述组播群组控制命令是否包括自身的名称,以使得在组播群组控制命令包括自身的名称时在执行相关操作,具体包括:The M2M terminal queries whether the multicast group control command includes its own name, so that when the multicast group control command includes its own name, it performs related operations, specifically including:

M2M终端收到组播群组控制命令,查询组播群组控制命令中是否包含本身的名称,如果包含本身的名称,则执行命令符@之后的操作内容,并可以将更新状态反馈给主用户终端,例如当M2M终端为空调时,接收到的组播群组控制命令为“@空调打开”,M2M终端查询到组播群组控制命令中包含空调,则执行命令符@之后的操作内容“打开”,此时空调打开工作。The M2M terminal receives the multicast group control command, checks whether the multicast group control command contains its own name, if it contains its own name, executes the operation content after the command symbol @, and can feedback the update status to the main user For example, when the M2M terminal is an air conditioner, the received multicast group control command is "@air conditioner on", and the M2M terminal inquires that the multicast group control command includes air conditioner, then execute the operation content after the command character @" Open", the air conditioner will work at this time.

206、所述M2M终端根据所述控制命令的内容执行相关操作。206. The M2M terminal performs related operations according to the content of the control command.

可选的,所述账号包括但不限于生产厂家、产品型号及产品编号。Optionally, the account number includes but is not limited to the manufacturer, product model and product number.

账号可以是一串bit字符,例如账号可以按照生产商家+产品型号+产品编号的顺序配置。The account number can be a string of bit characters. For example, the account number can be configured in the order of manufacturer + product model + product number.

可选的,所述公共社交应用平台包括但不限于微信、连我、KakaoTalk或者WhatsApp,公共社交应用平台应当满足具有较高的普及率的社交平台,满足上述条件即可,采用何种平台在此不作限定。Optionally, the public social application platform includes but is not limited to WeChat, Lianwo, KakaoTalk or WhatsApp. The public social application platform should meet the requirements of a social platform with a relatively high penetration rate. It only needs to meet the above conditions. This is not limited.

本发明提供的一种M2M终端控制方法,采用公共社交应用平台统一分配服务信息,M2M终端再对服务信息进行处理获得登录信息,控制指令直接通过公共社交应用平台转发,用户不需要在M2M终端侧进行繁琐的配置,也不需要在M2M终端和M2M业务平台之间设置私有定制通信协议,使用公共社交应用平台进行M2M终端的互联互通,降低企业的推广成本,用户在使用过程中操作过程简单。An M2M terminal control method provided by the present invention uses a public social application platform to uniformly distribute service information, and the M2M terminal processes the service information to obtain login information, and the control instruction is directly forwarded through the public social application platform, and the user does not need to be on the M2M terminal side. Complicated configuration does not need to set up a private customized communication protocol between the M2M terminal and the M2M service platform, and the use of the public social application platform for the interconnection of the M2M terminal reduces the promotion cost of the enterprise, and the user's operation process is simple during use.

上面内容介绍了M2M终端的控制方法,下面针对如何执行M2M终端的控制方法,本发明还提供了一种M2M终端,下面进行具体介绍。The above content introduces the control method of the M2M terminal. The following describes how to implement the control method of the M2M terminal. The present invention also provides an M2M terminal, which is described in detail below.

请参考图3,本发明M2M终端一种实施例,包括接收单元301、登录单元302、第一获取单元303、第二获取单元304以及执行单元305。Please refer to FIG. 3 , an embodiment of an M2M terminal in the present invention includes a receiving unit 301 , a login unit 302 , a first obtaining unit 303 , a second obtaining unit 304 and an executing unit 305 .

接收单元301,用于接收M2M业务平台分配的登录信息,其中,所述登录信息由M2M业务平台根据公共社交应用平台分配的服务信息进行处理得到;The receiving unit 301 is configured to receive login information allocated by the M2M service platform, wherein the login information is obtained by processing the M2M service platform according to the service information allocated by the public social application platform;

登录信息可以包括帐号和密码,用于为M2M终端提供登录使用的信息,公共社交应用平台可以为公众日常社交使用的软件的运营平台,公共社交应用平台可以为M2M业务平台提供服务信息,服务信息可以包括PKI证书、私钥、M2M终端公共社交应用账号号段,也可以包括M2M业务平服务号,M2M 终端公共社交应用账号号段包括一组或者几组账号,M2M业务平台对服务信息进行处理获得登录信息,例如利用私钥对M2M终端公共社交应用账号号段的每一个账号进行签名,将签名的结果作为账号的密码,使用hash算法对账号的密码进行处理得到凭证码,采用公共社交应用平台作为M2M终端控制平台,可以减轻M2M终端厂商的推广成本,同时也减轻用户的使用成本,便于可快速部署。The login information can include account number and password, which are used to provide login information for M2M terminals. The public social application platform can be the operating platform of software used by the public for daily social interaction. The public social application platform can provide service information for the M2M business platform. Service information It can include PKI certificate, private key, M2M terminal public social application account number segment, and can also include M2M business platform service number. The M2M terminal public social application account number segment includes one or several groups of accounts. The M2M service platform processes the service information Obtain login information, for example, use the private key to sign each account in the M2M terminal public social application account number segment, use the signature result as the account password, use the hash algorithm to process the account password to obtain the certificate code, and use the public social application As an M2M terminal control platform, the platform can reduce the promotion cost of M2M terminal manufacturers, and also reduce the user's use cost, so as to facilitate rapid deployment.

需要说明的是,M2M业务平台将登录信息配置到M2M终端的方式可以有多种,例如将凭证码附着在M2M终端,也可以印刷在M2M终端的产品说明书上并在表面附有可刮除的保护层,具体不做限定,配置到M2M终端的产品凭证码有M2M终端账号和密码通过hash算法处理得到的凭证码两部分组成。It should be noted that there are many ways for the M2M service platform to configure the login information to the M2M terminal. For example, the voucher code can be attached to the M2M terminal, or it can be printed on the product manual of the M2M terminal and attached with a scratch-off sticker on the surface. The protection layer is not specifically limited. The product certificate code configured to the M2M terminal consists of two parts, the certificate code obtained by processing the M2M terminal account number and password through a hash algorithm.

登录单元302,用于根据所述登录信息登录到所述公共社交应用平台,以使得所述公共社交应用平台根据所述登录信息建立主用户终端与M2M终端的控制关系;A login unit 302, configured to log in to the public social application platform according to the login information, so that the public social application platform establishes a control relationship between the main user terminal and the M2M terminal according to the login information;

登录单元302通过登录信息登录到公共社交应用平台,公共社交应用平台可以根据账号查找对应该账号的PKI证书,利用PKI证书中的公钥对账号的密码进行解密,得到账号的hash摘要,公共社交应用平台对账号进行hash 处理,得到另一个hash摘要,若两个hash摘要相同,则登陆成功,登陆成功并保存该密码以及通过该密码经过hash算法处理得到凭证码。The login unit 302 logs in to the public social application platform through the login information. The public social application platform can search for the PKI certificate corresponding to the account according to the account, use the public key in the PKI certificate to decrypt the password of the account, and obtain the hash summary of the account. The application platform hashes the account to get another hash digest. If the two hash digests are the same, the login is successful. The login is successful and the password is saved, and the password is processed by the hash algorithm to obtain the voucher code.

第一获取单元303,用于根据所述控制关系获取主用户终端的控制命令;The first obtaining unit 303 is configured to obtain a control command of the primary user terminal according to the control relationship;

主用户终端与M2M终端建立了控制关系,主用户终端可以进行昵称和头像的设置,昵称可以设置为M2M终端的名称,头像可以设置为M2M终端的图标,在此不作限定,M2M终端接收主用户终端的控制指令,控制指令的形式包括但不限于语音、文本,在此不作限定。The master user terminal has established a control relationship with the M2M terminal. The master user terminal can set the nickname and avatar. The nickname can be set as the name of the M2M terminal, and the avatar can be set as the icon of the M2M terminal. There is no limitation here. The M2M terminal receives the master user The control instruction of the terminal, the form of the control instruction includes but not limited to voice and text, which is not limited here.

执行单元304,用于根据所述控制命令的内容执行相关操作。The executing unit 304 is configured to execute related operations according to the content of the control command.

控制命令包括但不限于语音或者文本,M2M终端接收到控制指令可以通过语义识别技术进行解析,可以将控制命令中语句解析为对M2M终端进行控制操作的命令,控制命令中可以设置欲控制的M2M终端的名称及要执行的操作,例如空调关闭,对于命令格式在此不作限定,当M2M终端解析出控制指令的内容,则执行对应控制指令的操作。Control commands include but are not limited to voice or text. M2M terminals can analyze the control commands received by semantic recognition technology, and can parse the sentences in the control commands into commands for controlling operations on M2M terminals. The M2M terminals to be controlled can be set in the control commands. The name of the terminal and the operation to be performed, such as turning off the air conditioner, do not limit the format of the command here. When the M2M terminal parses out the content of the control command, it executes the operation corresponding to the control command.

本实施例中提供的一种M2M终端,采用公共社交应用平台统一分配服务信息,M2M终端再对服务信息进行处理获得登录信息,控制指令直接通过公共社交应用平台转发,用户不需要在M2M终端侧进行繁琐的配置,也不需要在M2M终端和M2M业务平台之间设置私有定制通信协议,使用公共社交应用平台进行M2M终端的互联互通,降低企业的推广成本,用户在使用过程中操作过程简单。An M2M terminal provided in this embodiment uses a public social application platform to uniformly distribute service information, and the M2M terminal then processes the service information to obtain login information, and the control instruction is directly forwarded through the public social application platform, and the user does not need to be on the M2M terminal side. Complicated configuration does not need to set up a private customized communication protocol between the M2M terminal and the M2M service platform, and the use of the public social application platform for the interconnection of the M2M terminal reduces the promotion cost of the enterprise, and the user's operation process is simple during use.

请参考图4,下面针对M2M终端的具体结构,本发明M2M终端的另一种实施例,包括:Please refer to FIG. 4 , for the specific structure of the M2M terminal, another embodiment of the M2M terminal of the present invention includes:

第一接收单元401,用于接收M2M业务平台分配的登录信息,其中,所述登录信息由M2M业务平台根据公共社交应用平台分配的服务信息进行处理得到;The first receiving unit 401 is configured to receive the login information allocated by the M2M service platform, wherein the login information is obtained by processing the M2M service platform according to the service information allocated by the public social application platform;

登录单元402,用于根据所述登录信息登录到所述公共社交应用平台,以使得所述公共社交应用平台根据所述登录信息建立主用户终端与M2M终端的控制关系;A login unit 402, configured to log in to the public social application platform according to the login information, so that the public social application platform establishes a control relationship between the main user terminal and the M2M terminal according to the login information;

所述登录信息包括账号和密码,登录单元402还用于将账号和密码发送至所述公共社交应用平台,以使得所述公共社交应用平台根据所述账号获取与该账号对应的PKI证书,利用PKI证书中的公共密钥对密码进行解密得到第一hash摘要,公共社交应用平台对账号进行hash处理得到第二hash摘要,若第一hash摘要与第二hash摘要相同,则登陆成功。The login information includes an account number and a password, and the login unit 402 is also configured to send the account number and password to the public social application platform, so that the public social application platform obtains a PKI certificate corresponding to the account according to the account number, and uses The public key in the PKI certificate decrypts the password to obtain the first hash digest, and the public social application platform performs hash processing on the account to obtain the second hash digest. If the first hash digest is the same as the second hash digest, the login is successful.

第二获取单元403,用于获取主用户终端和M2M终端的控制关系;The second obtaining unit 403 is configured to obtain the control relationship between the main user terminal and the M2M terminal;

获取主用户终端和M2M终端的控制关系,当主用户终端向公共社交应用平台发送凭证码后,公共社交应用平台查找该凭证码对应的M2M终端账号,建立主用户终端和M2M终端的相互社交关系以及控制关系,公共社交应用平台将该控制关系发送至M2M终端,公共社交应用平台自动设置M2M终端账号关注M2M业务平台,并将关注关系发送到M2M终端以及M2M业务平台。Obtain the control relationship between the main user terminal and the M2M terminal. After the main user terminal sends the voucher code to the public social application platform, the public social application platform searches for the M2M terminal account corresponding to the voucher code, establishes the mutual social relationship between the main user terminal and the M2M terminal, and Control relationship, the public social application platform sends the control relationship to the M2M terminal, the public social application platform automatically sets the M2M terminal account to follow the M2M service platform, and sends the follow relationship to the M2M terminal and the M2M service platform.

第一获取单元404,用于根据所述控制关系获取主用户终端的控制命令;The first obtaining unit 404 is configured to obtain a control command of the primary user terminal according to the control relationship;

执行单元405,用于根据所述控制命令的内容执行相关操作。The executing unit 405 is configured to execute related operations according to the content of the control command.

第二接收单元406,用于接收M2M业务平台根据账号密码通过Hash算法计算得到的第一凭证码,M2M终端公共社交应用账号和第一凭证码组成第二凭证码,所述M2M终端与所述第二凭证码成对应关系。The second receiving unit 406 is configured to receive the first credential code calculated by the M2M service platform through the Hash algorithm according to the account password, the M2M terminal public social application account and the first credential code form the second credential code, and the M2M terminal and the The second voucher code is in a corresponding relationship.

配置单元407,用于配置接收到的所述用户终端的昵称和头像。The configuration unit 407 is configured to configure the received nickname and avatar of the user terminal.

第三获取单元408,用于获取从用户终端与M2M终端的控制关系,其中,从用户终端通过主用户终端授权与M2M终端建立所述控制关系。The third acquiring unit 408 is configured to acquire the control relationship between the slave user terminal and the M2M terminal, wherein the slave user terminal establishes the control relationship with the M2M terminal through authorization of the master user terminal.

请参考图4a,在进行语义群组控制时,所述M2M终端还包括:Please refer to Figure 4a, when performing semantic group control, the M2M terminal also includes:

第一群组接收单元410,用于接收主用户终端的加入控制群组的请求,其中所述控制群组包括至少一个M2M终端;The first group receiving unit 410 is configured to receive a request from a master user terminal to join a control group, where the control group includes at least one M2M terminal;

群组加入单元411,用于根据所述请求加入控制群组;A group joining unit 411, configured to join the control group according to the request;

第二群组接收单元412,用于接收主用户终端配置的语义群组配置命令;The second group receiving unit 412 is configured to receive a semantic group configuration command configured by the main user terminal;

群组命令解析单元413,用于对配置的语义群组配置命令进行语义识别解析并保存;A group command parsing unit 413, configured to perform semantic recognition, analysis, and storage of the configured semantic group configuration commands;

第三群组接收单元414,用于接收主用户终端发送的语义群组控制命令;The third group receiving unit 414 is configured to receive the semantic group control command sent by the main user terminal;

群组命令识别单元415,用于根据自身保存的语义群组配置命令识别接收到的语义群组控制命令,以使得所述M2M终端根据语义群组控制命令执行相关操作。The group command identification unit 415 is configured to identify the received semantic group control command according to the semantic group configuration command stored by itself, so that the M2M terminal performs related operations according to the semantic group control command.

请参考图4b,在进行协作群组控制时,所述M2M终端还包括:Please refer to FIG. 4b. When performing cooperative group control, the M2M terminal further includes:

第一群组接收单元410,用于接收主用户终端的加入控制群组的请求,其中所述控制群组包括至少一个M2M终端;The first group receiving unit 410 is configured to receive a request from a master user terminal to join a control group, where the control group includes at least one M2M terminal;

群组加入单元411,用于根据所述请求加入控制群组;A group joining unit 411, configured to join the control group according to the request;

协作群组配置单元416,用于接收主用户终端配置的协作群组配置命令;A cooperative group configuration unit 416, configured to receive a cooperative group configuration command configured by the main user terminal;

协作群组解析单元417,用于对所述协作群组配置命令进行解析并保存;A collaborative group parsing unit 417, configured to parse and save the collaborative group configuration command;

协作群组接收单元418,用于接收主用户终端发送的协作群组控制命令,以使得所述M2M终端在所述协作群组控制命令为所述协作群组配置命令时执行相关操作。The cooperation group receiving unit 418 is configured to receive a cooperation group control command sent by the main user terminal, so that the M2M terminal performs related operations when the cooperation group control command is the cooperation group configuration command.

请参考图4c,在进行组播群组控制时,所述M2M终端还包括:Please refer to Figure 4c, when performing multicast group control, the M2M terminal also includes:

第一群组接收单元410,用于接收主用户终端的加入控制群组的请求,其中所述控制群组包括至少一个M2M终端;The first group receiving unit 410 is configured to receive a request from a master user terminal to join a control group, where the control group includes at least one M2M terminal;

群组加入单元411,用于根据所述请求加入控制群组;A group joining unit 411, configured to join the control group according to the request;

组播控制接收单元419,用于接收主用户终端发送的组播群组控制命令;The multicast control receiving unit 419 is configured to receive a multicast group control command sent by the main user terminal;

组播查询单元420,用于查询所述组播群组控制命令是否包括自身的名称,以使得在组播群组控制命令包括自身的名称时在执行相关操作。The multicast query unit 420 is configured to query whether the multicast group control command includes its own name, so as to perform related operations when the multicast group control command includes its own name.

可选的,显示屏409,用于显示所述凭证码,M2M终端在开机时在显示屏上显示该凭证码,以使得所述主用户终端通过扫描所述凭证码发送到所述公共社交应用平台。Optionally, the display screen 409 is used to display the voucher code, and the M2M terminal displays the voucher code on the display screen when it is turned on, so that the main user terminal sends the voucher code to the public social application by scanning the voucher code. platform.

可选的,所述账号包括但不限于生产厂家、产品型号及产品编号。Optionally, the account number includes but is not limited to the manufacturer, product model and product number.

可选的,所述语义群组配置命令包括不限于:命令符、目标M2M终端名称、操作内容。Optionally, the semantic group configuration command includes, but is not limited to: command character, target M2M terminal name, and operation content.

可选的,所述协作群组控制命令包括不限于:命令符、目标M2M终端名称、逻辑词及操作内容。Optionally, the cooperation group control command includes, but is not limited to: command symbol, target M2M terminal name, logic word and operation content.

提示单元421,用于对配置的语义群组配置命令进行语义识别解析并保存之后提示配置成功,提示单元421还可用于对配置的协作群组配置命令进行识别解析并保存之后提示配置成功。The prompting unit 421 is used for prompting that the configuration is successful after performing semantic recognition and analysis on the configured semantic group configuration commands and saving them.

本实施例中提供的一种M2M终端,采用公共社交应用平台统一分配服务信息,M2M终端再对服务信息进行处理获得登录信息,控制指令直接通过公共社交应用平台转发,用户不需要在M2M终端侧进行繁琐的配置,也不需要在M2M终端和M2M业务平台之间设置私有定制通信协议,使用公共社交应用平台进行M2M终端的互联互通,降低企业的推广成本,用户在使用过程中操作过程简单。An M2M terminal provided in this embodiment uses a public social application platform to uniformly distribute service information, and the M2M terminal then processes the service information to obtain login information, and the control instruction is directly forwarded through the public social application platform, and the user does not need to be on the M2M terminal side. Complicated configuration does not need to set up a private customized communication protocol between the M2M terminal and the M2M service platform, and the use of the public social application platform for the interconnection of the M2M terminal reduces the promotion cost of the enterprise, and the user's operation process is simple during use.

上面针对M2M终端进行了介绍,请结合图5,下面针对M2M终端可能使用的硬件结构进行描述,具体如下。The above describes the M2M terminal, please refer to FIG. 5 , the following describes the possible hardware structure used by the M2M terminal, specifically as follows.

本发明M2M模块的一种实施例,所述M2M模块包括调制解调器500及一体化软件平台501;An embodiment of the M2M module of the present invention, the M2M module includes a modem 500 and an integrated software platform 501;

所述调制解调器500,用于所述M2M模块进行远程通信;The modem 500 is used for the M2M module to perform remote communication;

调制解调器500负责M2M模块与其他实体进行通信的功能,其他实体可以为M2M业务平台,公共社交应用平台,或者M2M模块内部通信。The modem 500 is responsible for the function of the M2M module communicating with other entities, and the other entities may be the M2M service platform, the public social application platform, or the internal communication of the M2M module.

所述一体化软件平台501,用于安装公共社交应用平台的应用客户端5011 以及提供应用程序编程接口,应用程序编程接口由一体化软件平台对远程互联网开放能力进行二次封装来实现。The integrated software platform 501 is used to install the application client 5011 of the public social application platform and provide an application programming interface. The application programming interface is realized by secondary packaging of the remote Internet open capability by the integrated software platform.

一体化软件平台可以为操作系统或者内置在M2M模块的软件平台,在一体化软件平台上可以安装公共社交应用平台的应用客户端,还可以向上层客户软件提供应用程序编程接口。The integrated software platform can be an operating system or a software platform built into the M2M module, and the application client of the public social application platform can be installed on the integrated software platform, and an application programming interface can also be provided to the upper-layer client software.

可选的,所述应用程序编程接口包括但不限于账号设置应用程序编程接口5012、语音图像应用程序编程接口5013及M2M终端到M2M业务平台接口5014及M2M终端到用户终端接口5015的至少一种,其中账号设置应用程序编程接口5012可以实现账号的配置,语音图像应用编程接口5013可以实现语音或图像处理的传输,M2M终端到M2M业务平台接口5014可以实现 M2M模块与M2M业务平台之间的通信或数据传输,M2M终端到用户终端接口5015可以实现M2M模块与用户终端的通信或数据交换。Optionally, the application programming interface includes, but is not limited to, at least one of an account setting application programming interface 5012, an audio image application programming interface 5013, an M2M terminal-to-M2M service platform interface 5014, and an M2M terminal-to-user terminal interface 5015. , where the account setting application programming interface 5012 can realize account configuration, the voice and image application programming interface 5013 can realize the transmission of voice or image processing, and the M2M terminal to M2M service platform interface 5014 can realize the communication between the M2M module and the M2M service platform or data transmission, the M2M terminal-to-user terminal interface 5015 can implement communication or data exchange between the M2M module and the user terminal.

下面对应用程序编程接口的调用功能进行介绍,用户通过应用程序编程接口接收用户输入的信息,应用程序编程接口将该信息上传至互联网能力开放平台,互联网能力开放平台对该信息进行处理,再将处理后的信息传送至应用程序编程接口,应用程序编程接口将处理后的信息提供给用户使用,M2M 模块本身不需要具有处理该信息的能力,可以调用远程互联网开放能力进行处理,可以节省M2M模块的成本。The calling function of the application programming interface is introduced below. The user receives the information input by the user through the application programming interface, and the application programming interface uploads the information to the Internet capability opening platform, and the Internet capability opening platform processes the information, and then The processed information is transmitted to the application programming interface, and the application programming interface provides the processed information to the user. The M2M module itself does not need to have the ability to process the information, and can call the remote Internet open capability for processing, which can save M2M The cost of the module.

利用应用程序编程接口的调用功能,在智能安防装置中应用进行介绍,针对M2M模块如何进行授权,本发明M2M模块能力调用的一种实施方式是这样的:Using the call function of the application programming interface to introduce the application in the intelligent security device, how to authorize the M2M module, an implementation of the M2M module capability call in the present invention is as follows:

M2M模块预存声纹特征和用于语音识别后认证的口令密码,The M2M module pre-stores voiceprint features and passwords for authentication after voice recognition,

用户通过语音向M2M模块输入密码;The user enters the password to the M2M module by voice;

M2M模块将预存的声纹特征和采集的语音上传至互联网开放能力平台;The M2M module uploads the pre-stored voiceprint features and collected voice to the Internet open capability platform;

互联网开放能力平台将接收到的语音进行处理,提取该语音的声纹特征,并将语音所包含的内容转化为文本;The Internet open capability platform processes the received voice, extracts the voiceprint features of the voice, and converts the content contained in the voice into text;

互联网开放平台将接收的声纹特征和语音处理后的声纹特征进行比对,当两个声纹特征的相似度大于一定门限值,则确定匹配成功,可选的,门限值为90%。The Internet open platform compares the received voiceprint features with the voiceprint features after voice processing, and when the similarity between the two voiceprint features is greater than a certain threshold value, it is determined that the matching is successful. Optionally, the threshold value is 90 %.

互联网开放能力平台将声纹特征匹配结果以及语音转化得到的文本反馈到M2M模块;The Internet open capability platform feeds back the voiceprint feature matching results and the text obtained by voice conversion to the M2M module;

M2M模块获取语音转化的文本中的信息,并将该信息与预存的密码进行比较;The M2M module obtains the information in the voice-converted text, and compares the information with the pre-stored password;

M2M模块在匹配成功并且信息与预存密码相同时授权进入。The M2M module authorizes access when the matching is successful and the information is the same as the pre-stored password.

用户通过应用程序编程接口接收用户输入的信息,应用程序编程接口将该信息上传至互联网能力开放平台,互联网能力开放平台对该信息进行处理,再将处理后的信息传送至应用程序编程接口,应用程序编程接口将处理后的信息提供给用户使用,M2M模块本身不需要具有处理该信息的能力,可以调用远程互联网开放能力进行处理,可以节省M2M模块的成本。The user receives the information input by the user through the application programming interface, and the application programming interface uploads the information to the Internet capability opening platform, and the Internet capability opening platform processes the information, and then transmits the processed information to the application programming interface, and the application The program programming interface provides the processed information to the user. The M2M module itself does not need to have the ability to process the information, but can call the remote Internet open capability for processing, which can save the cost of the M2M module.

请参考图6,本发明还提供的一种M2M控制系统,用于实现远程对M2M 终端实现控制,所述系统包括:Please refer to FIG. 6, the present invention also provides an M2M control system, which is used to realize remote control of M2M terminals, and the system includes:

公共社交应用平台600,用于向M2M业务平台分配服务信息;The public social application platform 600 is used to distribute service information to the M2M service platform;

M2M业务平台603,用于对接收所述公共社交应用平台分配的服务信息进行处理得到登录信息,并将所述登录信息分配至M2M终端;The M2M service platform 603 is configured to process the service information distributed by the public social application platform to obtain login information, and distribute the login information to the M2M terminal;

M2M终端602,用于根据登录信息登录所述公共社交应用平台,并根据用户终端601的控制命令执行相关操作,以使得所述公共社交应用平台根据所述登录信息建立用户终端与M2M终端的控制关系;The M2M terminal 602 is configured to log in the public social application platform according to the login information, and perform related operations according to the control command of the user terminal 601, so that the public social application platform establishes the control of the user terminal and the M2M terminal according to the login information relation;

用户终端601,用于根据所述控制关系向所述M2M终端发送控制命令。The user terminal 601 is configured to send a control command to the M2M terminal according to the control relationship.

所述登录信息包括账号和密码,所述M2M业务平台603还用于获取公共社交应用平台600分配的PKI证书、私有密钥,M2M终端公共社交应用平台的账号号段以及M2M业务平台服务号并利用私有密钥对所述M2M终端公共社交应用账号号段的各个账号进行签名得到密码。The login information includes account number and password, and the M2M service platform 603 is also used to obtain the PKI certificate and private key assigned by the public social application platform 600, the account number segment of the M2M terminal public social application platform and the service number of the M2M service platform, and Using the private key to sign each account in the public social application account number segment of the M2M terminal to obtain a password.

所述公共社交应用平台600还用于根据所述M2M终端公共社交应用账号获取与该账号对应的PKI证书,利用PKI证书中的公共密钥对密码进行解密得到第一hash摘要,公共社交应用平台对账号进行hash处理得到第二hash 摘要,若第一hash摘要与第二hash摘要相同,则登陆成功。The public social application platform 600 is further configured to obtain a PKI certificate corresponding to the account according to the public social application account of the M2M terminal, use the public key in the PKI certificate to decrypt the password to obtain the first hash abstract, and the public social application platform Perform hash processing on the account to obtain the second hash digest. If the first hash digest is the same as the second hash digest, the login is successful.

所述M2M终端602接收M2M业务平台603根据密码通过Hash算法计算得到的第一凭证码,以使得M2M终端公共社交应用账号和第一凭证码组成第二凭证码,所述M2M终端602与所述第二凭证码成对应关系;The M2M terminal 602 receives the first credential code calculated by the M2M service platform 603 according to the password through the Hash algorithm, so that the M2M terminal public social application account and the first credential code form a second credential code, and the M2M terminal 602 and the The second voucher code is in a corresponding relationship;

所述用户终端601获取第二凭证码,用户终端601将第二凭证码发送给公共社交应用平台600。The user terminal 601 obtains the second voucher code, and the user terminal 601 sends the second voucher code to the public social application platform 600 .

可选的,所述M2M终端602还包括:Optionally, the M2M terminal 602 further includes:

第一群组接收单元,用于接收主用户终端的加入控制群组的请求,其中所述控制群组包括至少一个M2M终端;A first group receiving unit, configured to receive a request from a master user terminal to join a control group, where the control group includes at least one M2M terminal;

群组加入单元,用于根据所述请求加入控制群组;a group joining unit, configured to join the control group according to the request;

第二群组接收单元,用于接收主用户终端配置的语义群组配置命令;The second group receiving unit is configured to receive a semantic group configuration command configured by the main user terminal;

群组命令解析单元,用于对配置的语义群组配置命令进行语义识别解析并保存;The group command parsing unit is used for performing semantic recognition, parsing and saving of the configured semantic group configuration commands;

第三群组接收单元,用于接收主用户终端发送的语义群组控制命令;The third group receiving unit is configured to receive the semantic group control command sent by the main user terminal;

群组命令识别单元,用于根据自身保存的语义群组配置命令识别接收到的语义群组控制命令,以使得所述M2M终端根据语义群组控制命令执行相关操作。The group command identification unit is configured to identify the received semantic group control command according to the semantic group configuration command stored by itself, so that the M2M terminal performs related operations according to the semantic group control command.

可选的,所述M2M终端602还包括:Optionally, the M2M terminal 602 further includes:

协作群组配置单元,用于接收主用户终端配置的协作群组配置命令;A cooperative group configuration unit, configured to receive a cooperative group configuration command configured by the main user terminal;

协作群组解析单元,用于对所述协作群组配置命令进行解析并保存;a cooperation group parsing unit, configured to analyze and save the configuration command of the cooperation group;

协作群组接收单元,用于接收主用户终端发送的协作群组控制命令,以使得所述M2M终端在所述协作群组控制命令符合所述协作群组配置命令时执行相关操作。The cooperation group receiving unit is configured to receive a cooperation group control command sent by the main user terminal, so that the M2M terminal performs a related operation when the cooperation group control command conforms to the cooperation group configuration command.

可选的,所述M2M终端602还包括:Optionally, the M2M terminal 602 further includes:

组播控制接收单元,用于接收主用户终端发送的组播群组控制命令;The multicast control receiving unit is used to receive the multicast group control command sent by the main user terminal;

组播查询单元,用于查询所述组播群组控制命令是否包括自身的名称,以使得在组播群组控制命令包括自身的名称时在执行相关操作。The multicast query unit is configured to query whether the multicast group control command includes its own name, so that when the multicast group control command includes its own name, related operations are performed.

可选的,所述公共社交应用平台600包括但不限于微信、连我、KakaoTalk 或者WhatsApp。Optionally, the public social application platform 600 includes but not limited to WeChat, Lianwo, KakaoTalk or WhatsApp.

本发明提供的一种M2M控制系统,采用公共社交应用平台统一分配服务信息,M2M终端再对服务信息进行处理获得登录信息,控制指令直接通过公共社交应用平台转发,用户不需要在M2M终端侧进行繁琐的配置,也不需要在M2M终端和M2M业务平台之间设置私有定制通信协议,使用公共社交应用平台进行M2M终端的互联互通,降低企业的推广成本,用户在使用过程中操作过程简单。The M2M control system provided by the present invention adopts the public social application platform to uniformly distribute service information, and the M2M terminal processes the service information to obtain login information, and the control instructions are directly forwarded through the public social application platform, and the user does not need to carry out on the M2M terminal side. It is cumbersome to configure, and there is no need to set up a private custom communication protocol between the M2M terminal and the M2M service platform. The use of the public social application platform for the interconnection of the M2M terminal reduces the promotion cost of the enterprise, and the operation process is simple for the user during use.

本发明中公开的M2M终端的控制方法和M2M终端可以应用到智能家居、车联网、智能电网、智慧农/林业等领域。下面以智能家居和车联网的场景分别进行举例说明:The M2M terminal control method and the M2M terminal disclosed in the present invention can be applied to fields such as smart home, Internet of Vehicles, smart grid, smart agriculture/forestry, and the like. The following are examples of smart home and car networking scenarios:

第一种应用场景:以智能家居为例The first application scenario: taking smart home as an example

这里M2M终端具体为智能家居设备,主用户终端为智能手机,M2M业务平台为智能家居业务平台,公共社交应用平台为微信平台,微信平台为智能家居业务平台分配智能家居设备微信账号号段、智能家居设备业务平台微信服务号、PKI证书以及私钥,智能家居设备业务平台利用私钥对每一个智能家居设备微信账号进行签名,签名结果作为该账号的账号密码,再对账号密码进行hash算法计算的到凭证码,将智能家居设备微信账号和密码作为登录信息,将该凭证码和智能家居设备微信账号配置成产品凭证码并生成二维码,附着在智能家居设备的产品说明书中。Here, the M2M terminal is specifically a smart home device, the main user terminal is a smart phone, the M2M service platform is a smart home service platform, the public social application platform is a WeChat platform, and the WeChat platform assigns the smart home device WeChat account number segment, smart home service platform to the smart home service platform. The home equipment business platform WeChat service account, PKI certificate and private key, the smart home equipment business platform uses the private key to sign each smart home equipment WeChat account, and the signature result is used as the account password of the account, and then the hash algorithm is calculated for the account password After obtaining the voucher code, use the WeChat account and password of the smart home device as the login information, configure the voucher code and the WeChat account of the smart home device as a product voucher code and generate a QR code, which is attached to the product manual of the smart home device.

智能家居设备通电后需要与微信平台建立联系,智能家居设备通过登录信息登录到微信平台,微信平台根据账号查找对应该智能家居设备微信账号的PKI证书,利用PKI证书中的公钥对智能家居设备微信账号的密码进行解密,得到智能家居设备微信账号的hash摘要,微信平台对智能家居设备微信账号进行hash处理,得到另一个hash摘要,若两个hash摘要相同,则登陆成功,登陆成功并保存该密码以及通过该密码经过hash算法处理得到凭证码。After the smart home device is powered on, it needs to establish contact with the WeChat platform. The smart home device logs in to the WeChat platform through the login information. The password of the WeChat account is decrypted to obtain the hash summary of the WeChat account of the smart home device. The WeChat platform performs hash processing on the WeChat account of the smart home device to obtain another hash summary. If the two hash summaries are the same, the login is successful, and the login is successful and saved. The password and the voucher code are obtained by processing the password through a hash algorithm.

用户使用智能手机扫描产品凭证码的二维码,并将该产品凭证码发送至微信平台,微信平台查找该产品凭证码关联的智能家居设备微信账号,建立智能手机与智能家居设备的第一关注关系及控制关系,微信平台将该第一关注关系及控制关系发送至智能家居设备,微信平台自动设置智能家居设备微信账号关注智能家居设备业务平台服务号得到第二关注关系,微信平台将第二关注关系发送至智能家居设备和智能家居设备业务平台。The user scans the QR code of the product voucher code with a smartphone, and sends the product voucher code to the WeChat platform. The WeChat platform searches for the WeChat account of the smart home device associated with the product voucher code, and establishes the first attention between the smartphone and the smart home device. relationship and control relationship, the WeChat platform sends the first attention relationship and control relationship to the smart home device, and the WeChat platform automatically sets the smart home device WeChat account to follow the service account of the smart home device business platform to obtain the second attention relationship, and the WeChat platform sends the second Follow the relationship and send it to smart home equipment and smart home equipment business platform.

要进行群组控制时,智能手机与每个智能家居设备都建立控制关系,用户根据需求在智能手机上选定多个智能家居设备发起微信群聊,智能家居设备收到加入群聊的通知后确认是否加入群聊,满足条件则加入群聊,具体判断条件上文中提到,此处不作赘述,智能家居设备的群聊组建完成。When group control is required, the smart phone establishes a control relationship with each smart home device, and the user selects multiple smart home devices on the smart phone to initiate a WeChat group chat according to the needs, and the smart home device receives the notification of joining the group chat Confirm whether to join the group chat, and join the group chat if the conditions are met. The specific judgment conditions are mentioned above, and will not be described here. The group chat of smart home devices has been established.

在进行语义群组控制时,用户在智能手机的群聊界面配置语义群组配置命令,具体为“下班=@空调打开+@窗帘关闭+@热水器打开,温度设置在35 度”,将语义群组配置命令发送到群聊中,通过群聊将语义群组配置命令发送到智能家居设备的应用客户端,智能家居设备接收到语义群组配置命令,用于以识别技术进行解析,在“下班”的命令中查询对应智能家居设备本身的操作要求(窗帘关闭),解析完成后进行保存,配置成功后在群聊中反馈配置成功消息,当用户通过智能手机在群聊中发送“下班”的语义群组控制命令,智能家居设备识别到语义群组控制命令,智能家居设备执行空调打开、窗帘关闭以及热水器打开,温度设置到35度,并将更新状态反馈至智能手机。When performing semantic group control, the user configures the semantic group configuration command on the group chat interface of the smartphone, specifically "off work = @air conditioner on + @curtain off + @water heater on, set the temperature to 35 degrees", set the semantic group The group configuration command is sent to the group chat, and the semantic group configuration command is sent to the application client of the smart home device through the group chat. The smart home device receives the semantic group configuration command and uses the recognition technology to analyze it. Query the operation requirements of the corresponding smart home device itself (curtain closed) in the command, save it after the analysis is completed, and feedback the configuration success message in the group chat after the configuration is successful, when the user sends "off work" in the group chat through the smartphone Semantic group control command, the smart home device recognizes the semantic group control command, the smart home device executes the air conditioner to turn on, the curtain to close and the water heater to turn on, the temperature is set to 35 degrees, and the update status is fed back to the smart phone.

在进行协作群组控制时,用户针对某个智能家居设备设置协作策略,用户在智能手机配置协作群组配置命令,具体为:“@窗帘+如果空调打开,则窗帘关闭”,通过群聊发送至目标智能家居设备,即窗帘,窗帘接收到协作群组配置命令进行配置并保存,向智能手机反馈配置成功消息,在用户通过智能手机发送“空调打开”的协作语义群组控制命令,窗帘解析该命令,执行关闭操作,将窗帘关闭的更新状态反馈至智能手机。When performing collaborative group control, the user sets a collaborative policy for a certain smart home device, and the user configures a collaborative group configuration command on the smartphone, specifically: "@墅+If the air conditioner is on, the curtain is closed", and send it through the group chat To the target smart home device, that is, the curtain, the curtain receives the collaborative group configuration command to configure and save it, and feeds back the configuration success message to the smartphone. After the user sends the collaborative semantic group control command of "air conditioner on" through the smartphone, the curtain parses This command executes the closing operation and feeds back the updated status of the curtain closing to the smartphone.

在进行组播群组控制时,智能手机发送“@空调+@热水器+打开”组播控制命令到群聊,空调和热水器接收到组播控制命令,查询组播控制命令中包括空调及热水器,执行“打开”操作,即空调打开及热水器打开,并将更新状态反馈至智能手机。When performing multicast group control, the smart phone sends the "@air conditioner+@water heater+open" multicast control command to the group chat, the air conditioner and water heater receive the multicast control command, and query the multicast control command includes air conditioner and water heater. Perform the "turn on" operation, that is, the air conditioner is turned on and the water heater is turned on, and the updated status is fed back to the smartphone.

第二种应用场景:以智能车载终端为例The second application scenario: taking the smart vehicle terminal as an example

汽车4S店、智能物流公司或者汽车保险公司业务平台与智能车载设备(如OBDbox、Tracking box或是车机)远程连接,获取车辆数据,货物状态以及位置信息或进行设备管理/固件更新等;汽车用户/智能物流管理人员智能终端与智能车载设备远程连接,并直接发送控制命令、访问运行状态。Car 4S stores, smart logistics companies or car insurance business platforms remotely connect with smart on-board devices (such as OBDbox, Tracking box or car machine) to obtain vehicle data, cargo status and location information or perform device management/firmware updates, etc.; The smart terminal of the user/smart logistics manager is remotely connected to the smart on-board equipment, and directly sends control commands and accesses the operating status.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage The medium can be read-only memory, magnetic or optical disk, etc.

以上对本发明所提供的一种M2M终端控制方法及相关设备进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The M2M terminal control method and related equipment provided by the present invention have been introduced in detail above. For those of ordinary skill in the art, there will be changes in the specific implementation and application scope according to the idea of the embodiment of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (27)

Translated fromChinese
1.一种M2M控制方法,其特征在于,所述方法包括:1. A M2M control method, characterized in that the method comprises:M2M终端接收M2M业务平台分配的登录信息,其中,所述登录信息由M2M业务平台根据公共社交应用平台分配的服务信息得到;The M2M terminal receives the login information allocated by the M2M service platform, wherein the login information is obtained by the M2M service platform according to the service information allocated by the public social application platform;所述M2M终端根据所述登录信息登录到所述公共社交应用平台,以使得所述公共社交应用平台根据所述登录信息建立主用户终端与M2M终端的控制关系;The M2M terminal logs in to the public social application platform according to the login information, so that the public social application platform establishes a control relationship between the main user terminal and the M2M terminal according to the login information;所述M2M终端通过所述控制关系接收主用户终端的控制命令;The M2M terminal receives a control command from the primary user terminal through the control relationship;所述M2M终端根据所述控制命令的内容执行相关操作。The M2M terminal performs related operations according to the content of the control command.2.根据权利要求1所述的M2M控制方法,其特征在于,所述登录信息包括应用账号和密码,所述登录信息由M2M业务平台根据公共社交应用平台分配的服务信息得到具体包括:2. The M2M control method according to claim 1, wherein the login information includes an application account and password, and the login information is obtained by the M2M service platform according to the service information distributed by the public social application platform, and specifically includes:所述M2M业务平台获取公共社交应用平台分配的PKI证书、私有密钥、公共社交应用平台账号号段;The M2M service platform obtains the PKI certificate, private key, and account number of the public social application platform assigned by the public social application platform;所述M2M业务平台利用私有密钥对所述公共社交应用平台账号号段的各个账号进行签名得到密码。The M2M service platform uses a private key to sign each account in the account number segment of the public social application platform to obtain a password.3.根据权利要求2所述的M2M控制方法,其特征在于,所述M2M终端根据所述登录信息登录到所述公共社交应用平台具体包括:3. The M2M control method according to claim 2, wherein the logging in of the M2M terminal to the public social application platform according to the login information specifically includes:所述M2M终端将账号和密码发送至所述公共社交应用平台,以使得所述公共社交应用平台根据所述账号获取与该账号对应的PKI证书,利用PKI证书中的公共密钥对密码进行解密得到第一hash摘要,公共社交应用平台对账号进行hash处理得到第二hash摘要,若第一hash摘要与第二hash摘要相同,则登陆成功。The M2M terminal sends the account number and password to the public social application platform, so that the public social application platform obtains the PKI certificate corresponding to the account according to the account number, and uses the public key in the PKI certificate to decrypt the password The first hash digest is obtained, and the public social application platform performs hash processing on the account to obtain the second hash digest. If the first hash digest is the same as the second hash digest, the login is successful.4.根据权利要求2所述的M2M控制方法,其特征在于,所述方法还包括:4. The M2M control method according to claim 2, further comprising:所述M2M终端接收M2M业务平台根据密码通过Hash算法计算得到的第一凭证码,以使得M2M终端公共社交应用账号和第一凭证码组成第二凭证码;The M2M terminal receives the first voucher code calculated by the M2M service platform through the Hash algorithm according to the password, so that the M2M terminal public social application account and the first voucher code form a second voucher code;所述M2M终端与所述第二凭证码成对应关系。The M2M terminal is in a corresponding relationship with the second voucher code.5.根据权利要求1所述的M2M控制方法,其特征在于,所述方法还包括:5. The M2M control method according to claim 1, further comprising:所述M2M终端接收所述主用户终端的昵称和头像设置。The M2M terminal receives the nickname and avatar setting of the main user terminal.6.根据权利要求1所述的M2M控制方法,其特征在于,所述方法还包括:6. The M2M control method according to claim 1, further comprising:从用户终端通过主用户终端授权与M2M终端建立所述控制关系或从用户终端直接与M2M终端建立所述控制关系。The slave user terminal establishes the control relationship with the M2M terminal through the authorization of the master user terminal or directly establishes the control relationship with the M2M terminal.7.根据权利要求1至6任一项所述的M2M控制方法,其特征在于,所述M2M终端获取主用户终端和M2M终端的控制关系之后还包括:7. The M2M control method according to any one of claims 1 to 6, characterized in that after the M2M terminal obtains the control relationship between the main user terminal and the M2M terminal, it further includes:所述M2M终端接收主用户终端的加入控制群组的请求,其中所述控制群组包括至少一个M2M终端;The M2M terminal receives a request from a master user terminal to join a control group, where the control group includes at least one M2M terminal;所述M2M终端根据所述请求加入控制群组;The M2M terminal joins the control group according to the request;所述M2M终端接收主用户终端配置的群组配置命令;The M2M terminal receives a group configuration command configured by the main user terminal;所述M2M终端对配置的群组配置命令进行语义识别解析并保存;The M2M terminal performs semantic recognition and analysis on the configured group configuration command and saves it;所述M2M终端接收主用户终端发送的语义群组控制命令;The M2M terminal receives the semantic group control command sent by the main user terminal;所述M2M终端根据自身保存的语义群组配置命令识别接收到的语义群组控制命令,以使得所述M2M终端根据语义群组控制命令执行相关操作。The M2M terminal identifies the received semantic group control command according to the semantic group configuration command saved by itself, so that the M2M terminal performs related operations according to the semantic group control command.8.根据权利要求7所述的M2M控制方法,其特征在于,所述M2M终端根据所述请求加入控制群组之后还包括:8. The M2M control method according to claim 7, wherein after the M2M terminal joins the control group according to the request, it further comprises:所述M2M终端接收主用户终端配置的协作群组配置命令;The M2M terminal receives a coordination group configuration command configured by the main user terminal;所述M2M终端对所述协作群组配置命令进行解析并保存;The M2M terminal parses and saves the coordination group configuration command;所述M2M终端接收主用户终端发送的协作群组控制命令,以使得所述M2M终端在所述协作群组控制命令符合所述协作群组配置命令时执行相关操作。The M2M terminal receives the coordination group control command sent by the main user terminal, so that the M2M terminal performs related operations when the coordination group control command conforms to the coordination group configuration command.9.根据权利要求7所述的M2M控制方法,其特征在于,所述M2M终端根据所述请求加入控制群组之后还包括:9. The M2M control method according to claim 7, wherein after the M2M terminal joins the control group according to the request, it further comprises:所述M2M终端接收主用户终端发送的组播群组控制命令;The M2M terminal receives a multicast group control command sent by the main user terminal;所述M2M终端查询所述组播群组控制命令是否包括自身的名称,以使得在组播群组控制命令包括自身的名称时在执行相关操作。The M2M terminal inquires whether the multicast group control command includes its own name, so as to perform related operations when the multicast group control command includes its own name.10.根据权利要求4所述的M2M控制方法,其特征在于,所述M2M终端包括显示屏,所述M2M终端接收M2M业务平台根据密码通过Hash算法计算得到的凭证码之后还包括:10. The M2M control method according to claim 4, wherein the M2M terminal includes a display screen, and after the M2M terminal receives the voucher code calculated by the M2M service platform through the Hash algorithm according to the password, it further includes:所述M2M终端在显示屏显示所述凭证码。The M2M terminal displays the voucher code on a display screen.11.根据权利要求2至4任一项所述的M2M控制方法,其特征在于,所述账号包括生产厂家、产品型号及产品编号中的至少一个。11. The M2M control method according to any one of claims 2 to 4, wherein the account number includes at least one of a manufacturer, a product model and a product number.12.根据权利要求7所述的M2M控制方法,其特征在于,所述语义群组配置命令包括:命令符、目标M2M终端名称、操作内容中的至少一个。12. The M2M control method according to claim 7, wherein the semantic group configuration command includes: at least one of a command symbol, a target M2M terminal name, and operation content.13.根据权利要求8所述的M2M控制方法,其特征在于,所述协作群组控制命令包括:命令符、目标M2M终端名称、逻辑词及操作内容中的至少一个。13 . The M2M control method according to claim 8 , wherein the cooperation group control command includes: at least one of a command symbol, a target M2M terminal name, a logic word, and an operation content. 14 .14.一种M2M终端,其特征在于,所述终端包括:14. An M2M terminal, characterized in that the terminal comprises:第一接收单元,用于接收M2M业务平台分配的登录信息,其中,所述登录信息由M2M业务平台根据公共社交应用平台分配的服务信息得到;The first receiving unit is configured to receive the login information allocated by the M2M service platform, wherein the login information is obtained by the M2M service platform according to the service information allocated by the public social application platform;登录单元,用于根据所述登录信息登录到所述公共社交应用平台,以使得所述公共社交应用平台根据所述登录信息建立主用户终端与M2M终端的控制关系;A login unit, configured to log in to the public social application platform according to the login information, so that the public social application platform establishes a control relationship between the main user terminal and the M2M terminal according to the login information;第一获取单元,用于根据所述控制关系获取主用户终端的控制命令;a first acquiring unit, configured to acquire a control command of the primary user terminal according to the control relationship;执行单元,用于根据所述控制命令的内容执行相关操作。An executing unit, configured to execute related operations according to the content of the control command.15.根据权利要求14所述的M2M终端,其特征在于,所述登录信息包括账号和密码,所述终端还包括:15. The M2M terminal according to claim 14, wherein the login information includes an account number and a password, and the terminal further includes:登录单元,用于将账号和密码发送至所述公共社交应用平台,以使得所述公共社交应用平台根据所述账号获取与该账号对应的PKI证书,利用PKI证书中的公共密钥对密码进行解密得到第一hash摘要,公共社交应用平台对账号进行hash处理得到第二hash摘要,若第一hash摘要与第二hash摘要相同,则登陆成功。The login unit is used to send the account number and password to the public social application platform, so that the public social application platform obtains the PKI certificate corresponding to the account according to the account number, and uses the public key in the PKI certificate to perform password verification. The first hash digest is obtained by decryption, and the public social application platform performs hash processing on the account to obtain the second hash digest. If the first hash digest is the same as the second hash digest, the login is successful.16.根据权利要求14所述的M2M终端,其特征在于,所述终端还包括:16. The M2M terminal according to claim 14, characterized in that the terminal further comprises:第二接收单元,用于接收M2M业务平台根据密码通过Hash算法计算得到的第一凭证码,以使得M2M终端公共社交应用账号和第一凭证码组成第二凭证码,所述M2M终端与所述第二凭证码成对应关系。The second receiving unit is configured to receive the first credential code calculated by the M2M service platform according to the password through the Hash algorithm, so that the M2M terminal public social application account and the first credential code form a second credential code, and the M2M terminal and the The second voucher code is in a corresponding relationship.17.根据权利要求14所述的M2M终端,其特征在于,所述终端还包括:17. The M2M terminal according to claim 14, wherein the terminal further comprises:配置单元,用于配置接收到的所述用户终端的昵称和头像。A configuring unit, configured to configure the received nickname and avatar of the user terminal.18.根据权利要求14所述的M2M终端,其特征在于,所述终端还包括:18. The M2M terminal according to claim 14, characterized in that the terminal further comprises:第三获取单元,用于从用户终端通过主用户终端授权与M2M终端建立所述控制关系。The third acquiring unit is configured to establish the control relationship with the M2M terminal through authorization of the master user terminal from the user terminal.19.根据权利要求14所述的M2M终端,其特征在于,所述终端还包括:19. The M2M terminal according to claim 14, further comprising:第一群组接收单元,用于接收主用户终端的加入控制群组的请求,其中所述控制群组包括至少一个M2M终端;A first group receiving unit, configured to receive a request from a master user terminal to join a control group, where the control group includes at least one M2M terminal;群组加入单元,用于根据所述请求加入控制群组;a group joining unit, configured to join the control group according to the request;第二群组接收单元,用于接收主用户终端配置的语义群组配置命令;The second group receiving unit is configured to receive a semantic group configuration command configured by the main user terminal;群组命令解析单元,用于对配置的语义群组配置命令进行语义识别解析并保存;The group command parsing unit is used for performing semantic recognition, parsing and saving of the configured semantic group configuration commands;第三群组接收单元,用于接收主用户终端发送的语义群组控制命令;The third group receiving unit is configured to receive the semantic group control command sent by the main user terminal;群组命令识别单元,用于根据自身保存的语义群组配置命令识别接收到语义群组控制命令,以使得所述M2M终端根据语义群组控制命令执行相关操作。The group command identification unit is configured to identify the received semantic group control command according to the semantic group configuration command stored by itself, so that the M2M terminal performs related operations according to the semantic group control command.20.根据权利要求14所述的M2M终端,其特征在于,所述终端还包括:20. The M2M terminal according to claim 14, characterized in that the terminal further comprises:协作群组配置单元,用于接收主用户终端配置的协作群组配置命令;A cooperative group configuration unit, configured to receive a cooperative group configuration command configured by the main user terminal;协作群组解析单元,用于对所述协作群组配置命令进行解析并保存;a cooperation group parsing unit, configured to analyze and save the configuration command of the cooperation group;协作群组接收单元,用于接收主用户终端发送的协作群组控制命令,以使得所述M2M终端在所述协作群组控制命令符合所述协作群组配置命令时执行相关操作。The cooperation group receiving unit is configured to receive a cooperation group control command sent by the main user terminal, so that the M2M terminal performs a related operation when the cooperation group control command conforms to the cooperation group configuration command.21.根据权利要求14所述的M2M终端,其特征在于,所述终端还包括:21. The M2M terminal according to claim 14, characterized in that the terminal further comprises:组播控制接收单元,用于接收主用户终端发送的组播群组控制命令;The multicast control receiving unit is used to receive the multicast group control command sent by the main user terminal;组播查询单元,用于查询所述组播群组控制命令是否包括自身的名称,以使得在组播群组控制命令包括自身的名称时在执行相关操作。The multicast query unit is configured to query whether the multicast group control command includes its own name, so that when the multicast group control command includes its own name, related operations are performed.22.根据权利要求16所述的M2M终端,其特征在于,所述终端包括显示屏,22. The M2M terminal according to claim 16, wherein the terminal comprises a display screen,所述显示屏,用于显示所述凭证码。The display screen is used to display the voucher code.23.根据权利要求15所述的M2M终端,其特征在于,所述账号包括生产厂家、产品型号及产品编号。23. The M2M terminal according to claim 15, wherein the account number includes a manufacturer, a product model and a product number.24.根据权利要求19所述的M2M终端,其特征在于,所述语义群组配置命令包括:命令符、目标M2M终端名称、操作内容。24. The M2M terminal according to claim 19, wherein the semantic group configuration command includes: a command symbol, a target M2M terminal name, and operation content.25.根据权利要求20所述的M2M终端,其特征在于,所述协作群组控制命令包括:命令符、目标M2M终端名称、逻辑词及操作内容。25. The M2M terminal according to claim 20, wherein the cooperation group control command includes: a command symbol, a target M2M terminal name, a logic word and an operation content.26.一种M2M控制系统,其特征在于,所述系统包括:26. An M2M control system, characterized in that the system comprises:公共社交应用平台,用于向M2M业务平台分配服务信息;The public social application platform is used to distribute service information to the M2M business platform;M2M业务平台,用于对接收所述公共社交应用平台分配的服务信息进行处理得到登录信息,并将所述登录信息分配至M2M终端;The M2M service platform is configured to process the service information distributed by the public social application platform to obtain login information, and distribute the login information to the M2M terminal;如权利要求14至25中任一项所述的M2M终端;The M2M terminal according to any one of claims 14 to 25;用户终端,用于根据所述控制关系向所述M2M终端发送控制命令。The user terminal is configured to send a control command to the M2M terminal according to the control relationship.27.根据权利要求26所述的M2M控制系统,其特征在于,所述登录信息包括账号和密码,所述M2M业务平台还用于获取公共社交应用平台分配的PKI证书、私有密钥以及M2M终端公共社交应用平台的账号号段并利用私有密钥对所述M2M终端公共社交应用账号号段的各个账号进行签名得到密码;27. The M2M control system according to claim 26, wherein the login information includes an account number and a password, and the M2M service platform is also used to obtain the PKI certificate, private key and M2M terminal assigned by the public social application platform The account number section of the public social application platform and use the private key to sign each account in the public social application account number section of the M2M terminal to obtain a password;所述公共社交应用平台还用于根据所述M2M终端公共社交应用账号获取与该账号对应的PKI证书,利用PKI证书中的公共密钥对密码进行解密得到第一hash摘要,公共社交应用平台对账号进行hash处理得到第二hash摘要,若第一hash摘要与第二hash摘要相同,则登陆成功;The public social application platform is also used to obtain the PKI certificate corresponding to the account according to the public social application account of the M2M terminal, and use the public key in the PKI certificate to decrypt the password to obtain the first hash abstract. Perform hash processing on the account to get the second hash summary. If the first hash summary is the same as the second hash summary, the login is successful;所述M2M终端接收M2M业务平台根据密码通过Hash算法计算得到的第一凭证码,以使得M2M终端公共社交应用账号和第一凭证码组成第二凭证码,所述M2M终端与所述第二凭证码成对应关系;The M2M terminal receives the first credential code calculated by the M2M service platform through the Hash algorithm according to the password, so that the M2M terminal public social application account and the first credential code form a second credential code, and the M2M terminal and the second credential Code into a corresponding relationship;所述用户终端获取第二凭证码,用户终端将第二凭证码发送给公共社交应用平台。The user terminal obtains the second voucher code, and the user terminal sends the second voucher code to the public social application platform.
CN201480059094.8A2014-10-242014-10-24 A M2M terminal control method and related equipmentActiveCN105745954B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911077220.3ACN110808984A (en)2014-10-242014-10-24 A kind of M2M terminal control method and related equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
PCT/CN2014/089392WO2016061803A1 (en)2014-10-242014-10-24M2m terminal control method and related device

Related Child Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911077220.3ADivisionCN110808984A (en)2014-10-242014-10-24 A kind of M2M terminal control method and related equipment

Publications (2)

Publication NumberPublication Date
CN105745954A CN105745954A (en)2016-07-06
CN105745954Btrue CN105745954B (en)2019-11-01

Family

ID=55760090

Family Applications (2)

Application NumberTitlePriority DateFiling Date
CN201911077220.3APendingCN110808984A (en)2014-10-242014-10-24 A kind of M2M terminal control method and related equipment
CN201480059094.8AActiveCN105745954B (en)2014-10-242014-10-24 A M2M terminal control method and related equipment

Family Applications Before (1)

Application NumberTitlePriority DateFiling Date
CN201911077220.3APendingCN110808984A (en)2014-10-242014-10-24 A kind of M2M terminal control method and related equipment

Country Status (2)

CountryLink
CN (2)CN110808984A (en)
WO (1)WO2016061803A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112448925B (en)*2019-08-302022-08-30长城汽车股份有限公司Account management method, device and system
CN113300920A (en)*2020-02-212021-08-24青岛海尔智能技术研发有限公司Intelligent household appliance control method and control equipment based on household appliance control group
CN113296415A (en)*2020-02-212021-08-24青岛海尔智能技术研发有限公司Intelligent household electrical appliance control method, intelligent household electrical appliance control device and system
CN113296416A (en)*2020-02-212021-08-24青岛海尔智能技术研发有限公司Intelligent household appliance control method and control equipment based on household appliance control group
CN113296417A (en)*2020-02-212021-08-24青岛海尔智能技术研发有限公司Intelligent control method, control equipment and control system for household appliance group
CN113300919A (en)*2020-02-212021-08-24青岛海尔智能技术研发有限公司Intelligent household appliance control method based on social software group function and intelligent household appliance
CN111650845B (en)*2020-06-052022-05-24杭州鸿雁电器有限公司Home multicast control method, system and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101702690A (en)*2009-10-302010-05-05倪树芳Method for carrying out human-computer interaction by embedded equipment through internet instant messaging system
CN102621949A (en)*2012-03-092012-08-01电信科学技术研究院Remote monitoring device and method
CN103327099A (en)*2013-06-212013-09-25刘宇Social interaction equipment based on network and manipulation method thereof
KR101315669B1 (en)*2012-06-292013-10-08모다정보통신 주식회사Method and system for managing m2m entity using social network service and instant messenger
CN103404178A (en)*2011-03-022013-11-20三星电子株式会社Method and apparatus for sharing media based on social network in communication system
CN103797771A (en)*2011-08-012014-05-14英特尔公司Method and apparatus for m2m device subscription

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2129095B1 (en)*2008-05-302012-07-11Koninklijke KPN N.V.M2M communication using a plurality of SIM-less communication modules
WO2011109424A1 (en)*2010-03-012011-09-09Interdigital Patent Holdings, Inc.Machine-to-machine gateway architecture and functionality
CN102457542A (en)*2010-10-202012-05-16中华电信股份有限公司Integration system of Internet of things and integrated communication
CN102209073B (en)*2011-05-202014-12-24深圳市超视科技有限公司IOT (Internet of Things)-based Linux operation-level comprehensive security management platform
US20140038526A1 (en)*2012-08-032014-02-06Louis C. ENNISMobile Social Media Platform and Devices
KR101504182B1 (en)*2013-02-262015-03-24주식회사 케이티Method and system to control M2M devices based on social media services interworking

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101702690A (en)*2009-10-302010-05-05倪树芳Method for carrying out human-computer interaction by embedded equipment through internet instant messaging system
CN103404178A (en)*2011-03-022013-11-20三星电子株式会社Method and apparatus for sharing media based on social network in communication system
CN103797771A (en)*2011-08-012014-05-14英特尔公司Method and apparatus for m2m device subscription
CN102621949A (en)*2012-03-092012-08-01电信科学技术研究院Remote monitoring device and method
KR101315669B1 (en)*2012-06-292013-10-08모다정보통신 주식회사Method and system for managing m2m entity using social network service and instant messenger
CN103327099A (en)*2013-06-212013-09-25刘宇Social interaction equipment based on network and manipulation method thereof

Also Published As

Publication numberPublication date
WO2016061803A1 (en)2016-04-28
CN105745954A (en)2016-07-06
CN110808984A (en)2020-02-18

Similar Documents

PublicationPublication DateTitle
CN105745954B (en) A M2M terminal control method and related equipment
CN103929748B (en)A kind of Internet of Things wireless terminal and its collocation method and wireless network access point
CN105101206B (en)A kind of WIFI of equipment automatically accesses method and system
CN104660714B (en)Long-range control method, the apparatus and system of terminal device
CN104717225B (en)A kind of things-internet gateway access authentication method and system
CN108769009B (en)Data communication method, intelligent device and intelligent gateway
CN103067340B (en)The method for authenticating of remote control network information household appliances and system, the Internet home gateway
WO2021036513A1 (en)Smart device provisioning method, system, and readable medium
CN100492991C (en) Method, system and network element for network element management
US20140247941A1 (en)Self-configuring wireless network
CN105636162A (en)Network access method and device for intelligent household electrical appliance
CN105227516A (en)The access method of Smart Home, control centre's equipment and dress terminal
CN104380764A (en) Method for registering vehicle's characteristic data to user database of Internet server device
CN111726886A (en)Network configuration method and device and electronic equipment
CN103916855A (en)Method for enabling mobile phone to be connected to WiFi network
CN107919962A (en)A kind of internet of things equipment registration and authentication method
CN105636159A (en)Configuration method and device for connecting electric appliance with wireless router and mobile communication terminal
CN112188488A (en)Network distribution method, device and system
US20210352764A1 (en)Provisioning a smart device in an existing secure network without using a cloud service
WO2019215439A1 (en)Methods and apparatus for authenticating devices
CN113132977A (en)Network distribution method, network distribution system and computer readable storage medium
WO2020029541A1 (en)Network configuration method and network configuration apparatus based on graphic identifier
CN105392182B (en) Method and system for setting network configuration information of WIFI equipment
CN104301116B (en)A kind of method and system of NFC wireless routers private certification mode
CN104244373B (en)A kind of method that wireless terminal adds wireless network

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp