CN102045698B - Method and device for acquiring terminal information - Google Patents

Method and device for acquiring terminal information Download PDF

Info

Publication number
CN102045698B
CN102045698B CN 200910110794 CN200910110794A CN102045698B CN 102045698 B CN102045698 B CN 102045698B CN 200910110794 CN200910110794 CN 200910110794 CN 200910110794 A CN200910110794 A CN 200910110794A CN 102045698 B CN102045698 B CN 102045698B
Authority
CN
China
Prior art keywords
terminal
message
server
aaa server
devicestatusrequest
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.)
Expired - Fee Related
Application number
CN 200910110794
Other languages
Chinese (zh)
Other versions
CN102045698A (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 Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200910110794 priority Critical patent/CN102045698B/en
Publication of CN102045698A publication Critical patent/CN102045698A/en
Application granted granted Critical
Publication of CN102045698B publication Critical patent/CN102045698B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

本发明实施例公开了一种获取终端信息的方法及装置,包括:如果DM服务器需要订阅终端的信息,检测所述终端是否为激活终端以及终端的启动状态;根据检测结果,向AAA服务器订阅终端信息时指示是否需要终端的启动信息,AAA服务器根据DM服务器的指示向该DM服务器发送终端信息;本发明实施例公开的方法及装置使得在某些场景中AAA服务器向DM服务器发送的终端信息中不包括终端启动信息,从而减少了消息的冗余,节约了资源。

The embodiment of the present invention discloses a method and device for obtaining terminal information, including: if the DM server needs to subscribe to terminal information, detect whether the terminal is an active terminal and the startup state of the terminal; according to the detection result, subscribe the terminal to the AAA server When the information indicates whether terminal startup information is needed, the AAA server sends terminal information to the DM server according to the instructions of the DM server; the method and device disclosed in the embodiments of the present invention enable the terminal information sent by the AAA server to the DM server in some scenarios Terminal startup information is not included, thereby reducing message redundancy and saving resources.

Description

一种获取终端信息的方法及装置A method and device for acquiring terminal information

技术领域technical field

本发明涉及无线通信领域,特别涉及一种获取终端信息的方法及装置。The invention relates to the field of wireless communication, in particular to a method and device for acquiring terminal information.

背景技术Background technique

空中下载技术(Over the Air,简称为OTA)作为一种与移动终端密切相关的空中上传和下载技术,正日益受到广泛关注,并且随着移动终端功能的不断完善,OTA技术也将越来越多地应用于移动业务中。Over the Air (OTA for short), as an over-the-air upload and download technology closely related to mobile terminals, is increasingly receiving widespread attention, and with the continuous improvement of mobile terminal functions, OTA technology will also become more and more popular. It is widely used in mobile services.

移动终端用户可以通过OTA技术实现数据上传和下载、安装各种应用程序、下载图片/铃声、升级固件等功能,OTA为移动终端的远程固件加载、信息上传等功能提供了技术保障,降低了运营维护和升级成本。Mobile terminal users can use OTA technology to upload and download data, install various applications, download pictures/ringtones, and upgrade firmware. OTA provides technical support for remote firmware loading and information uploading of mobile terminals, reducing operational costs. Maintenance and upgrade costs.

WiMAX NWG(WiMAX Network Group网络工作组)致力于OTA技术的标准研究工作,OTA网络结构如图1所示,OTA过程涉及的网元主要包括:WiMAX NWG (WiMAX Network Group Network Working Group) is committed to the standard research of OTA technology. The OTA network structure is shown in Figure 1. The network elements involved in the OTA process mainly include:

终端MS:用于接入网络的设备,包括但不限于手机,笔记本,PDA,CPE(CPE Customer Premise Equipment客户前提设备)等;Terminal MS: equipment used to access the network, including but not limited to mobile phones, notebooks, PDAs, CPE (CPE Customer Premise Equipment), etc.;

AAA服务器(认证、鉴权和计费服务器):主要用于对终端进行鉴权;AAA server (authentication, authentication and accounting server): mainly used to authenticate the terminal;

DM服务器(设备管理服务器,Device Management Sever):用于管理终端设备的服务器,现通用的管理协议包括:TR-069以及OMA等;DM server (Device Management Server, Device Management Sever): a server used to manage terminal devices, the current common management protocols include: TR-069 and OMA, etc.;

WIB服务器(WIMAX Initial Bootstrap,初始化启动服务器):用于向待配置的终端提供接入DM服务器必要的信息,如:登陆DM服务器的用户名以及密码等信息;以及WIB server (WIMAX Initial Bootstrap, initial startup server): used to provide the terminal to be configured with the necessary information to access the DM server, such as: the user name and password for logging in to the DM server; and

SPB(Service Provider Backoffice,后端设备):用于提供网络业务且存储终端的相关签约信息。SPB (Service Provider Backoffice, back-end equipment): used to provide network services and store relevant contract information of terminals.

其中WIB服务器可以与DM服务器位于相同或不同的物理网络实体。The WIB server and the DM server may be located in the same or different physical network entities.

终端管理是一个较大的课题,包括:终端的发放、基本参数配置、版本升级等;终端发放模式主要包括:Terminal management is a big topic, including: terminal distribution, basic parameter configuration, version upgrade, etc. The terminal distribution mode mainly includes:

定制终端:出场时即配置一些必要的终端信息以及运营商信息,甚至用户信息;根据配置信息多少,定制终端又分为激活终端和未激活终端,如果终端以及DM管理服务器保存的设备激活标志值(device activate flag)为TRUE,则该终端为已激活终端,如果终端以及设备管理服务器保存的设备激活标志值为FALSE,则该终端为未激活终端;激活终端不需要初始配置即可完成正常入网流程,如果终端需要更新配置,网络侧可以进一步对该终端进行持续配置;未激活终端需要进行初始配置才能正常入网。Customized terminal: Configure some necessary terminal information, operator information, and even user information when you leave the field; according to the amount of configuration information, customized terminals are divided into activated terminals and inactive terminals. If the terminal and the device activation flag value saved by the DM management server (device activate flag) is TRUE, the terminal is an activated terminal, if the device activation flag saved by the terminal and the device management server is FALSE, the terminal is an inactive terminal; an activated terminal can complete normal network access without initial configuration In the process, if the terminal needs to update the configuration, the network side can further configure the terminal continuously; inactive terminals need to perform initial configuration before they can access the network normally.

零售终端:出厂时相当于裸机,可能有一些基本的证书信息,但是还需要进行初始配置才能正常接入网络;Retail terminal: It is equivalent to a bare machine when it leaves the factory, and may have some basic certificate information, but it needs initial configuration to access the network normally;

机卡分离模式:一旦卡插到终端中,就类似定制终端。Machine-card separation mode: Once the card is inserted into the terminal, it is similar to a custom terminal.

终端的基本参数配置主要包括用户参数设置、以及网络参数以及终端参数配置;用户参数主要包括用户名和密码等,主要用于标识用户,可以通过用户与SPB进行签约获得,可以采用线下签约方式,也可以采用在终端上线后进行的线上签约方式;网络参数及终端参数的配置可以通过空中下载OTA技术来实现。The basic parameter configuration of the terminal mainly includes user parameter settings, network parameters, and terminal parameter configuration; user parameters mainly include user name and password, etc., which are mainly used to identify users, and can be obtained through signing contracts between users and SPB, and offline signing methods can be adopted. It is also possible to use the online signing method after the terminal goes online; the configuration of network parameters and terminal parameters can be realized through OTA technology.

目前,WiMAX NWG已经提出了基于OTA技术的终端初始配置流程及持续配置流程,对于未激活终端,需要进行OTA初始配置才可以正常入网,OTA初始配置流程主要包括:At present, WiMAX NWG has proposed the terminal initial configuration process and continuous configuration process based on OTA technology. For unactivated terminals, OTA initial configuration is required before they can access the network normally. The OTA initial configuration process mainly includes:

终端初始配置过程中,终端需要在网络鉴权消息中构造NAI并上报给AAA服务器,如果终端需要进行初始配置,即终端保存的设备激活标志值为FALSE,则终端构造NAI时,需要携带SM(service mode服务模式)=1,AAA服务器根据终端上报的服务模式信息(SM=1)确认该终端需要进行OTA初始配置,与终端建立初始的业务流以及IP连接,AAA服务器接收到来自ASN-GW的计费开始消息后,会发送终端信息通知消息送给DM服务器,该通知消息中包括终端信息,该终端信息主要包括:用于加密bootstrap信息的密钥信息BEK(启动加密密钥bootstrap encryption key),以及与启动相关的定时器timer,还可以包括终端其他的相关信息,如MS ID等;DM服务器接收后,向终端发送UDP Push(User Datagram Protocol,用户协议数据包推送)消息,该UDP Push消息含有终端的加密后的bootstrap信息,该bootstrap信息用于终端接入DM服务器,主要包括接入用户名、密码,以及DM服务器地址等,上述信息称为设备管理账户(DM_ACC)信息。如果终端获得了该UDP Push消息中的bootstrap信息,或者终端通过主动发起WIB发现过程获得了终端的bootstrap信息,会保存DM_ACC信息,并向DM服务器发送package#1消息,DM服务器收到package#1消息后,认为终端启动成功,便可对终端进行后续的配置过程,在配置过程中,DM服务器可根据需要订阅终端的信息,即DM服务器向AAA服务器发送设备状态请求消息,AAA服务器接收后,会向DM服务器发送终端信息通知消息,该通知消息中包括终端信息,该终端信息主要包括:密钥信息BEK,以及与启动相关的定时器timer,还可以包括终端其他的相关信息,如MS ID等。配置过程完成后,终端即转变为激活终端。配置结束后,终端退出网络,以后终端以新的配置参数入网。During the terminal initial configuration process, the terminal needs to construct the NAI in the network authentication message and report it to the AAA server. If the terminal needs to perform initial configuration, that is, the device activation flag value saved by the terminal is FALSE, the terminal needs to carry the SM ( service mode service mode)=1, the AAA server confirms that the terminal needs to perform OTA initial configuration according to the service mode information (SM=1) reported by the terminal, and establishes the initial service flow and IP connection with the terminal, and the AAA server receives the information from the ASN-GW After the billing start message, a terminal information notification message will be sent to the DM server. The notification message includes terminal information. The terminal information mainly includes: key information BEK (bootstrap encryption key) used to encrypt bootstrap information ), and the timer timer related to startup, and can also include other relevant information of the terminal, such as MS ID, etc.; after receiving it, the DM server sends a UDP Push (User Datagram Protocol, user protocol data packet push) message to the terminal, the UDP The Push message contains the encrypted bootstrap information of the terminal. The bootstrap information is used for the terminal to access the DM server, mainly including the access user name, password, and DM server address. The above information is called device management account (DM_ACC) information. If the terminal obtains the bootstrap information in the UDP Push message, or the terminal obtains the bootstrap information of the terminal by actively initiating the WIB discovery process, it will save the DM_ACC information and send the package#1 message to the DM server, and the DM server receives the package#1 After the message, it is considered that the terminal is successfully started, and the subsequent configuration process can be performed on the terminal. During the configuration process, the DM server can subscribe to the information of the terminal as needed, that is, the DM server sends a device status request message to the AAA server. After the AAA server receives it, A terminal information notification message will be sent to the DM server. The notification message includes terminal information. The terminal information mainly includes: key information BEK, and timer timer related to startup, and can also include other related information of the terminal, such as MS ID wait. After the configuration process is complete, the terminal becomes an active terminal. After the configuration is completed, the terminal exits the network, and then the terminal enters the network with new configuration parameters.

对于激活终端,不需要进行上述初始配置便可进行正式入网,如需要配置新的数据或参数,或需要对已存在的数据、参数进行替换,DM服务器可以直接对该终端进行配置,这种配置称为持续配置。For the activated terminal, it can be formally connected to the network without the above initial configuration. If new data or parameters need to be configured, or existing data and parameters need to be replaced, the DM server can directly configure the terminal. This configuration It's called continuous configuration.

激活终端不需要携带服务模式SM=1入网,就可以正常入网,故AAA服务器也不会在收到针对该终端计费开始消息后,主动将包含BEK等启动信息的终端信息发送到DM服务器。当需要对该终端进行持续配置时,DM服务器可根据需要主动订阅终端的信息,即DM服务器向AAA服务器发送设备状态请求消息,AAA服务器接收后,响应该请求消息,向DM服务器发送终端状态响应消息,该响应消息中包括终端信息,该终端信息主要包括:密钥信息BEK,以及与启动相关的定时器timer,还可以包括终端其他的相关信息,如MS ID等。The activated terminal does not need to carry service mode SM=1 to enter the network, and can normally access the network, so the AAA server will not actively send the terminal information including BEK and other activation information to the DM server after receiving the charging start message for the terminal. When continuous configuration of the terminal is required, the DM server can actively subscribe to the information of the terminal as needed, that is, the DM server sends a device status request message to the AAA server, and the AAA server responds to the request message and sends a terminal status response to the DM server message, the response message includes terminal information, the terminal information mainly includes: key information BEK, and timer timer related to startup, and can also include other related information of the terminal, such as MS ID, etc.

对于未激活终端经过了上述OTA初始配置而成为的激活终端,或者出厂时就已经完成激活的激活终端,网络侧都可以对其进行持续配置。The network side can perform continuous configuration on the activated terminal that becomes the activated terminal after the above-mentioned OTA initial configuration from the unactivated terminal, or the activated terminal that has been activated before leaving the factory.

两种激活终端的不同之处在于:The differences between the two activation terminals are:

经过了初始配置的激活终端,已经完成了启动过程,终端已经保存了设备管理账户(DM_ACC)信息,包括DM服务器的地址信息,登陆DM服务器的用户名与密码等;After the initial configuration of the activated terminal, the startup process has been completed, and the terminal has saved the device management account (DM_ACC) information, including the address information of the DM server, the user name and password for logging in to the DM server, etc.;

而出厂时就已经完成激活的激活终端,如果是第一次持续配置,则终端没有获得DM_ACC信息,DM服务器对该终端进行持续配置之前,需要先完成对该终端的启动流程,DM服务器需要向AAA服务器订阅终端的信息,所订阅终端信息中需要包括BEK等启动信息,以用于完成对bootstrap信息的加密。However, if the activation terminal has been activated before leaving the factory, if it is the first continuous configuration, the terminal does not obtain DM_ACC information. Before the DM server performs continuous configuration on the terminal, it needs to complete the startup process of the terminal. The AAA server subscribes to terminal information, and the subscribed terminal information needs to include startup information such as BEK to complete the encryption of bootstrap information.

通过上述描述可知,AAA服务器向DM服务器发送终端信息通知消息涉及的场景有:From the above description, it can be seen that the scenarios involved in sending the terminal information notification message from the AAA server to the DM server include:

1、需要进行OTA初始配置的未激活终端以SM=1上线,AAA服务器将终端信息通知消息发送给DM服务器,该终端信息通知消息中包括BEK等启动信息;对于该场景,携带BEK等启动信息是必须的,因为该终端需要进行初始配置,还没完成启动过程。1. An unactivated terminal that requires OTA initial configuration goes online with SM=1, and the AAA server sends a terminal information notification message to the DM server. The terminal information notification message includes BEK and other activation information; for this scenario, it carries BEK and other activation information is required because the terminal requires initial configuration and has not yet completed the boot process.

2、当DM服务器根据需要对终端信息进行订阅,向AAA服务器发送终端状态请求消息,AAA服务器对其进行响应,如果终端在线,向该DM服务器发送终端状态响应消息中携带终端信息;其中响应分为只响应一次,以及响应多次,现有技术中不管一次或多次,该终端状态响应消息携带的终端信息中都包括BEK等启动信息。2. When the DM server subscribes to terminal information as needed, it sends a terminal status request message to the AAA server, and the AAA server responds to it. If the terminal is online, it sends a terminal status response message to the DM server that carries terminal information; In order to respond only once, or to respond multiple times, in the prior art, no matter once or multiple times, the terminal information carried in the terminal status response message includes startup information such as BEK.

但对于场景2,But for scenario 2,

当DM服务器根据需要订阅已完成初始配置过程的激活终端的信息时,若AAA服务器收到DM服务器发送的终端信息请求消息时,如果终端在线,AAA服务器对DM服务器关于状态请求消息的终端状态响应消息中,是不需要携带BEK信息的,也不需要定时器timer等启动信息,因为对于此类终端,之前终端携带SM=1入网时,AAA服务器已经将BEK信息及定时器timer等启动信息发送给DM服务器;此后的过程,DM服务器不再需要BEK等启动信息;When the DM server subscribes to the information of the activated terminal that has completed the initial configuration process as needed, if the AAA server receives the terminal information request message sent by the DM server, if the terminal is online, the AAA server responds to the terminal status of the DM server about the status request message In the message, there is no need to carry BEK information, nor does it need to start information such as timer timer, because for this type of terminal, when the terminal carries SM=1 before entering the network, the AAA server has sent BEK information and timer start information such as to the DM server; in the subsequent process, the DM server no longer needs BEK and other startup information;

当DM服务器需要订阅未激活终端的信息时,若AAA服务器收到DM服务器发送的终端状态请求消息时,终端还没有入网,需要携带SM=1经过初始配置才能入网,AAA服务器对DM服务器发送的终端状态响应消息中,也不需要携带BEK信息及timer等启动信息,因为对于此类终端,AAA服务器在收到来自终端的SM=1指示后,会主动将BEK及timer等启动信息发送给DM服务器。When the DM server needs to subscribe to the information of the unactivated terminal, if the AAA server receives the terminal status request message sent by the DM server, the terminal has not yet connected to the network, and needs to carry SM=1 to enter the network after initial configuration. In the terminal status response message, there is no need to carry BEK information and timer and other activation information, because for this type of terminal, the AAA server will actively send BEK and timer and other activation information to the DM after receiving the SM=1 instruction from the terminal. server.

但若终端为激活终端,终端在入网时,不会向AAA服务器上报SM=1,AAA服务器不会主动将BEK等启动信息通知DM服务器,当DM服务器对该终端进行启动过程之前,DM服务器向AAA服务器发送终端状态请求消息来订阅终端信息,AAA服务器响应该请求消息,向DM服务器发送的终端状态响应消息中,是需要携带BEK等启动信息的,但也仅仅是第一次响应消息中需要携带,如果需要响应多次,对于后续的响应消息则也不需要携带BEK等启动信息。However, if the terminal is an active terminal, the terminal will not report SM=1 to the AAA server when the terminal is connected to the network, and the AAA server will not actively notify the DM server of activation information such as BEK. Before the DM server starts the terminal, the DM server sends The AAA server sends a terminal status request message to subscribe to terminal information, and the AAA server responds to the request message. The terminal status response message sent to the DM server needs to carry BEK and other activation information, but it is only required in the first response message. Carry, if it needs to respond multiple times, it is not necessary to carry start information such as BEK for subsequent response messages.

针对上述两种场景,现有技术中,不管在什么情况下,如果DM服务器向AAA服务器订阅终端信息,AAA服务器向DM服务器发送的终端信息都包括与BEK及timer等启动信息,而没有加以区别,造成终端信息通知消息的冗余,浪费了系统资源。In view of the above two scenarios, in the prior art, no matter under what circumstances, if the DM server subscribes terminal information to the AAA server, the terminal information sent by the AAA server to the DM server includes startup information such as BEK and timer, without distinction , resulting in redundancy of terminal information notification messages, wasting system resources.

发明内容Contents of the invention

本发明实施例提供了一种获取终端信息的方法及装置,以使得DM服务器可以根据不同的场景获取不同的终端信息,减少终端信息的冗余。Embodiments of the present invention provide a method and device for acquiring terminal information, so that a DM server can acquire different terminal information according to different scenarios, and reduce redundancy of terminal information.

一种获取终端信息的方法,该方法包括:A method for acquiring terminal information, the method comprising:

如果设备管理DM服务器需要订阅终端的信息,检测所述终端是否为激活终端以及终端的启动状态;If the device management DM server needs to subscribe to terminal information, detect whether the terminal is an active terminal and the startup state of the terminal;

若所述终端为激活终端,并且所述终端未启动,则向认证、鉴权和计费AAA服务器发送新设备状态请求NewDeviceStatusRequest消息;或,所述终端为激活终端,并且所述终端已启动,或,所述终端为未激活终端,则向AAA服务器发送设备状态请求DeviceStatusRequest消息;If the terminal is an activated terminal, and the terminal is not started, then send a new device status request NewDeviceStatusRequest message to the authentication, authentication and accounting AAA server; or, the terminal is an activated terminal, and the terminal has been started, Or, if the terminal is an inactive terminal, send a device status request DeviceStatusRequest message to the AAA server;

如果DM服务器向AAA服务器发送的为NewDeviceStatusRequest消息,则所述DM服务器接收来自所述AAA服务器的NewDeviceStatusResponse消息,所述NewDeviceStatusResponse消息中包括终端信息,该终端信息包括终端的启动信息;或If the DM server sends a NewDeviceStatusRequest message to the AAA server, the DM server receives a NewDeviceStatusResponse message from the AAA server, the NewDeviceStatusResponse message includes terminal information, and the terminal information includes terminal startup information; or

如果DM服务器向AAA服务器发送的为DeviceStatusRequest消息,则所述DM服务器接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息不包括终端的启动信息。If the DM server sends a DeviceStatusRequest message to the AAA server, the DM server receives a DeviceStatusResponse message from the AAA server, the DeviceStatusResponse message includes terminal information, and the terminal information does not include terminal startup information.

一种获取终端信息的方法,包括:A method for obtaining terminal information, comprising:

如果DM服务器需要订阅终端的信息,检测所述终端是否为激活终端以及终端的启动状态;If the DM server needs to subscribe to the information of the terminal, detect whether the terminal is an active terminal and the startup state of the terminal;

若所述终端为激活终端,并且终端未启动,则向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中携带requesttype=need bootstrap;或,所述终端为激活终端,并且所述终端已启动,或,所述终端为未激活终端,则向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中不携带request type=need bootstrap;If the terminal is an activated terminal, and the terminal is not started, then send a DeviceStatusRequest message to the AAA server, and the DeviceStatusRequest message carries requesttype=need bootstrap; or, the terminal is an activated terminal, and the terminal has been started, or, the If the above-mentioned terminal is an inactivated terminal, then send a DeviceStatusRequest message to the AAA server, which does not carry request type=need bootstrap in the DeviceStatusRequest message;

如果DM服务器向AAA服务器发送的DeviceStatusRequest消息中携带request type=need bootstrap,则所述DM服务器接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息包括终端的启动信息;或If the DeviceStatusRequest message sent by the DM server to the AAA server carries request type=need bootstrap, then the DM server receives the DeviceStatusResponse message from the AAA server, the DeviceStatusResponse message includes terminal information, and the terminal information includes terminal startup information ;or

如果DM服务器向AAA服务器发送的DeviceStatusRequest消息中不携带request type=need bootstrap,则所述DM服务器接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息不包括终端的启动信息。If the DeviceStatusRequest message sent by the DM server to the AAA server does not carry request type=need bootstrap, the DM server receives the DeviceStatusResponse message from the AAA server, the DeviceStatusResponse message includes terminal information, and the terminal information does not include the terminal information. Startup information.

一种获取终端信息的方法,包括:A method for obtaining terminal information, comprising:

如果DM服务器需要订阅终端的信息,检测所述终端是否为激活终端以及终端的启动状态;If the DM server needs to subscribe to the information of the terminal, detect whether the terminal is an active terminal and the startup state of the terminal;

若所述终端为激活终端,并且终端未启动,则向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中携带report type=onetime;或,所述终端为激活终端,并且所述终端已启动,或,所述终端为未激活终端,则向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中所携带的report type值根据需要来设置;If the terminal is an activated terminal, and the terminal is not started, then send a DeviceStatusRequest message to the AAA server, and the DeviceStatusRequest message carries report type=onetime; or, the terminal is an activated terminal, and the terminal has been started, or, the If the terminal is an inactivated terminal, then send a DeviceStatusRequest message to the AAA server, and the report type value carried in the DeviceStatusRequest message is set as required;

如果DM服务器向AAA服务器发送的DeviceStatusRequest消息中携带report type=one time,则所述DM服务器接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息包括终端的启动信息;或If the DeviceStatusRequest message sent by the DM server to the AAA server carries report type=one time, then the DM server receives the DeviceStatusResponse message from the AAA server, the DeviceStatusResponse message includes terminal information, and the terminal information includes terminal startup information ;or

如果DM服务器向AAA服务器发送的DeviceStatusRequest消息中携带report type的值不为one time,则所述DM服务器接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息不包括终端的启动信息。If the value of report type carried in the DeviceStatusRequest message sent by the DM server to the AAA server is not one time, the DM server receives the DeviceStatusResponse message from the AAA server, and the DeviceStatusResponse message includes terminal information, which does not include Startup information for the terminal.

一种DM服务器,包括:A DM server, comprising:

检测模块:当DM服务器需要订阅终端的信息时,用于检测所述终端是否为激活终端以及终端的启动状态;Detection module: when the DM server needs to subscribe to terminal information, it is used to detect whether the terminal is an active terminal and the startup state of the terminal;

发送模块:若所述终端为激活终端,并且所述终端未启动,用于向AAA服务器发送NewDeviceStatusRequest消息;或,所述终端为激活终端,并且所述终端已启动,或,所述终端为未激活终端,用于向AAA服务器发送DeviceStatusRequest消息;Sending module: if the terminal is an activated terminal and the terminal is not started, it is used to send a NewDeviceStatusRequest message to the AAA server; or, the terminal is an activated terminal and the terminal has been started, or the terminal is not started Activate the terminal for sending a DeviceStatusRequest message to the AAA server;

接收模块:如果所述发送模块向AAA服务器发送的为NewDeviceStatusRequest消息,用于接收来自所述AAA服务器的NewDeviceStatusResponse消息,所述NewDeviceStatusResponse消息中包括终端信息,该终端信息包括终端的启动信息;或Receiving module: if the sending module sends a NewDeviceStatusRequest message to the AAA server, it is used to receive a NewDeviceStatusResponse message from the AAA server, the NewDeviceStatusResponse message includes terminal information, and the terminal information includes terminal startup information; or

如果所述发送模块向AAA服务器发送的为DeviceStatusRequest消息,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息不包括终端的启动信息。If the sending module sends a DeviceStatusRequest message to the AAA server to receive a DeviceStatusResponse message from the AAA server, the DeviceStatusResponse message includes terminal information, and the terminal information does not include terminal startup information.

一种DM服务器,包括:A DM server, comprising:

检测模块:当DM服务器需要订阅终端的信息时,用于检测所述终端是否为激活终端以及终端的启动状态;Detection module: when the DM server needs to subscribe to terminal information, it is used to detect whether the terminal is an active terminal and the startup state of the terminal;

发送模块:若所述终端为激活终端,并且终端未启动,用于向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中携带request type=need bootstrap;或,所述终端为激活终端,并且所述终端已启动,或,所述终端为未激活终端,用于向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中不携带request type=need bootstrap;Sending module: if the terminal is an activated terminal, and the terminal is not started, it is used to send a DeviceStatusRequest message to the AAA server, and the DeviceStatusRequest message carries request type=need bootstrap; or, the terminal is an activated terminal, and the terminal has Start, or, the terminal is an inactive terminal, and is used to send a DeviceStatusRequest message to the AAA server, and the DeviceStatusRequest message does not carry request type=need bootstrap;

接收模块:如果所述发送模块向AAA服务器发送的DeviceStatusRequest消息中携带request type=need bootstrap,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息包括终端的启动信息;或Receiving module: if the DeviceStatusRequest message sent by the sending module to the AAA server carries request type=need bootstrap, it is used to receive the DeviceStatusResponse message from the AAA server, and the DeviceStatusResponse message includes terminal information, and the terminal information includes terminal information. activation information; or

如果所述发送模块向AAA服务器发送的DeviceStatusRequest消息中不携带request type=need bootstrap,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息不包括终端的启动信息。If the DeviceStatusRequest message sent by the sending module to the AAA server does not carry request type=need bootstrap, it is used to receive the DeviceStatusResponse message from the AAA server, and the DeviceStatusResponse message includes terminal information, and the terminal information does not include terminal startup information.

一种DM服务器,包括:A DM server, comprising:

检测模块:当DM服务器需要订阅终端的信息时,用于检测所述终端是否为激活终端以及终端的启动状态;Detection module: when the DM server needs to subscribe to terminal information, it is used to detect whether the terminal is an active terminal and the startup state of the terminal;

发送模块:若所述终端为激活终端,并且终端未启动,用于向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中携带reporttype=one time;或,所述终端为激活终端,并且所述终端已启动,或,所述终端为未激活终端,用于向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中的report type值根据需要来设置;Sending module: if the terminal is an activated terminal, and the terminal is not started, it is used to send a DeviceStatusRequest message to the AAA server, and the DeviceStatusRequest message carries reporttype=one time; or, the terminal is an activated terminal, and the terminal has been started , or, the terminal is an inactive terminal, and is used to send a DeviceStatusRequest message to the AAA server, and the report type value in the DeviceStatusRequest message is set as required;

接收模块:如果所述发送模块向AAA服务器发送的DeviceStatusRequest消息中携带report type=one time,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息包括终端的启动信息;或Receiving module: if the DeviceStatusRequest message sent by the sending module to the AAA server carries report type=one time, it is used to receive the DeviceStatusResponse message from the AAA server, and the DeviceStatusResponse message includes terminal information, and the terminal information includes terminal information. activation information; or

如果所述发送模块向AAA服务器发送的DeviceStatusRequest消息中携带report type的值不为one time,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息不包括终端的启动信息。If the value of report type carried in the DeviceStatusRequest message sent by the sending module to the AAA server is not one time, it is used to receive the DeviceStatusResponse message from the AAA server, and the DeviceStatusResponse message includes terminal information, and the terminal information does not include the terminal startup information.

本发明实施例公开的方法及装置,如果DM服务器需要订阅终端的信息,检测所述终端是否为激活终端以及终端的启动状态;根据检测结果,向AAA服务器订阅终端信息时指示是否需要终端的启动信息,AAA服务器根据DM服务器的指示向该DM服务器发送终端信息;使得在某些场景中AAA服务器向DM服务器发送的终端信息中不包括终端启动信息,从而减少了消息的冗余,节约了资源。In the method and device disclosed in the embodiments of the present invention, if the DM server needs to subscribe to terminal information, it detects whether the terminal is an active terminal and the startup state of the terminal; according to the detection result, when subscribing terminal information to the AAA server, it indicates whether the startup of the terminal is required Information, the AAA server sends terminal information to the DM server according to the instructions of the DM server; in some scenarios, the terminal information sent by the AAA server to the DM server does not include terminal startup information, thereby reducing message redundancy and saving resources .

附图说明Description of drawings

图1为现有技术中WIMAX系统中OTA网络结构示意图;FIG. 1 is a schematic diagram of an OTA network structure in a WIMAX system in the prior art;

图2为本发明实施例获取终端信息的方法流程图;FIG. 2 is a flowchart of a method for acquiring terminal information according to an embodiment of the present invention;

图3为本发明另一实施例获取终端信息的方法流程图;FIG. 3 is a flowchart of a method for acquiring terminal information according to another embodiment of the present invention;

图4为本发明另一实施例获取终端信息的方法流程图;FIG. 4 is a flowchart of a method for acquiring terminal information according to another embodiment of the present invention;

图5为本发明实施例获取终端信息的装置示意图;FIG. 5 is a schematic diagram of an apparatus for acquiring terminal information according to an embodiment of the present invention;

具体实施方式Detailed ways

为使本发明的目的、技术手段和优点更加清楚明白,以下结合附图并举实施例对本发明进行详细说明。In order to make the purpose, technical means and advantages of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and examples.

本发明实施例公开了一种获取终端信息的方法及装置,当DM服务器需要向AAA服务器订阅终端信息时,通过根据不同场景,对AAA服务器向DM服务器发送的终端状态响应消息是否携带BEK等启动信息进行区别,只有当需要对已激活,但没有保存DM_Acc信息的终端进行持续配置的场景,AAA服务器向DM服务器发送的终端状态响应消息才携带BEK等启动信息,在其它的场景中,AAA服务器向DM服务器发送的终端状态响应消息都不携带BEK等启动信息,通过区分场景,让AAA服务器发送给DM服务器的终端状态响应消息冗余减少,节约系统资源。The embodiment of the present invention discloses a method and device for obtaining terminal information. When the DM server needs to subscribe terminal information to the AAA server, it is activated according to different scenarios whether the terminal status response message sent by the AAA server to the DM server carries BEK or not. Only when it is necessary to continuously configure the terminal that has been activated but does not save DM_Acc information, the terminal status response message sent by the AAA server to the DM server carries startup information such as BEK. In other scenarios, the AAA server The terminal status response message sent to the DM server does not carry startup information such as BEK. By distinguishing scenarios, the redundancy of the terminal status response message sent by the AAA server to the DM server is reduced, saving system resources.

本实施例中,如果DM服务器需要订阅终端的信息,检测所述终端是否为激活终端以及终端的启动状态;根据检测结果,向AAA服务器订阅终端信息时指示是否需要终端的启动信息,AAA服务器根据DM服务器的指示向该DM服务器发送终端信息;本发明实施例公开的方法及装置使得在某些场景中AAA服务器向DM服务器发送的终端信息中不包括终端启动信息,从而减少了消息的冗余,节约了资源。In this embodiment, if the DM server needs to subscribe to the information of the terminal, it detects whether the terminal is an active terminal and the startup state of the terminal; according to the detection result, when subscribing the terminal information to the AAA server, it indicates whether the startup information of the terminal is needed, and the AAA server according to The DM server indicates to send terminal information to the DM server; the method and device disclosed in the embodiments of the present invention make the terminal information sent by the AAA server to the DM server in some scenarios not include terminal activation information, thereby reducing message redundancy , saving resources.

以下结合具体实施例及流程图对上述方法进行说明。The above method will be described below in conjunction with specific embodiments and flow charts.

实施例一Embodiment one

在该实施例中,当DM服务器需要向AAA服务器订阅终端信息时,DM服务器先检测终端状态,如果终端为已经激活的终端,并且终端未执行启动流程,即没有保存DM_Acc信息,则DM服务器需要向AAA服务器订阅终端信息时,向AAA服务器指示,需要BEK等启动相关的信息;如果终端不处于上述状态,则DM服务器向AAA服务器指示不需要BEK等启动相关的信息;In this embodiment, when the DM server needs to subscribe terminal information to the AAA server, the DM server first detects the terminal status. If the terminal is an activated terminal, and the terminal does not execute the startup process, that is, the DM_Acc information is not saved, the DM server needs to When subscribing terminal information to the AAA server, indicate to the AAA server that information related to activation such as BEK is required; if the terminal is not in the above state, the DM server indicates to the AAA server that information related to activation such as BEK is not required;

DM服务器通过区别于现有订阅消息的一条新的消息来指示其是否需要BEK等启动信息,针对需要BEK的场景,本实施例中定义该消息名称为:新的设备状态请求消息NewDeviceStatusRequest,该消息中携带有终端标识MSID,另外还可以携带请求消息的有效时长lifetime,可在该有效时间内AAA服务器对该请求消息进行响应;其所对应的响应消息为:新的设备状态响应消息NewDeviceStatusResponse,并且该响应消息中携带有BEK等启动信息;针对不需要BEK等启动的场景,本实施例中仍然采用现有的消息,其名称为:设备状态请求消息DeviceStatusRequest,该消息携带有终端标识MSID,另外还可以携带请求消息的有效时长lifetime,在该有效时间内AAA服务器对该请求消息进行响应;其所对应的响应消息和现有的响应消息相同,其名称为:设备状态响应消息DeviceStatusResponse,但响应消息中不携带有BEK等启动信息;The DM server indicates whether it needs startup information such as BEK through a new message that is different from the existing subscription message. For scenarios that require BEK, the name of the message is defined in this embodiment as: a new device status request message NewDeviceStatusRequest, the message carries the terminal identification MSID, and may also carry the valid duration lifetime of the request message, and the AAA server may respond to the request message within the valid time; the corresponding response message is: the new device status response message NewDeviceStatusResponse, and The response message carries startup information such as BEK; for scenarios that do not require startup such as BEK, the existing message is still used in this embodiment, and its name is: device status request message DeviceStatusRequest, which carries the terminal identification MSID. It can also carry the valid duration lifetime of the request message, and the AAA server responds to the request message within the valid time; the corresponding response message is the same as the existing response message, and its name is: Device Status Response Message DeviceStatusResponse, but the response The message does not carry BEK and other activation information;

参考图2,本发明实施例公开的获取终端信息的方法包括:Referring to Fig. 2, the method for obtaining terminal information disclosed in the embodiment of the present invention includes:

步骤101,如果DM服务器需要向AAA服务器订阅终端的信息,则DM服务器检测该终端是否为激活终端,以及终端的启动状态;Step 101, if the DM server needs to subscribe the information of the terminal to the AAA server, then the DM server detects whether the terminal is an active terminal, and the startup state of the terminal;

DM服务器需要向AAA服务器订阅终端信息的原因可以因外界条件触发或因配置需要而触发,例如:DM服务器收到SPB发送的配置请求,或者其他的终端管理原因,例如:在配置过程中,DM服务器为了确认终端是否为在线状态,而向AAA服务器发起终端状态请求消息,该触发条件为现有技术,不再详述。The reason why the DM server needs to subscribe terminal information to the AAA server can be triggered by external conditions or configuration needs, for example: the DM server receives the configuration request sent by the SPB, or other terminal management reasons, for example: during the configuration process, the DM In order to confirm whether the terminal is in the online state, the server sends a terminal status request message to the AAA server. The trigger condition is the prior art and will not be described in detail.

步骤102、如果DM服务器检测到终端为激活终端,并且未执行启动过程,即DM服务器检测到DM服务器保存的设备激活标志值device activate flag为TRUE,并且该终端未启动,即DM服务器保存的终端的启动方法标识bootstrapmethod flag为null,则DM服务器向AAA服务器发送NewDeviceStatusRequest,表示需要终端的启动信息,如BEK,还可以包括启动定时器timer等启动信息;另外,还可以携带AAA回复响应消息的有效时间lifetime,以使得的AAA服务器在有效时间内响应。Step 102, if the DM server detects that the terminal is an activated terminal and does not execute the startup process, that is, the DM server detects that the device activation flag value device activate flag saved by the DM server is TRUE, and the terminal is not started, that is, the terminal saved by the DM server If the bootstrapmethod flag of the bootstrapmethod flag is null, the DM server sends a NewDeviceStatusRequest to the AAA server, indicating that the startup information of the terminal is required, such as BEK, and can also include startup information such as the startup timer timer; in addition, it can also carry the valid Time lifetime, so that the AAA server responds within the valid time.

如果DM服务器检测到终端不符合上述条件,即不符合终端为激活终端,并且未执行启动过程的条件,则DM服务器向AAA服务器发送DeviceStatusRequest,表示不需要终端的启动信息。If the DM server detects that the terminal does not meet the above conditions, that is, it does not meet the conditions that the terminal is an active terminal and does not perform the start-up process, the DM server sends a DeviceStatusRequest to the AAA server, indicating that the start-up information of the terminal is not required.

步骤103、如果AAA服务器接收到NewDeviceStatusRequest消息,则向DM服务器回复NewDeviceStatusResponse消息,该响应消息中携带BEK信息,还可以包括timer和其它启动信息,另外还可以携带其他终端信息。Step 103: If the AAA server receives the NewDeviceStatusRequest message, it replies to the DM server with a NewDeviceStatusResponse message. The response message carries BEK information, and may also include timer and other startup information, and may also carry other terminal information.

如果AAA服务器接收到DeviceStatusRequest消息,则向DM服务器回复DeviceStatusResponse消息,该响应消息中携带有终端其他相关信息,但不携带BEK、timer以及其他启动相关信息;即该响应消息中携带除启动信息之外的终端信息。If the AAA server receives the DeviceStatusRequest message, it will reply the DeviceStatusResponse message to the DM server. The response message carries other relevant information of the terminal, but does not carry BEK, timer and other startup-related information; that is, the response message carries information other than startup information. terminal information.

如果NewDeviceStatusRequest或DeviceStatusRequest中携带了有效时间lifetime,则AAA服务器需要在有效时间内响应。If NewDeviceStatusRequest or DeviceStatusRequest carries a valid time lifetime, the AAA server needs to respond within the valid time.

上述实施例中,在不同的场景中,通过向AAA服务器发送不同的消息,来指示是否需要BEK等启动信息,使得在某些场景中AAA服务器发送的终端信息中不包括BEK等启动信息,从而减少了消息的冗余,节约了资源。In the above embodiment, in different scenarios, different messages are sent to the AAA server to indicate whether activation information such as BEK is required, so that in some scenarios, the terminal information sent by the AAA server does not include activation information such as BEK, so that Redundancy of messages is reduced and resources are saved.

实施例二Embodiment two

本实施例与实施例一不同的是,本实施例不改变现有消息的名称,当DM服务器需要订阅终端信息时,在发送给AAA服务器的现有的终端状态请求消息中携带订阅类型,指示是否需要BEK等启动信息。The difference between this embodiment and Embodiment 1 is that this embodiment does not change the name of the existing message. When the DM server needs to subscribe to terminal information, the subscription type is carried in the existing terminal status request message sent to the AAA server, indicating Whether startup information such as BEK is required.

参考图3,本发明实施例公开的获取终端信息的方法包括:Referring to FIG. 3, the method for acquiring terminal information disclosed in the embodiment of the present invention includes:

步骤201,如果DM服务器需要向AAA服务器订阅终端的信息,则DM服务器检测终端是否为激活终端,以及终端的启动状态;Step 201, if the DM server needs to subscribe the information of the terminal to the AAA server, the DM server detects whether the terminal is an active terminal and the startup state of the terminal;

该步骤和实施例一中步骤101类似,不再详述。This step is similar to step 101 in Embodiment 1 and will not be described in detail.

步骤202、如果DM服务器检测到终端为激活终端,并且未执行启动过程,即DM服务器检测到DM服务器保存的设备激活标志值device activate flag为TRUE,并且终端未启动,即DM服务器保存的终端的启动方法标识bootstrapmethod flag为null,则DM服务器向AAA服务器发送DeviceStatusRequest,该消息中携带终端的MS ID,并且该消息中还携带request type=need bootstrap,表示需要终端的启动信息。如BEK,还可以包括启动定时器timer等启动信息;另外,还可以携带AAA回复响应消息的有效时间lifetime。Step 202, if the DM server detects that the terminal is an activated terminal, and does not execute the activation process, that is, the DM server detects that the device activation flag value device activate flag saved by the DM server is TRUE, and the terminal is not activated, that is, the terminal's value saved by the DM server is TRUE. If the bootstrap method flag is null, the DM server sends a DeviceStatusRequest to the AAA server. The message carries the MS ID of the terminal, and the message also carries request type=need bootstrap, indicating that the bootstrap information of the terminal is needed. For example, the BEK may also include activation information such as the activation timer timer; in addition, it may also carry the valid time lifetime of the AAA reply response message.

如果DM服务器检测到终端不符合上述条件,即不符合终端为激活终端,并且未执行启动过程的条件,则DM服务器向AAA服务器发送DeviceStatusRequest消息,并且该请求消息中不携带request type=needbootstrap,表示不需要终端的启动信息。If the DM server detects that the terminal does not meet the above conditions, that is, it does not meet the conditions that the terminal is an active terminal and does not perform the bootstrap process, the DM server sends a DeviceStatusRequest message to the AAA server, and the request message does not carry request type=needbootstrap, indicating that No startup information for the terminal is required.

步骤203、如果AAA服务器接收到DeviceStatusRequest消息,该请求消息中携带request type=need bootstrap,则向DM服务器回复DeviceStatusResponse消息,该响应消息中携带BEK信息,还可以包括timer和其它启动相关信息,另外还可以携带其他终端信息。Step 203, if the AAA server receives the DeviceStatusRequest message, carrying request type=need bootstrap in the request message, then replying the DeviceStatusResponse message to the DM server, carrying the BEK information in the response message, and can also include timer and other startup related information, in addition Other terminal information can be carried.

如果AAA服务器接收到DeviceStatusRequest消息,并且该消息中不携带request type=need bootstrap,则向DM服务器回复DeviceStatusResponse消息,该响应消息中携带有终端其他相关信息,但不携带BEK、timer以及其他启动相关信息。If the AAA server receives the DeviceStatusRequest message, and the message does not carry request type=need bootstrap, it will reply the DeviceStatusResponse message to the DM server. The response message carries other relevant information of the terminal, but does not carry BEK, timer and other startup-related information .

上述实施例中,在不同的场景中,通过向AAA服务器发送的请求消息是否携带需要启动信息的指示,来指示是否需要BEK等启动信息,使得在某些场景中AAA服务器发送的终端信息中不包括BEK等启动信息,从而减少了消息的冗余,节约了资源。In the above embodiments, in different scenarios, whether the request message sent to the AAA server carries an indication of the need for startup information is used to indicate whether startup information such as BEK is required, so that in some scenarios, the terminal information sent by the AAA server does not include Start information such as BEK is included, thereby reducing message redundancy and saving resources.

实施例三Embodiment three

与上述实施例不同的是,本实施例不改变现有消息的名称,在DM服务器需要订阅终端信息时,发送给AAA服务器的现有的终端状态订阅消息中携带报告的次数,指示是否需要BEK等启动信息。Different from the above embodiment, this embodiment does not change the name of the existing message. When the DM server needs to subscribe to terminal information, the existing terminal status subscription message sent to the AAA server carries the number of reports, indicating whether BEK is required Wait for the startup information.

参考图4,本发明实施例公开的获取终端信息的方法包括:Referring to FIG. 4, the method for obtaining terminal information disclosed in the embodiment of the present invention includes:

步骤301,如果DM服务器需要向AAA服务器订阅终端的信息,则DM服务器检测终端是否为激活终端,以及终端的启动状态;Step 301, if the DM server needs to subscribe the information of the terminal to the AAA server, the DM server detects whether the terminal is an active terminal and the startup state of the terminal;

该步骤和实施例一中步骤101类似,不再详述。This step is similar to step 101 in Embodiment 1 and will not be described in detail.

步骤302、如果DM服务器检测到终端为激活终端,并且未执行启动过程,即DM服务器检测到DM服务器保存的设备激活标志值device activate flag为TRUE,并且终端未启动,即DM服务器保存的终端的启动方法标识bootstrapmethod flag为null,则DM服务器向AAA服务器发送DeviceStatusRequest,该消息中携带终端的MS ID,并且该消息中还携带report type=one time,表示需要终端的启动信息。如BEK,还可以包括启动定时器timer等启动信息;另外,现有技术中还表示只要求AAA服务器响应一次终端状态响应消息。Step 302, if the DM server detects that the terminal is an activated terminal and does not execute the start-up process, that is, the DM server detects that the device activation flag value device activate flag saved by the DM server is TRUE, and the terminal is not started, that is, the terminal's value saved by the DM server is TRUE. If the bootstrapmethod flag is null, the DM server sends a DeviceStatusRequest to the AAA server. The message carries the MS ID of the terminal, and the message also carries report type=one time, indicating that the startup information of the terminal is required. For example, the BEK may also include startup information such as the startup timer timer; in addition, the prior art also indicates that the AAA server is only required to respond to the terminal status response message once.

如果DM服务器检测到终端不符合上述条件,即不符合终端为激活终端,并且未执行启动过程的条件,则DM服务器向AAA服务器发送DeviceStatusRequest消息,并且该请求消息中不限定report type的值,即,该DeviceStatusRequest消息中的report type值可以为one time或其他值,完全根据需要来设置;如果report type的值不是one time,表示不需要终端的启动信息,但DM服务器也可因其他原因考虑将report type设置为one time。If the DM server detects that the terminal does not meet the above conditions, that is, it does not meet the conditions that the terminal is an active terminal and does not perform the startup process, the DM server sends a DeviceStatusRequest message to the AAA server, and the value of report type is not limited in the request message, that is, , the value of report type in the DeviceStatusRequest message can be one time or other values, which can be set completely according to the needs; if the value of report type is not one time, it means that the startup information of the terminal is not needed, but the DM server can also consider setting the The report type is set to one time.

303、如果AAA服务器接收到DeviceStatusRequest消息,该请求消息中携带report type=one time,则向DM服务器回复DeviceStatusResponse消息,该响应消息中携带BEK信息,还可以包括timer和其它启动相关信息,另外还可以携带其他终端信息。303. If the AAA server receives the DeviceStatusRequest message, and the request message carries report type=one time, it replies to the DM server with a DeviceStatusResponse message. The response message carries BEK information, and may also include timer and other startup-related information. In addition, it may also Carry other terminal information.

如果AAA服务器接收到DeviceStatusRequest消息,并且该请求消息中携带report type值不为one time,则向DM服务器回复DeviceStatusResponse消息,该响应消息中携带有终端其他相关信息,但不携带BEK、timer以及其他启动相关信息。If the AAA server receives the DeviceStatusRequest message, and the report type value carried in the request message is not one time, it will reply the DeviceStatusResponse message to the DM server. The response message carries other relevant information of the terminal, but does not carry BEK, timer and other activation Related Information.

上述实施例中,在不同的场景中,通过向AAA服务器发送的请求消息是携带的响应次数,来指示是否需要BEK等启动信息,使得在某些场景中AAA服务器发送的终端信息中不包括BEK等启动信息,从而减少了消息的冗余,节约了资源。尽管有些场景下不需要终端的启动信息,但DM服务器也可因其他原因考虑将report type设置为one time,从而收到的终端信息中包括启动信息,但这种场景较少,并且report type本身也是现有请求消息中的字段,仅仅在本实施例中赋予了新的含义,对现有的消息没有改动,应用更加简单。In the above embodiments, in different scenarios, the number of responses carried in the request message sent to the AAA server indicates whether BEK and other activation information is required, so that in some scenarios, the terminal information sent by the AAA server does not include BEK Wait for startup information, thereby reducing message redundancy and saving resources. Although the startup information of the terminal is not required in some scenarios, the DM server can also consider setting the report type to one time for other reasons, so that the received terminal information includes the startup information, but this kind of scenario is rare, and the report type itself It is also a field in the existing request message, only given a new meaning in this embodiment, no change to the existing message, and the application is simpler.

实施例四Embodiment four

针对实施例一,本发明实施例还公开了一种获取终端信息的装置,参考图5:For the first embodiment, the embodiment of the present invention also discloses a device for obtaining terminal information, refer to Figure 5:

一种DM服务器,包括:A DM server, comprising:

检测模块:当DM服务器需要订阅终端的信息时,用于检测所述终端是否为激活终端以及终端的启动状态;Detection module: when the DM server needs to subscribe to terminal information, it is used to detect whether the terminal is an active terminal and the startup state of the terminal;

发送模块:若所述终端为激活终端,并且所述终端未启动,用于向AAA服务器发送NewDeviceStatusRequest消息;或,如果所述终端不满足上述条件,用于向AAA服务器发送DeviceStatusRequest消息;Sending module: if the terminal is an activated terminal and the terminal is not started, it is used to send a NewDeviceStatusRequest message to the AAA server; or, if the terminal does not meet the above conditions, it is used to send a DeviceStatusRequest message to the AAA server;

接收模块:如果所述发送模块向AAA服务器发送的为NewDeviceStatusRequest消息,用于接收来自所述AAA服务器的NewDeviceStatusResponse消息,所述NewDeviceStatusResponse消息中包括终端信息,该终端信息包括终端的启动信息;或Receiving module: if the sending module sends a NewDeviceStatusRequest message to the AAA server, it is used to receive a NewDeviceStatusResponse message from the AAA server, the NewDeviceStatusResponse message includes terminal information, and the terminal information includes terminal startup information; or

如果所述发送模块向AAA服务器发送的为DeviceStatusRequest消息,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息不包括终端的启动信息。If the sending module sends a DeviceStatusRequest message to the AAA server for receiving a DeviceStatusResponse message from the AAA server, the DeviceStatusResponse message includes terminal information, and the terminal information does not include terminal startup information.

其中,如果检测模块检测到自身保存的该终端的设备激活标志值deviceactivate flag为TRUE,并且检测到终端的启动方法标识bootstrap method flag为null,则该终端为激活终端并且未启动。Wherein, if the detection module detects that the device activate flag value deviceactivate flag of the terminal saved by itself is TRUE, and detects that the bootstrap method flag of the terminal is null, then the terminal is an activated terminal and is not started.

其中,所述终端的启动信息包括启动加密密钥BEK,还可以包括定时器timer。Wherein, the startup information of the terminal includes a startup encryption key BEK, and may also include a timer.

实施例五Embodiment five

针对实施例二,本发明实施例还公开了一种获取终端信息的装置,参考图5:For the second embodiment, the embodiment of the present invention also discloses a device for obtaining terminal information, refer to Figure 5:

一种DM服务器,包括:A DM server, comprising:

检测模块:当DM服务器需要订阅终端的信息时,用于检测所述终端是否为激活终端以及终端的启动状态;Detection module: when the DM server needs to subscribe to terminal information, it is used to detect whether the terminal is an active terminal and the startup state of the terminal;

发送模块:若所述终端为激活终端,并且终端未启动,用于向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中携带request type=need bootstrap;或,如果所述终端不满足上述条件,用于向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中不携带request type=need bootstrap;Sending module: if the terminal is an activated terminal, and the terminal is not started, it is used to send a DeviceStatusRequest message to the AAA server, and the DeviceStatusRequest message carries request type=need bootstrap; or, if the terminal does not meet the above conditions, it is used to send a message to the AAA server The AAA server sends a DeviceStatusRequest message, and the DeviceStatusRequest message does not carry request type=need bootstrap;

接收模块:如果所述发送模块向AAA服务器发送的DeviceStatusRequest消息中携带request type=need bootstrap,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息包括终端的启动信息;或Receiving module: if the DeviceStatusRequest message sent by the sending module to the AAA server carries request type=need bootstrap, it is used to receive the DeviceStatusResponse message from the AAA server, and the DeviceStatusResponse message includes terminal information, and the terminal information includes terminal information. activation information; or

如果所述发送模块AAA服务器发送的DeviceStatusRequest消息中不携带request type=need bootstrap,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息不包括终端的启动信息。If the DeviceStatusRequest message sent by the sending module AAA server does not carry request type=need bootstrap, it is used to receive the DeviceStatusResponse message from the AAA server, and the DeviceStatusResponse message includes terminal information, and the terminal information does not include terminal startup information .

其中,如果检测模块检测到自身保存的该终端的设备激活标志值deviceactivate flag为TRUE,并且检测到终端的启动方法标识bootstrap method flag为null,则该终端为激活终端并且未启动。Wherein, if the detection module detects that the device activate flag value deviceactivate flag of the terminal saved by itself is TRUE, and detects that the bootstrap method flag of the terminal is null, then the terminal is an activated terminal and is not started.

其中,所述终端的启动信息包括启动加密密钥BEK,还可以包括定时器timer。Wherein, the startup information of the terminal includes a startup encryption key BEK, and may also include a timer.

实施例六Embodiment six

针对实施例三,本发明实施例还公开了一种获取终端信息的装置,参考图5:For the third embodiment, the embodiment of the present invention also discloses a device for obtaining terminal information, refer to Figure 5:

一种DM服务器,包括:A DM server, comprising:

检测模块:当DM服务器需要订阅终端的信息时,用于检测所述终端是否为激活终端以及终端的启动状态;Detection module: when the DM server needs to subscribe to terminal information, it is used to detect whether the terminal is an active terminal and the startup state of the terminal;

发送模块:若所述终端为激活终端,并且终端未启动,用于向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中携带reporttype=one time;或,如果所述终端不满足上述条件,用于向AAA服务器发送DeviceStatusRequest消息,该DeviceStatusRequest消息中的report type值根据需要来设置;Sending module: if the terminal is an activated terminal, and the terminal is not started, it is used to send a DeviceStatusRequest message to the AAA server, and the DeviceStatusRequest message carries reporttype=one time; or, if the terminal does not meet the above conditions, it is used to send a message to the AAA server The server sends a DeviceStatusRequest message, and the report type value in the DeviceStatusRequest message is set as required;

接收模块:如果所述发送模块向AAA服务器发送的DeviceStatusRequest消息中携带report type=one time,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息包括终端的启动信息;或Receiving module: if the DeviceStatusRequest message sent by the sending module to the AAA server carries report type=one time, it is used to receive the DeviceStatusResponse message from the AAA server, and the DeviceStatusResponse message includes terminal information, and the terminal information includes terminal information. activation information; or

如果所述发送模块向AAA服务器发送的DeviceStatusRequest消息中携带report type的值不为one time,用于接收来自所述AAA服务器的DeviceStatusResponse消息,所述DeviceStatusResponse消息中包括终端信息,该终端信息不包括终端的启动信息。If the value of report type carried in the DeviceStatusRequest message sent by the sending module to the AAA server is not one time, it is used to receive the DeviceStatusResponse message from the AAA server, and the DeviceStatusResponse message includes terminal information, and the terminal information does not include the terminal startup information.

其中,如果检测模块检测到自身保存的该终端的设备激活标志值deviceactivate flag为TRUE,并且检测到终端的启动方法标识bootstrap methodflag为null,则该终端为激活终端并且未启动。Wherein, if the detection module detects that the device activation flag value deviceactivate flag of the terminal saved by itself is TRUE, and detects that the bootstrap methodflag of the terminal is null, then the terminal is an activated terminal and is not started.

其中,所述终端的启动信息包括启动加密密钥BEK,还可以包括定时器timer。Wherein, the startup information of the terminal includes a startup encryption key BEK, and may also include a timer.

本发明实施例公开的方法及装置,如果DM服务器需要订阅终端的信息,检测所述终端是否为激活终端以及终端的启动状态;根据检测结果,向AAA服务器订阅终端信息时指示是否需要终端的启动信息,AAA服务器根据DM服务器的指示向该DM服务器发送终端信息;本发明实施例公开的方法及装置使得在某些场景中AAA服务器向DM服务器发送的终端信息中不包括终端启动信息,从而减少了消息的冗余,节约了资源。In the method and device disclosed in the embodiments of the present invention, if the DM server needs to subscribe to terminal information, it detects whether the terminal is an active terminal and the startup state of the terminal; according to the detection result, when subscribing terminal information to the AAA server, it indicates whether the startup of the terminal is required information, the AAA server sends terminal information to the DM server according to the instructions of the DM server; the method and device disclosed in the embodiments of the present invention make the terminal information sent by the AAA server to the DM server not include terminal startup information in some scenarios, thereby reducing It reduces the redundancy of messages and saves resources.

以上仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. a method of obtaining end message is characterized in that, comprising:
Whether if equipment control DM server need be subscribed to terminal information, detecting described terminal is the starting state of activated terminals and terminal;
If described terminal is activated terminals, and described terminal do not start, and then sends new equipment state request NewDeviceStatusRequest message to authentication, authentication and charging aaa server; Or if described terminal is activated terminals, and described terminal starts, or described terminal is the un-activation terminal, then to aaa server transmitting apparatus state request DeviceStatusRequest message;
If the DM server is NewDeviceStatusRequest message to the aaa server transmission, then described DM server receives the NewDeviceStatusResponse message from described aaa server, comprise end message in the described NewDeviceStatusResponse message, this end message comprises the log-on message of terminal; Or
If the DM server is DeviceStatusRequest message to the aaa server transmission, then described DM server receives the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message does not comprise the log-on message of terminal.
2. the method for claim 1 is characterized in that: the log-on message of described terminal comprises and starts encryption key BEK.
3. method as claimed in claim 2, it is characterized in that: the log-on message of terminal also comprises timer timer.
4. as any described method of claim 1~3, it is characterized in that: be TRUE if the DM server detects the device activation value of statistical indicant device activate flag of this terminal of self preserving, and the startup method sign bootstrap method flag that detects terminal is null, and then this terminal is activated terminals and does not start.
5. a method of obtaining end message is characterized in that, comprising:
Whether if the DM server need be subscribed to terminal information, detecting described terminal is the starting state of activated terminals and terminal;
If described terminal is activated terminals, and terminal do not start, and then sends DeviceStatusRequest message to aaa server, carries request type=need bootstrap in this DeviceStatusRequest message; Or if described terminal is activated terminals, and described terminal starts, or, described terminal is the un-activation terminal, then sends DeviceStatusRequest message to aaa server, does not carry request type=need bootstrap in this DeviceStatusRequest message;
If the DM server carries request type=need bootstrap in the DeviceStatusRequest message of aaa server transmission, then described DM server receives the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message comprises the log-on message of terminal; Or
If the DM server does not carry request type=need bootstrap in the DeviceStatusRequest message of aaa server transmission, then described DM server receives the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message does not comprise the log-on message of terminal.
6. method as claimed in claim 5, it is characterized in that: be TRUE if the DM server detects the device activation value of statistical indicant device activate flag of this terminal of self preserving, and the startup method sign bootstrap method flag that detects terminal is null, and then this terminal is activated terminals and does not start.
7. a method of obtaining end message is characterized in that, comprising:
Whether if the DM server need be subscribed to terminal information, detecting described terminal is the starting state of activated terminals and terminal;
If described terminal is activated terminals, and terminal do not start, and then sends DeviceStatusRequest message to aaa server, carries report type=one time in this DeviceStatusRequest message; Or if described terminal is activated terminals, and described terminal starts, or, described terminal is the un-activation terminal, then sends DeviceStatusRequest message to aaa server, and report type value entrained in this DeviceStatusRequest message arranges as required;
If the DM server carries report type=one time in the DeviceStatusRequest message of aaa server transmission, then described DM server receives the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message comprises the log-on message of terminal; Or
Be not one time if carry the value of report type in the DeviceStatusRequest message that the DM server sends to aaa server, then described DM server receives the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message does not comprise the log-on message of terminal.
8. a DM server is characterized in that, comprising:
Detection module: when the DM server need be subscribed to terminal information, whether be the starting state of activated terminals and terminal for detection of described terminal;
Sending module: if described terminal is activated terminals, and described terminal do not start, and is used for sending NewDeviceStatusRequest message to aaa server; Or if described terminal is activated terminals, and described terminal starts, or described terminal is the un-activation terminal, is used for sending DeviceStatusRequest message to aaa server;
Receiver module: be NewDeviceStatusRequest message if described sending module sends to aaa server, be used for receiving the NewDeviceStatusResponse message from described aaa server, comprise end message in the described NewDeviceStatusResponse message, this end message comprises the log-on message of terminal; Or
If described sending module is DeviceStatusRequest message to the aaa server transmission, be used for receiving the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message does not comprise the log-on message of terminal.
9. a DM server is characterized in that, comprising:
Detection module: when the DM server need be subscribed to terminal information, whether be the starting state of activated terminals and terminal for detection of described terminal;
Sending module: if described terminal is activated terminals, and terminal do not start, and is used for sending DeviceStatusRequest message to aaa server, carries request type=need bootstrap in this DeviceStatusRequest message; Or if described terminal is activated terminals, and described terminal starts, or, described terminal is the un-activation terminal, is used for sending DeviceStatusRequest message to aaa server, does not carry request type=need bootstrap in this DeviceStatusRequest message;
Receiver module: if described sending module carries request type=need bootstrap in the DeviceStatusRequest message of aaa server transmission, be used for receiving the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message comprises the log-on message of terminal; Or
If described sending module does not carry request type=need bootstrap in the DeviceStatusRequest message of aaa server transmission, be used for receiving the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message does not comprise the log-on message of terminal.
10. a DM server is characterized in that, comprising:
Detection module: when the DM server need be subscribed to terminal information, whether be the starting state of activated terminals and terminal for detection of described terminal;
Sending module: if described terminal is activated terminals, and terminal do not start, and is used for sending DeviceStatusRequest message to aaa server, carries report type=one time in this DeviceStatusRequest message; Or if described terminal is activated terminals, and described terminal starts, or, described terminal is the un-activation terminal, is used for sending DeviceStatusRequest message to aaa server, and the report type value in this DeviceStatusRequest message arranges as required;
Receiver module: if described sending module carries report type=one time in the DeviceStatusRequest message of aaa server transmission, be used for receiving the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message comprises the log-on message of terminal; Or
Be not one time if carry the value of report type in the DeviceStatusRequest message that described sending module sends to aaa server, be used for receiving the DeviceStatusResponse message from described aaa server, comprise end message in the described DeviceStatusResponse message, this end message does not comprise the log-on message of terminal.
CN 200910110794 2009-10-15 2009-10-15 Method and device for acquiring terminal information Expired - Fee Related CN102045698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910110794 CN102045698B (en) 2009-10-15 2009-10-15 Method and device for acquiring terminal information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910110794 CN102045698B (en) 2009-10-15 2009-10-15 Method and device for acquiring terminal information

Publications (2)

Publication Number Publication Date
CN102045698A CN102045698A (en) 2011-05-04
CN102045698B true CN102045698B (en) 2013-09-11

Family

ID=43911357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910110794 Expired - Fee Related CN102045698B (en) 2009-10-15 2009-10-15 Method and device for acquiring terminal information

Country Status (1)

Country Link
CN (1) CN102045698B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111835902A (en) * 2020-07-20 2020-10-27 网易(杭州)网络有限公司 Device testing method and device, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1638339A (en) * 2004-01-09 2005-07-13 株式会社日立制作所 Presence data management method
JP2009230203A (en) * 2008-03-19 2009-10-08 Ntt Advanced Technology Corp Status information management system, method, and status information management server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1638339A (en) * 2004-01-09 2005-07-13 株式会社日立制作所 Presence data management method
JP2009230203A (en) * 2008-03-19 2009-10-08 Ntt Advanced Technology Corp Status information management system, method, and status information management server

Also Published As

Publication number Publication date
CN102045698A (en) 2011-05-04

Similar Documents

Publication Publication Date Title
US8050242B2 (en) Method and system for tailoring device provisioning based on device capability information communicated to network
CN100472516C (en) terminal configuration
US8260885B2 (en) Method and system for bootstrap of a device
JP5074596B2 (en) Apparatus and method for network identification of open market wireless devices
WO2009134288A1 (en) Advertising support for a plurality of service networks by a wireless access point
CN103370955A (en) Seamless WI-FI subscription remediation
CN102695194B (en) Element management system and method and system for self-configuration of eNodeBs
EP3206422A1 (en) Method and device for creating subscription resource
US20100199333A1 (en) System and method for providing device management service to electronic device having no broadband communication module
CN103379446A (en) Multi-terminal control method and device based on wifi
CN113396600B (en) Information verification method, device, equipment and storage medium
WO2011029296A1 (en) System and method for providing machine-to-machine equipment with machine communication identity module
EP2891299B1 (en) Systems and methods for efficient remote security panel configuration and management
CN102045698B (en) Method and device for acquiring terminal information
US9078081B2 (en) Mobile terminal and method for service processing thereof
CN118175547B (en) Method for determining illegal wireless Access Point (AP)
KR100765182B1 (en) Apparatus and method for providing packet service status using access level restriction list in mobile communication system
JP2020502894A (en) Service ordering method and device
US20240007847A1 (en) eSIM PROFILE MANAGEMENT FOR WIRELESS DEVICES
CN101616372A (en) Realize the method and system of automatic configuration of wireless terminal
EP4290899A1 (en) Device discovery method and apparatus, devices and storage medium
CN108702705B (en) An information transmission method and device
CN107995623A (en) A matching method and device for an eUICC terminal and a remote management server
CN102045702B (en) Method and device for configuring terminal
WO2012068792A1 (en) Mobile phone, registration method, system and device for implementing device management of the mobile phone

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130911

CF01 Termination of patent right due to non-payment of annual fee