Summary of the invention
The object of the invention provides a kind of accessing terminal equipment to service platform of security system and information transferring method, make the terminal user can insert service platform of security system at any time easily, the software of far call safety-protection system, the state information of the equipment of real time inspection Smart Home is also controlled the operation of watch-dog.
The embodiment of the invention provides a kind of accessing terminal equipment to service platform of security system and information transferring method, and it comprises step:
A, terminal equipment obtain the IP address and the port information of the terminal equipment access module in the terminal equipment access subsystem by distributed access front end processor, IP address and port information according to described terminal equipment access module, obtain a safety code to corresponding terminal equipment access module, with formation hybrid subscriber password after the user cipher Hybrid Encryption;
B, terminal equipment land described service platform of security system by mode wireless or wireline communication network input hybrid subscriber password, send logging request to service platform of security system, contain the equipment of itself parameter information in the described logging request;
After C, described service platform of security system are examined authentication to the terminal equipment landing request information, to described terminal equipment feedback login result response;
D, described terminal equipment are provided with its operating state according to described login result response, carry out information interaction and transmit.
Further, described terminal equipment is a user mobile phone.
Be to mix described safety code through the md5 encryption ciphertext in steps A, carry out forming after the md5 encryption the described hybrid subscriber password of 32 of length again by user cipher.
Further, described service platform of security system comprises Business Management Platform, service application platform, streaming media service platform, public service platform;
Wherein said Business Management Platform comprises gateway access subsystem, business management subsystem; Described service application platform comprises mobile phone access subsystem, service application subsystem, FTP service subsystem, domain name service subsystem; Described public service platform comprises distributed access subsystem, unified log management subsystem, unified identity authentication subsystem; Streaming media service platform comprises the streaming media service subsystem of handling files in stream media.
Mobile phone access module in the described mobile phone access subsystem be used for providing respectively with the interface of mobile communication and with the interface of service application subsystem communication, the bytes of stream data that processing receives is transmitted after converting the xml formatted data to again, keeps the heartbeat packet relation with mobile phone simultaneously.
Further, mobile phone described in the step D is provided with its operating state according to described login result response and specifically comprises:
If judge the mobile phone login result response for allowing to be linked into service platform of security system, then mobile phone is in the work state of activation, according to the monitoring working method work of setting;
If it is professional flat to forbid being linked into safety-protection system, then mobile phone is in unactivated state, by the caution acoustic alarm.
Further, the method for the invention also comprises the step of checking connection status between described mobile phone and the service platform of security system:
When working online, mobile phone needs regularly to send to connect to service platform of security system to check message, represent in running orderly, and service platform of security system feeds back the heartbeat response message after receiving and checking message; Do not reach preset threshold if mobile phone receives the number of times of the heartbeat response message of service platform of security system continuously, then represent to be in communication fault state between described mobile phone and the service platform of security system, mobile phone is then reported to the police by indicator light;
When mobile phone need disconnect when being connected with service platform of security system, mobile phone need send to service platform of security system when withdrawing from service withdraw from information on services, and the expression mobile phone does not temporarily provide service, gives respective response information after service platform of security system is received.
Further, described mobile phone and service platform of security system carry out information interaction, can initiatively initiate packet by service platform of security system, and mobile phone is confirmed; Perhaps initiatively initiate packet by mobile phone, service platform of security system confirms that TRANSPARENT_DATA_REQ and TRANSPARENT_DATA_ACK message are adopted in the transmission of described packet.
Further, the method for the invention also comprises:
When mobile phone parameters that described mobile phone inserts behind the service platform of security system or mobile phone is correlated with changes, report recent software version, the mobile phone parameters information of mobile phone operation immediately to service platform of security system, service platform of security system writes database with up-to-date software version, mobile phone parameters after receiving the parameter request that reports, and simultaneously described recent software version, mobile phone parameters information is carried out corresponding match synchronization and upgrades processing.
The mobile phone that adopts the embodiment of the invention to provide inserts service platform of security system and information transferring method, overcome various defectives and deficiency that existing household safety-security area family mobile phone inserts, merged operation flow, communications protocol, upload information processing, functions such as mobile phone access way, authentication implementation.Make the cellphone subscriber to insert service platform of security system at any time easily and control, simultaneously also can insert home network, the software of far call family monitor network, the state information of the equipment of real time inspection Smart Home is also controlled their operation.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
A kind of accessing terminal equipment to service platform of security system and information transferring method comprise:
A, terminal equipment obtain the IP address and the port information of the terminal equipment access module in the terminal equipment access subsystem by distributed access front end processor, IP address and port information according to described terminal equipment access module, obtain a safety code to corresponding terminal equipment access module, with formation hybrid subscriber password after the user cipher Hybrid Encryption;
B, terminal equipment land described service platform of security system by mode wireless or wireline communication network input hybrid subscriber password, send logging request to service platform of security system, contain the equipment of itself parameter information in the described logging request;
After C, described service platform of security system are examined authentication to the terminal equipment landing request information, to described terminal equipment feedback login result response;
D, described terminal equipment are provided with its operating state according to described login result response, carry out information interaction and transmit.
This terminal equipment can be as user mobile phone, PDA, other multiple terminals that can communicate transmission such as notebook computer, safety-protection gateway.
Be that example specifies with the mobile phone access below.
As shown in Figure 1, the embodiment of the invention one provides a kind of mobile phone to insert service platform of security system and information transferring method, comprises step:
101, mobile phone obtains the IP address and the port information of the mobile phone access module in the mobile phone access subsystem by distributed access front end processor, IP address and port information according to described mobile phone access module, obtain a safety code to corresponding mobile phone access module, with formation hybrid subscriber password after the user cipher Hybrid Encryption.The hybrid subscriber password that described length is 32 is to mix described safety code by user cipher through the md5 encryption ciphertext, carries out forming after the md5 encryption again.
Distributed access front end processor is used for coordinating idle gateway access module and is connected with the video-type safety-protection gateway that needs to insert.Described distributed access front end processor has only one when real work, but one of multiple access is as hot machine backup in system.
As shown in Figure 3, before described mobile phone inserts service platform of security system, obtain the IP address and the port information of the mobile phone access module in the mobile phone access subsystem by distributed access front end processor, distributed access front end processor is based on ICP/IP protocol, and TRANSPARENT_DATA_REQ and TRANSPARENT_DATA_ACK message are adopted in the transmission of data.This packet can be initiated by mobile phone, service platform of security system affirmation, i.e. active reported data pattern; Also may initiate, confirm phone, be i.e. request---answer-mode by service platform of security system.According to load-balancing algorithm, will issue the mobile phone that application is connected into the video-type safety-protection system platform than idle mobile phone access module IP and port, therefore, the mobile phone of access can both obtain idle IP address and port information.
102, the cellphone subscriber lands described service platform of security system by mode wireless or wireline communication network input hybrid subscriber password, sends logging request to service platform of security system, contains self parameter information in the described logging request.Parameter comprises the user security rank of phone number, setting, the IMSI number of mobile phone etc.
103, after described service platform of security system is examined authentication to the mobile phone user logging request information, to described mobile phone feedback login result response.
104, described mobile phone is provided with its operating state according to described login result response, carries out information interaction and transmits.
Each equipment work flow process was as follows when as shown in Figure 2, mobile phone inserted service platform of security system:
1, the cellphone subscriber sends the IP and the port information of the idle mobile phone access module of note acquisition request to distributed access front end processor;
2, distributed access front end processor distributes the IP of idle mobile phone access module and port to give the cellphone subscriber;
3, the cellphone subscriber connects idle mobile phone access module;
4, the cellphone subscriber sends the request of landing to the service application subsystem, and authentication is done in request;
5, the service application subsystem begins to verify cellphone subscriber's identity and lands password;
6, service application subsystem feedback is landed and is verified that ACK gives the cellphone subscriber as a result;
7, the cellphone subscriber begins to carry out information interaction to service platform of security system download equipment information;
8, also interactive information between service platform of security system and the service application subsystem, new data more synchronously.
In above-mentioned steps 104, described mobile phone is provided with its operating state according to described login result response and specifically comprises:
If judge described login result response for allowing to be linked into service platform of security system, then mobile phone is in the work state of activation, according to the monitoring working method work of setting, can select to monitor in real time or require service platform of security system regularly to transmit and monitor picture etc.; If it is professional flat to forbid being linked into safety-protection system, then mobile phone is in unactivated state, by the caution acoustic alarm.
After mobile phone lands successfully, finish to service platform of security system immediately and report parameter.In start, (comprised the mobile phone access subsystem such as mobile phone to service platform of security system, the service application subsystem) sends the request of access, request is PDU (Protocol Data Unit) information that comprises the mobile phone sequence number, this protocol Data Unit information comprises one 16 device coding, this coding is unique sign mobile phone, the service application platform need be verified mobile phone, then allow to insert service platform of security system if the verification passes, if checking not by send the abnormality alarming information that inserts.Reporting equipment information is that checking is finished by back being reported to the service application subsystem by mobile phone, and application platform is synchronized to Business Management Platform more then.
When mobile phone parameters that described mobile phone inserts behind the service platform of security system or mobile phone is correlated with changes, report recent software version, the mobile phone parameters information (parameter information can carry out dynamic expansion according to later service logic change) of mobile phone operation immediately to service platform of security system, service platform of security system writes database with up-to-date software version, mobile phone parameters after receiving the parameter request that reports, and simultaneously described recent software version, mobile phone parameters information is carried out corresponding match synchronization and upgrades processing.Such as: the software version parameter information, as finding that current phone user software version is not the recent software version, then issue up-to-date software version information notification gateway and upgrade, report parameter request to respond ACK transmission after finishing dealing with.
Mobile phone can send the image data of self via service platform of security system to the backstage application server.TRANSPARENT_DATA_REQ and TRANSPARENT_DATA_ACK message are adopted in the transmission of data.This packet can be initiated by mobile phone, service platform of security system affirmation, i.e. active reported data pattern; Also may initiate, confirm phone, be i.e. request---answer-mode by service platform of security system.Inclusion data in TRANSPARENT_DATA_REQ and TRANSPARENT_DATA_REQ are traffic data transparent, that can not or need not understand for platform, and service platform of security system is that data are carried out routing forwarding.Platform is just stored forwarding to data.On behalf of the recipient, response message just received data, does not represent the recipient these data to be carried out operational processing.
Mobile phone report and alarm fault message.Mobile phone self takes place when unusual being checked through, to initiate the fault report flow, fault message is reported service platform of security system by ALARM_REPORT_REQ, after service platform of security system is received and handled, send by ALARM_REPORT_ACK and to feed back to mobile phone.
Mobile phone remote download and upgrade and report upgrade information.The cellphone subscriber upgrades to its software by service platform of security system or third-party upgrade server.Cell phone manufacturer is published to the upgrade software bag on the service platform of security system, or new upgrade software is arranged by third-party upgrade server notice video-type safety-protection system platform, receive upgrade file or notify the back on platform, to create upgrade transaction by platform, and issue upgrade notification to the cellphone subscriber.After the cellphone subscriber receives upgrade notification, judge whether the needs upgrading according to himself situation, and to the video-type safety-protection system platform response.Cellphone subscriber's its software of upgrading if desired, then when it is idle to third-party upgrade server request download and upgrade file.After if the cellphone subscriber has carried out the software associative operation, need report the relevant information of software operation to the video-type safety-protection system platform.Report the video-type safety-protection system platform by SOFTWARE_REPORT_REQ, after the video-type safety-protection system platform is received and handled, send by SOFTWARE_UPDATE_REPORT_ACK and to feed back to the cellphone subscriber.
After safety-protection gateway cut-in operation, also comprise the step of checking connection status between described mobile phone and the service platform of security system:
When working online, mobile phone needs regularly to send to connect to service platform of security system to check message, represent in running orderly, and service platform of security system feeds back the heartbeat response message after receiving and checking message; Do not reach preset threshold if mobile phone receives the number of times of the heartbeat response message of service platform of security system continuously, then represent to be in communication fault state between described mobile phone and the service platform of security system, mobile phone is then reported to the police by indicator light;
When mobile phone need disconnect when being connected with service platform of security system, mobile phone need withdraw from information on services to what service platform of security system sent when withdrawing from service, and the expression mobile phone does not temporarily provide service, gives respective response information after service platform of security system is received.
As shown in Figure 4, be the block diagram of mobile phone connection service platform of security system in the embodiment of the invention, the cellphone subscriber controls and transfer of data by the mobile phone access subsystem connection service platform of security system of service application platform.Described service platform of security system comprises Business Management Platform, service application platform, streaming media service platform, the public service platform that is connected to each other communication.
Wherein said Business Management Platform comprises gateway access subsystem, business management subsystem; Described service application platform comprises mobile phone access subsystem, service application subsystem, FTP service subsystem, domain name service subsystem, service application subsystem; Described public service platform comprises distributed access subsystem, unified log management subsystem, unified identity authentication subsystem; Streaming media service platform comprises the streaming media service subsystem of handling files in stream media.
Mobile phone access module in the mobile phone access subsystem is as the key submodule of household security protection Business Management Platform, cellphone subscriber's access and all finish by this module with the information interaction of operation system.Basic function is as follows: 1, the interface with mobile communication is provided.2, provide interface with the service application subsystem communication.3, handle and to be transmitted to the service application subsystem after the bytes of stream data that receives from mobile phone converts the xml formatted data to.4, handle and to be transmitted to mobile phone after the xml formatted data that receives from professional application subsystem converts bytes of stream data to.5, keep the heartbeat packet relation of mobile phone.
The function of above-mentioned each subsystem specifically describes as follows
One, gateway access subsystem
The gateway access subsystem is the nucleus module of intelligent security guard operation system, the access of gateway and all finish by this subsystem with the information interaction of operation system.According to the design of system, consider the pressure and the autgmentability of its access, this subsystem carries out distributed deployment.Its basic function is as follows:
Interface with gateway communication is provided.
The interface of communicating by letter with business management system is provided.
The bytes of stream data that processing receives from gateway is transmitted to business management system after converting the xml formatted data to.
After converting bytes of stream data to, the xml formatted data that processing receives from business management system is transmitted to gateway.
Keep the heartbeat packet relation of gateway
Two, business management subsystem
Business management subsystem mainly is responsible for management, the fault information managing of various resources and is followed the integrated management of third party's interface, wherein resource packet purse rope pass, application terminal, software, service application service device, client etc.Its basic function is as follows:
Can manage concentratedly service provider and its operation system that provides.
Can manage gateway, comprise the legitimacy authentication that gateway is inserted.
Can manage concentratedly the application terminal that gateway reports.
Can manage concentratedly the provider and the model of various terminals.
Can manage concentratedly the software of gateway, can realize remote software upgrade.
Can carry out unified management to the fault of gateway, application terminal, operation system.
Can carry out unified management to customer information.
Can carry out the packet classification mandate to operation management personnel (operator).
Business datum can be routed to the service application platform.
Can carry out integrated to third party's interface.
Three, service application subsystem
The service application subsystem mainly is responsible for the realization of concrete business function.Its basic function is as follows:
Can manage gateway information
Can carry out cloth to the defence area withdraws a garrison
Can control using terminal
Can manage history alarm information
Can manage historical monitor message
Can carry out picture monitors
Can carry out the remote live video monitor
Can carry out timing supervision
Can revise customer data information
Warning information may be displayed on the map, can allow property receive a crime report by system
Four, FTP service subsystem
The FTP service subsystem is the nucleus module of main business flow, and alarm or the picture and the video-frequency band that monitor all upload under the FTP catalogue by gateway.Its basic function is as follows:
Can carry out purview certification to using the user
Automatically the use catalogue of distributing user
Can picture, the video-frequency band that gateway is uploaded be managed
Can offer business application system and check the interface of picture, video-frequency band
Five, domain name service subsystem
The domain name service subsystem mainly is responsible for the dynamic mapping relationship of IP camera with domain name.Its basic function is as follows:
Can bind second level domain according to dynamic IP
Can offer the interface of business application system binding second level domain
Six, mobile phone access subsystem
The mobile phone access subsystem is the nucleus module of intelligent security guard operation system, the access of mobile phone and all finish by this subsystem with the information interaction of operation system.According to the design of system, consider the pressure and the autgmentability of its access, this subsystem carries out distributed deployment.Its basic function is as follows:
The interface of communicating by letter with cell-phone customer terminal is provided
Interface with the service application subsystem communication is provided
Be transmitted to the service application subsystem after the data that processing receives from cell-phone customer terminal
Be transmitted to cell-phone customer terminal after the data that processing receives from professional application subsystem
Keep the heartbeat packet relation of mobile phone
Seven, streaming media service subsystem
The processing of streaming media service subsystem responsible live video stream.Its basic function is as follows:
Video record
Video is taken pictures
Video storage is transmitted
Eight, unified identity authentication subsystem
The unified identity authentication subsystem responsible is carried out authentication to each subsystem.Its basic function is as follows:
The unified inlet of system can show the operable subsystem of client according to client's authority
Use the authority of different sub-systems to verify to the user
Can offer different sub-systems and create the interface of logon information
Nine, unify the log management subsystem
The user can carry out Classification Management to Operation Log
Offer the interface on each subsystem recording operation date
Ten, distributed access subsystem
What gateway access subsystem and mobile phone access subsystem adopted is the distributed deployment scheme.Its realization is responsible for by distributed access subsystem.Its basic function is as follows:
Mobile phone and gateway access interface are provided
Can use for new gateway that inserts or mobile phone to the little loom of automatic dispense pressure
The mobile phone that adopts the embodiment of the invention to provide inserts service platform of security system and information transferring method, overcome various defectives and deficiency that existing household safety-security area family mobile phone inserts, merged operation flow, communications protocol, upload information processing, functions such as mobile phone access way, authentication implementation.Make the cellphone subscriber to insert service platform of security system at any time easily and control, simultaneously also can insert home network, the software of far call family monitor network, the state information of the equipment of real time inspection Smart Home is also controlled their operation.
The above is a preferred implementation of the present invention; certainly can not limit the present invention's interest field with this; should be understood that; for those skilled in the art; under the prerequisite that does not break away from the principle of the invention; can also make some improvement and change, these improvement and change also are considered as protection scope of the present invention.