Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The present invention is to provide software interface updating device and method in a kind of video monitoring system, wherein, the related video monitoring system of these apparatus and method can be existing any one video monitoring system, certainly, a kind of video monitoring system of IP based network also is provided among the present invention, in this video monitoring system, said apparatus and method also can realize.
Below, at first the video monitoring system to IP based network provided by the invention is elaborated.
Fig. 1 is the video monitoring system logical layer structure schematic diagram of IP based network among the present invention.As shown in Figure 1, in invention, in the video monitoring system of IP based network, can comprise 4 logical layers: Access Layer 101, bearing bed 102, key-course 103 and operation layer 104.
1) Access Layer 101 is supported IP agreement, TCP (Transmission Control Protocol, transmission control protocol), UDP (User Datagram Protocol, User Datagram Protoco (UDP)) and SIP (SessionInitiation Protocol, session initiation protocol) etc. transmission control protocol is used for the access of the various end points of video monitoring.Wherein, end points can specifically comprise subscriber endpoints, Media Stream end points and alarm end points, and the alarm end points is for optional and inessential.
2) bearing bed 102, are used for carrying the Media Stream of video monitoring, comprise the forwarding distribution of Media Stream, the bottom transmission of Media Stream; Alternatively, bearing bed 102 can also be further used for the storage of Media Stream.
For the forwarding distribution of the Media Stream of bearing bed 102, can transmit distribution function by the medium that logically mark off in the bearing bed 102 and realize.Functions such as medium transmit that distribution function can be used for the duplicating of Media Stream, transmits, distributes, broadcasting, multicast and route.
Bottom transmission for the Media Stream of bearing bed 102 can be realized by the bottom transport function that logically marks off in the bearing bed 102.The bottom transport function can be used for controlling the transmission of signaling and notice signaling.Wherein, control signaling and notice signaling all can be the signaling of Session Initiation Protocol, and can use socket (Socket) connection and content among the TCP to carry extend markup language (eXtensibleMarkup Language, XML) message semantic definition of form.Wherein, notice signaling is for optionally signaling is nonessential.
Certainly, the bottom transport function also is used to realize the transmission of Media Stream.Specifically, transmission at Media Stream, the media stream formats that each logical layer equipment in can the employing system is supported, and H.264 selection is used, (the Moving Pictures Experts Group of dynamic image expert group, MPEG-4), (Audio and Video Coding Standard, AVS) etc. agreement encapsulates Media Stream digital audio/video encoding and decoding technique standard.
Storage for the Media Stream of bearing bed 102 can be realized by the media store functional module that logically marks off in the bearing bed 102.The media store functional module can be used for reception, the storage of Media Stream; This media store functional module can insert storage area network network (Storage Area Network, IP-SAN), network attached storage (Network Attached Storage, NAS), direct-connected mode is stored (DirectAttached Storage, DAS) memory device such as IP such as grade; And, the media store functional module can also be further used for storage plan management, storage medium management and playing back videos service etc., for example, formulate storage plan according to the characteristic of time, each logical layer equipment, alarm type etc., carry out for the media store functional module by the user.
3) key-course 103, be used for the session control of video monitoring system and audio frequency and video distribution management (Audioand Video Distribute Management, AVDM); Alternatively, key-course 103 can also be further used for the audio frequency and video storage administration (Audio and Video Storage Management, AVSM), end points management, rights management etc.
For the session control of key-course 103, can realize by the session control function module that logically marks off in the key-course 103.Session control function module can be used for the control of interior all business of video monitoring system of IP based network among the present invention.And, operation layer 104 among the present invention can carry out professional foundation, uses and cancel operation by Session Initiation Protocol, thereby the session control function module in the key-course 103 is inner can set up professional controll block, time controll block and the resources control block etc. that be used for controlling this business at this business, and safeguards professional controll block, time controll block and the resources control block of being set up etc.
For the AVDM and the AVSM of key-course 103, can realize by AVDM functional module that logically marks off in the key-course 103 and AVSM functional module respectively.The AVDM functional module is used to carry out media flow transmission control, the control of controlling signaling and notice signaling and load balancing policy control, the needed sound mixing function of voice video conference; The AVSM functional module is used for the control to the media store functional module of bearing bed 102.
End points management for key-course 103 can be realized by the end points management function module that logically marks off in the key-course 103.End points management function module can be used in the video monitoring system to IP based network among the present invention, the equipment of each end points such as the subscriber endpoints of all accesses, Media Stream end points and alarm end points manages, by to the facility information of the said equipment and the abstract storage that is recorded in the user profile of system, by static configuration to the database in the system, carry out the configuration and the attribute management of each logical layer equipment by network management unit, make the video monitoring system of IP based network among the present invention have the ability of overall unified management and each logical layer equipment of planning.Wherein, the said equipment information can comprise information such as device identification, device attribute, and above-mentioned user profile then can comprise information such as user ID, user property; Database in the aforesaid system can be shared by each logical layer usually and use, thereby does not describe in conjunction with a certain logical layer separately in this article.
For the rights management of key-course 103, can realize by the rights management functional module that logically marks off in the key-course 103.The rights management functional module can be used for determining the rights of using of user to the various resources in the video monitoring system of IP based network among the embodiment.
4) operation layer 104, are used for realizing basic business in the video monitoring system of IP based network of the present invention at least, as the professional intellectual analysis of formulating reference etc.
For the basic business in the operation layer 104, can realize by the basic business functional module that logically marks off in the operation layer 104.The basic business functional module can be used for providing the basic service of the video monitoring system of IP based network among the present invention, for example monitoring in real time, on-demand playback, cradle head control, storage plan, access control, batch configuration etc.The user can use basic service by the CE client in the Access Layer.
For the intellectual analysis in the operation layer 104, can realize by the intellectual analysis functional module that logically marks off in the operation layer 104.The intellectual analysis functional module can be used for providing the IN service of the video monitoring system of IP based network among the present invention, by combining of intellectual technology and upper layer application, satisfies the demand of user to system.For example: object tracking (Motion Tracking), recognition of face (FacialDetection), vehicle identification (Vehicle Identification), illegal be detained (Object Persistence), pyrotechnics detects (Fire Detection), people flow rate statistical (People Counting), people's group control (FlowControl), human body behavioural analysis (Action Analyze), magnitude of traffic flow control (Traffic Flow), advanced video mobile detection (Advanced VMD), article lost or displacement detecting (MovingDetection) etc.
Need to prove that each functional module in the operation layer 104 mainly is in order to make among the present invention the video monitoring system of IP based network video monitoring function can be provided in the mode of business, and can further provide other business functions.Certainly, directly under the control of key-course 103, obtain and distribution media stream if break away from professional by Access Layer 101 by bearing bed 102, then also can realize video monitoring, thereby operation layer 104 is optional and nonessential for the video monitoring system of IP based network among the present invention.
The various functional modules of mentioning in the above-mentioned logical layer structure all can be realized by computer program by those skilled in the art, give unnecessary details no longer one by one at this.
Below, based on above-mentioned logical layer structure, the system architecture of the video monitoring system of IP based network in the embodiment of the invention is elaborated.
Fig. 2 is the system architecture schematic diagram of the video monitoring system of IP based network among the present invention in fact.As shown in Figure 2, in the present invention, the system architecture of the video monitoring system of IP based network comprises the access layer equipment of corresponding Access Layer 101, the bearing layer equipment of corresponding bearing bed 102, the key-course equipment of corresponding key-course 103.
1) access layer equipment of corresponding Access Layer 101 comprises: the client unit of respective user end points (Client Element, CE) 201, the headend equipment 202 of corresponding Media Stream end points or alarm end points and be used for CCF that CE 201, headend equipment 202 insert (Call Control Function, CCF) server 203.
Preferably, CCF server 203 can provide SIP gateway and safe access gateway.
Preferably, CE 201 can specifically be divided into client/server (Client/Serve, C/S) architecture mode and browser/server (Browser/Server, B/S) architecture mode is two kinds, and CE 201 can support real-time video, on-demand playback, Real-time Alarm, the alarm interlock, the round cut plan, group is cut plan, the group cuts plan, user's login, rights management, equipment control, batch configuration, track cruises, cradle head control, transparent channel, storage administration, storage plan, voice broadcast service, speech talkback, video recording is downloaded, management of video, the group Role Management, equipment incorporates into, (Geographic Information System GIS) waits the network video monitor and control system business to GIS-Geographic Information System.
Preferably, headend equipment 202 can be that for example medium stream information such as IP Camera, IP The Cloud Terrace equipment provides equipment, is used for the collection and the output of video information, audio-frequency information, data message, intellectual analysis information and warning information; Alternatively, headend equipment 202 can link to each other with smart machine 202 ' by for example electric connection mode such as analog line, embedding, perhaps also can link to each other with smart machine 202 ' by IP network, this smart machine 202 ' also links to each other by IP network with CCF server 203 simultaneously, so that access in the video monitoring system by CCF server 203; Certainly, for the system that comprises optional alarm end points, headend equipment 202 can also be safety-security area equipment such as gate inhibition's equipment, infrared equipment, smoke sensing equipment, intelligent alarm analytical equipment for example.
And, above-mentioned CE 201 and headend equipment 202 are supported the Session Initiation Protocol expansion, support RTP (Real-time Transport Protocol, RTP), RTCP Real-time Transport Control Protocol (Real-timeTransport Control Protocol, RTCP) and in real time fluidisation agreement (Real-time StreamingProtocol, media flow transmission control protocol such as RTSP).
2) bearing layer equipment of corresponding bearing bed 102 comprises: (Audio and VideoDistribute Function, AVDF) server 204 for the audio frequency and video distribution function.Medium in the foregoing bearing bed 102 are transmitted distribution function and are carried in the AVDF server 204.
3) the key-course equipment of corresponding key-course 103 comprises: (Service ManagerFunction, SMF) server 206 for service management function.Session control function module and AVDM functional module in the foregoing key-course 103 are carried in the SMF server 206.
In addition, for the basic business functional module in the foregoing optional operation layer 104, intellectual analysis functional module, interlock configuration feature module, then can carry jointly by all included access layer equipments of the video monitoring system of IP based network in the present embodiment, all bearing layer equipments, all key-course equipment.
Still referring to Fig. 2, in the present embodiment in the video monitoring system of IP based network:
CE 201, headend equipment 202 link to each other by IP network with CCF server 203 respectively, access to by CCF server 203 in the video monitoring system of IP based network in the present embodiment;
CCF server 203 and SMF server 206 link to each other by IP network, based on the session control of SMF server 206, realize the access of CE 201, headend equipment 202;
CE 201, headend equipment 202 link to each other by IP network with AVDF server 204 respectively, by AVDF server 204 media streams;
AVDF server 204 and SMF server 206 link to each other by IP network, based on the session control of SMF server 206, realize the media flow transmission relevant treatment between headend equipment 202 and the CE 201.Specifically, AVDF server 204 be used for from the Media Stream between headend equipment and the CE receive, duplicate, transmit, distribution, route, multicast and broadcasting etc. transmit the distribution relevant treatment, realize the video monitoring of the video monitoring session of CE 201 and headend equipment 202, promptly realize video monitoring these headend equipment 202 place scenes; AVDF server 204 is further used for controlling bottoms such as the transmission transmission relevant treatment of signaling and notice signaling.
SMF server 206 is used to realize above-mentioned session control.In the practical application, a SMF server 206 can connect a plurality of CCF servers 203 and carry out load balancing control; A plurality of CCF servers 203 can provide the access of any equipment that can connecting system of the CE 201, headend equipment 202 of broad range or other, and CCF server 203 can be further used as network address translation (Network Address Translation, NAT) gateway that gateway supports that wide area network is interior.
" linking to each other " mentioned herein by IP network, can adopt the existing concrete mode that connects by IP network arbitrarily, for example, each logical layer equipment can be connected same switching equipment in the IP network or be connected to different switching equipment in the IP network, and alternate manner is given unnecessary details no longer one by one at this.
Alternatively, the video monitoring system of IP based network among the present invention, its bearing layer equipment can further include audio frequency and video memory function (Audio and Video Storage Function, AVSF) server, this AVSF server links to each other by IP network with SMF server 206 and AVDF server 204 respectively, and the media store functional module in the foregoing bearing bed 102 is carried in the AVSF server; And key-course equipment can further include subscription authentication function (User AuthenticationFunction, UAF) server, this UAF server and SMF server 206 link to each other by IP network, for optionally end points management function module and rights management functional module in the key-course 103 as previously mentioned, can carry jointly by SMF server 206 and UAF server.
Fig. 3 is the system interface schematic diagram of the video monitoring system of IP based network in the embodiment of the invention one.As shown in Figure 3, in the present embodiment as shown in Figure 2 in the video monitoring system framework of IP based network:
Adopt Icc interface (Interface of CE and CCF) 301 between CE 201 and the CCF server 203, interface communication uses Session Initiation Protocol;
Adopt Icn interface (Interface of CCF andNE) 302a between headend equipment 202 and the CCF server 203, interface communication uses Session Initiation Protocol; Need to prove that " NE " in the related English full name of each english abbreviation only represents headend equipment 202 in this article herein;
The smart machine 202 ' that is electrically connected with headend equipment 202 adopts Ici interface (Interface of CCF and Intelligent Device) 302b then and between the CCF server 203, and interface communication uses Session Initiation Protocol;
Adopt Isc interface (Interface of SMFand CCF) 303 between CCF server 203 and the SMF server 206, interface communication uses Session Initiation Protocol;
Adopt Isd interface (Interface of SMFand AVDF) 304 between AVDF server 204 and the SMF server 206, interface communication uses the Socket agreement;
Adopt Idc interface (Interface of AVDF andCE) 308 between CE 201 and the AVDF server 204, interface communication uses RTP or RTCP or RTSP agreement;
Adopt Ind interface (Interface of NE andAVDF) 309 between headend equipment 202 and the AVDF server 204, interface communication uses RTP or RTCP or RTSP agreement.
In addition, optionally adopt Iss interface (Interface of SMF and AVSF) between AVSF server and the SMF server 206, interface communication uses the Socket agreement; Optionally adopt Isu interface (Interface of SMF and UAF) between UAF server and the SMF server 206, interface communication uses Session Initiation Protocol.
Fig. 4 is the single domain networking structure schematic diagram of the video monitoring system of IP based network in the embodiment of the invention.As shown in Figure 4, in the present embodiment in the video monitoring system of IP based network, for the situation that only comprises a SMF server 206, be referred to as the single domain networking structure, this system specifically comprises: CE 201, headend equipment 202, CCF server 203, AVDF server 204, SMF server 206, not shown optional AVSF server and UAF server among Fig. 4.
Fig. 5 is a kind of schematic flow sheet of exchange method in the video monitoring system of IP based network in the embodiment of the invention.As shown in Figure 5, in as shown in Figure 4 the video monitoring system of IP based network, can carry out the mutual of media flow transmission control according to following flow process between CE 201, headend equipment 202, CCF server 203, AVDF server 204, the SMF server 206 in the present embodiment:
Step 501, CE 201 sends first request message that obtains Media Stream by IP network to CCF server 203, for example is called the message of " INVITE ", the Media Stream of the arbitrary headend equipment 202 of expression acquisition request;
Step 502, CCF server 203 are returned the session (Session) that for example is called first response message of " 100 " message and preserves this request correspondence according to first request message from CE 201 by IP network to CE 201;
Step 503, CCF server 203 is according to first request message from CE 201, the message etc. that sends for example " INVITE " by name by IP network to SMF server 206 is obtained second request message of Media Stream, is forwarded to SMF server 206 with the request with CE 201; Second request message described herein can be first request message of directly transmitting in the transparent transmission mode, also can be the request message that is generated separately by CCF server 203;
Step 504, SMF server 206 returns second response message by IP network to CCF server 203 according to second request message that obtains Media Stream from CCF server 203;
Step 505, SMF server 206 judge whether headend equipment 202 has been set up media flow transmission interface as shown in Figure 4 with AVDF server 204 and be connected 413; If, then direct execution in step 509, otherwise execution in step 506;
Step 506, SMF server 206 send the 5th request message of expression application ports such as " INVITE " message by name for example by IP network and forward end equipment 202, with 202 applications of forward end equipment can output media stream port;
Step 507, headend equipment 202 distributes corresponding port, returns the 5th response message that expression ports such as for example being called " 200OK " message has distributed by IP network and to SMF server 206;
Step 508, the 5th response message that the expression port that SMF server 206 is returned after the distribution corresponding port according to headend equipment 202 has distributed, send the 3rd ACK that confirms that port has distributed by IP network and forward end equipment 202, after this, headend equipment 202 promptly is connected 413 by the media flow transmission interface that IP network and AVDF server 204 are set up as shown in Figure 4;
Step 509, SMF server 206 returns the 3rd response message that for example expression video capable monitor sessions such as message of " 200OK " by name can be set up by IP network to CCF server 203;
Step 510, CCF server 203 are returned the 4th response message that for example expression video capable monitor sessions such as message of " 200OK " by name can be set up according to the 3rd response message from SMF server 206 to CE 201; Need to prove that the 4th response message described herein can be the 3rd response message of directly transmitting in the transparent transmission mode, also can be the response message that is generated separately by CCF server 203;
Step 511, CE 201 sends a ACK that expression confirm video monitoring session can set up by IP network to CCF server 203 according to the 4th response message from CCF server 203;
Step 512, CCF server 203 is confirmed the ACK that the video monitoring session can be set up according to the expression from CE 201, sends the 2nd ACK that expression confirms that the video monitoring session can be set up by IP network to SMF server 206; Need to prove that the 2nd ACK described herein can be an ACK who directly transmits in the transparent transmission mode, also can be the ACK that is generated separately by CCF server 203;
Step 513, SMF server 206 is confirmed the 2nd ACK that the video monitoring session can be set up according to the expression from CCF server 203, by the request message of IP network to AVDF server 204 transmission open media flow ports, for example PortOpenNotity request message;
Step 514, AVDF server 204 bases are from the request message of the open media flow port of SMF server 206, by its with corresponding headend equipment 202 between the media flow transmission interface of IP based network connect 413, open this headend equipment 202 can output media stream port, and by IP network and return the response message of opening of " Response " message by name for example to SMF server 206;
Step 515, CE 201 AVDF server 204 opened corresponding headend equipment 202 can the port of output media stream after, the media flow transmission interface of setting up as shown in Figure 4 by IP network and AVDF server 204 is connected 411, and by with AVDF server 204 between the media flow transmission interface of IP based network be connected 411, the media flow transmission interface of IP based network is connected 413 between AVDF server 204 and AVDF server 204 and the headend equipment 202, carries out the mutual of Media Stream based on video monitoring session and headend equipment 202.
So far, this flow process finishes.
In the above-mentioned flow process, step 502,504 is optional step, and step 503 can be carried out before step 502 or with step 502 simultaneously, and step 505 can be carried out before step 504 or with step 504 simultaneously; And be connected 413 situation by having set up the media flow transmission interface with AVDF server 204 for headend equipment 202, step 505~508 also are optional step.
Fig. 6 is the another kind of schematic flow sheet of exchange method in the video monitoring system of IP based network in the embodiment of the invention.As shown in Figure 6, based on the video monitoring system of IP based network in the present embodiment and after flow process as shown in Figure 5, in the present embodiment in as shown in Figure 4 the video monitoring system of IP based network, between CE 201, headend equipment 202, CCF server 203, AVDF server 204, the SMF server 206, can also further realize the mutual of media flow transmission control according to following flow process:
Step 601, CE 201 sends the 6th request message that for example expression of " BYE " message by name stops the video monitoring session, the video monitoring session between request termination and the headend equipment 202 by IP network to CCF server 203;
Step 602, CCF server 203 is according to the 6th request message from CE 201, by sending the 7th request message that expression stops the video monitoring session, be forwarded to SMF server 206 with request with the video monitoring session between CE 201 terminations and the headend equipment 202 to SMF server 206; Need to prove that the 7th request message described herein can be the 6th request message of directly transmitting in the transparent transmission mode, also can be the request message that CCF server 203 generates separately;
Step 603, SMF server 206 send the request message of closing Media Stream port, for example PortCloseNotify request message by IP network to AVDF server 204 according to the 7th request message from CCF server 203;
Step 604, AVDF server 204 bases are from the request message of the open media flow port of SMF server 206, by its with corresponding headend equipment 202 between the media flow transmission interface of IP based network connect 413, close the port that this headend equipment 202 can output media stream, and return the response message of closing of " Response " message by name for example by IP network to SMF server 206;
Step 605, SMF server 206 bases are closed the media flow transmission interface 411 between response message termination CE 201 and the ASDF server 204, and send the 6th response message that for example is called expression video monitoring session terminations such as " 200OK " message by IP network to CCF server 203;
Step 606, CCF server 203 is according to the 6th response message, send the 7th response message that expression video monitoring sessions such as for example being called " 200OK " message stops by IP network to CE 201, CE201 after receiving the 7th response message, disconnect with AVDF server 204 between the media flow transmission interface of IP based network be connected 411, thereby stop the video monitoring session with headend equipment 202; Need showing of explanation, above-mentioned the 7th response message can be the 6th response message of directly transmitting in the transparent transmission mode, also can be the message that is generated separately by CCF server 203;
Step 607, whether SMF server 206 is judged the video monitoring session of current termination, be last video monitoring session of corresponding front end interface 202, if, then continue execution in step 608, otherwise process ends;
Step 608, SMF server 206 sends the 8th request message that " BYE " message etc. for example by name is cancelled port by IP network and forward end equipment, with forward end equipment 202 cancel can output media stream port;
Step 609, when front end equipment 202 cancelling corresponding port, and the expression ports such as " 200OK " message for example by name that returned the 8th response message of having cancelled after, headend equipment 202 has disconnected by IP network and has been connected 413 with media flow transmission interface between the AVDF server 204.
So far, this flow process finishes.
In the above-mentioned flow process, step 605,606 is optional step, and step 607 can be carried out before step 605 or step 606, also can carry out simultaneously with step 605 or step 606; And, be connected also nonessentially with media flow transmission interface 413 between the AVDF server 204 owing to disconnect headend equipment 202, therefore, step 607~609 also are optional step.
As seen, among the present invention in the video monitoring system of IP based network, the connection between CE, headend equipment and each the logical layer equipment all realizes by IP network, thereby realized the all-IPization of video monitoring system.
More than, be detailed description to the video monitoring system of IP based network among the present invention.Below, be example with above-mentioned video monitoring system again, software interface updating device and method among the present invention are elaborated.
For the aforesaid video monitoring system of the present invention, for the ease of user's use, CE201 can provide a software interface to be shown to the user usually.Show the spendable object of user in this software interface, for example the headend equipment 202 that is arranged in which geographical position and/or which kind of type in the system can provide which kind of business etc. to the user to which functional module of employed CE 201 output media stream of user, system's operation layer 104.
For the spendable object of explicit user in software interface, CE 201 can obtain corresponding object data by the Signalling exchange with CCF server 203, and generate corresponding object in OO mode according to the object data that obtains, the object that generates is loaded in the software interface shown then.
Consider in the practical application, the spendable object of user may change after CE 201 connecting systems, for example the headend equipment 202 in some geographical position become some functional module that headend equipment 202 unavailable, some type changes to other types, operation layer 104 become unavailable, operation layer 104 some functional module the business change that can provide etc., so this moment, just need carry out online updating to the software interface of CE 201.Need to prove, online updating only relates to " change " and " becoming unavailable (promptly eliminating) " that the user can use object usually, can use object for newly-increased user, then can not online updating and can only rely on CE 201 again connecting system just can know.
Thus, the embodiment of the invention provides can improve software interface updating device and the software interface update method that software interface upgrades real-time in a kind of video monitoring system, certainly, the video monitoring system that comprises this software interface updating device just can guarantee also that naturally the software interface of CE upgrades and has higher real-time.
Fig. 7 is the exemplary block diagram of software interface updating device in the embodiment of the invention.As shown in Figure 7, this software interface updating device can be arranged among as shown in Figure 4 the CE 201, and comprises following logical block: message processing unit 211, data holding unit 212, object holding unit 213, object binding unit 214, displaying interface unit 215.
When the video monitoring system that CE 201 inserts as shown in Figure 4 by CCF server 203, the initial condition before just upgrading:
Message processing unit 211 is used for obtaining initialization information from CCF server 203, comprises at least one object data that the expression user can use object in this initialization information.Wherein, the initialization information that obtains from CCF server 203 can be with the Session Initiation Protocol means of signaling, and the expression user can use at least one object data of object can adopt C language, extend markup language (eXtensibleMarkup Language, XML), internet communication engine (Internet Communications Engine, ICE) format structure body such as form.
Data holding unit 212 is used for preserving at least one object data that initialization information comprises.Wherein, can have in the data holding unit 212 in memory headroom and this memory headroom and be provided with a memory table, thereby data holding unit 212 can be kept at least one object data that comprises in the initialization information in the memory table.Certainly, above-mentioned mode storage object data with memory table mainly are the advantages of utilizing the fast and versatility of the access speed of internal memory, and therefore, the mode of memory table only is a kind of optional mode, also can adopt other modes to replace in the practical application.
With object is that video camera as headend equipment 202 is an example, and object data corresponding in the memory table can be as shown in table 1:
Field type |
Field name |
Field description |
??uint |
??id |
Self-propagation index ID |
??string |
??cameraID |
Video camera ID |
??string |
??cameraName |
The video camera title |
??string |
??encoderPortID |
Encoder terminal ID |
??string |
??SMFID |
The ID of the SMF server of ownership |
??uint |
??cameraType |
Camera type, enumerated value |
??string |
??ptzType |
The The Cloud Terrace protocol type |
??uint |
??manufacturer |
Manufacturer, enumerated value |
??double |
??longitude |
Longitude |
??double |
??latitude |
Latitude |
??string |
??function |
Function and usage |
??string |
??location |
The site |
Table 1
Object holding unit 213, it is abstract to be used for that at least one object data that data holding unit 212 is preserved is carried out object respectively, obtain respectively and each object data object instance one to one, each object instance has respectively and the corresponding to attribute information of the content of corresponding objects data.Wherein, it is abstract that object holding unit 213 can carry out object according to existing OO mode, do not repeat them here.
Object binding unit 214 is used for each object instance and software interface binding with object holding unit 213.
Displaying interface unit 215 is used for the object instance with the software interface binding being loaded on software interface and showing.
After the video monitoring system that CE 201 inserts as shown in Figure 4 by CCF server 203,, can begin the renewal of software interface also with regard to after the initial condition:
Message processing unit 211 is used to receive the signaling that CCF server 203 sends after the user can use object to change, and carries the object data that changes in this signaling; The signaling that parsing receives, the object data that obtains changing.Wherein, the signaling that CCF server 203 sends after the user can use object to change can be the signaling of Session Initiation Protocol, and the data of carrying in this signaling can adopt format structure bodies such as C language, XML, ICE form.
Data holding unit 212 is used to utilize message processing unit 211 to resolve the object data that changes that obtains, and upgrades being kept at its inner corresponding objects data.Wherein, as previously mentioned, can have memory headroom in the data holding unit 212, be provided with a memory table in the memory headroom, and at least one object data is kept in the memory table, so this moment, data holding unit 212 can utilize message processing unit 211 to resolve the object data that changes that obtains, and upgrades the corresponding objects data that have been kept at memory table.In addition, data holding unit 212 is after upgrading the corresponding objects data, and further proactive notification object holding unit 213.
Object holding unit 213, as previously mentioned, its inside has established respectively and at least one object data object instance one to one, and each object instance has the corresponding to attribute information of content that can use object data with corresponding user respectively; So, object holding unit 213 also is used for after arbitrarily object data is updated, and it is abstract that the object data after upgrading is carried out object, upgrades the object instance corresponding with this object data.Wherein, because each object instance has the corresponding to attribute information of content that can use object data with corresponding user respectively, the renewal of object instance so can comprise the renewal of attribute of object instance or the deletion of object instance usually.
Object binding unit 214, as previously mentioned, it is with each object instance in the object holding unit 213 and software interface binding, and so, object binding unit 214 also is used for upgrading the binding of each object instance and software interface after object instance upgrades arbitrarily.Wherein, for the mode of this upgating object example of upgating object instance properties, the 214 related renewals bindings of object binding unit comprise: remove the binding of this object instance and software interface before upgrading and will upgrade after this object instance and software interface bind; For the mode of this upgating object example of deleting object instance, the 214 related renewals bindings of object binding unit can only comprise the binding of removing this object instance and software interface.
Displaying interface unit 215, as previously mentioned, to load on also demonstration in the software interface with the object instance of software interface binding, displaying interface unit 215 also is used for after object instance upgrades arbitrarily so, according to upgrading the software interface that the object instance renewal after binding represents with software interface.
Certainly, the object instance that the object data that data holding unit 212 had been preserved before upgrading, object holding unit 213 had obtained before upgrading, the initial information of obtaining in the time of also can not being based on CE 201 connecting systems obtains, but can obtain in advance in any time before CE 201 connecting systems, can also be object data, the object instance that had upgraded at least once.
By said apparatus as seen, software interface updating device in the present embodiment, set up separate object instance respectively at the different objects that the user can use, and after object data changes arbitrarily, can after upgrading this object data, directly upgrade corresponding object instance, and after upgrading the binding of this object instance and software interface, can realize the renewal of software interface, which thereby need not to be updated for the part of distinguishing in the software interface, and software interface is carried out the detection of long period, operations such as judgement, thus the real-time that software interface upgrades improved.
In addition, preferably, in present embodiment said apparatus as shown in Figure 7, object holding unit 213 before upgrading, obtain respectively with each object data one to one in the object instance, can further be provided with incident (Event) and describe.
Correspondingly, because being respectively arranged with Event in each object instance describes, therefore, by any object instance of object holding unit 213 renewals, before being updated, can initiatively change with existing Event informing mechanism, be updated so that any object instance in the object holding unit 213 can be known in displaying interface unit 215 according to the Event description to displaying interface unit 215 response datas.
After this, displaying interface unit 215 is according to the response of the object instance that is upgraded by object holding unit 213, further notify object binding unit 214 can know that also any object instance in the object holding unit 213 is updated so that object is bound unit 214.Wherein, displaying interface unit 215 can obtain by the response of the object instance of object holding unit 213 renewals by the mode of existing subscription Event incident.
Like this, describe realization Event informing mechanism based on Event and can further improve the real-time that software interface upgrades, and be easy to realize.
Fig. 8 is the exemplary process diagram of software interface update method in the embodiment of the invention.As shown in Figure 8, the software interface update method in the present embodiment comprises:
Step 801 when CE inserts as shown in Figure 4 video monitoring system by the CCF server, is obtained initialization information and is resolved from the CCF server, obtains at least one object data.Wherein, comprise at least one object data that the expression user can use object in this initialization information.
In this step, the initialization information that obtains from the CCF server can be with the Session Initiation Protocol means of signaling, and the expression user can use at least one object data of object can adopt format structure bodies such as C language, XML, ICE form.
Step 802 is preserved at least one object data that comprises in the initialization information.
In the practical application, can be in CE inside further be provided with and this memory headroom in be provided with a memory table, thereby in this step, at least one object data that comprises in the initialization information can be kept in the memory table.Certainly, above-mentioned mode storage object data with memory table mainly are the advantages of utilizing the fast and versatility of the access speed of internal memory, and therefore, the mode of memory table only is a kind of optional mode, also can adopt other modes to replace in the practical application.
Step 803, it is abstract that at least one object data that step 802 is preserved carries out object respectively, obtains respectively and each object data object instance one to one, and each object instance has respectively and the corresponding to attribute information of the content of corresponding objects data.
In this step, it is abstract to carry out object according to existing OO mode, does not repeat them here.
Step 804 is bound each object instance and software interface that step 803 obtains.
Step 805 will load in the software interface and demonstration with the object instance of software interface binding.
After this step, the spendable object of user changes, thereby can begin the renewal of software interface.
Step 806 receives the signaling that the CCF server sends after the user can use object to change, carry the object data that changes in this signaling, resolves the signaling that receives, the object data that obtains changing then.
In this step, the signaling that the CCF server sends after the user can use object to change can be the signaling of Session Initiation Protocol, and the data of carrying in this signaling can adopt format structure bodies such as C language, XML, ICE form.
Step 807 utilizes step 806 to resolve the object data that changes that obtains, with the corresponding objects Data Update at least one object data of having preserved.
As previously mentioned, memory headroom can further be set in CE inside, be provided with a memory table in the memory headroom, and at least one object data is kept in the memory table, so in this case, can utilize step 806 to resolve the object data that changes that obtains in this step, upgrade the corresponding objects data that have been kept at memory table.
Step 808, it is abstract that the object data after step 807 upgraded carries out object, upgrades object instance corresponding with this object data in the existing object instance.
Because each object instance has the corresponding to attribute information of content that can use object data with corresponding user respectively, so in this step, upgrading the object instance corresponding with this object data comprises: the attribute of upgating object example or deletion object instance.
Step 809 after object instance upgrades arbitrarily, is upgraded the binding of each object instance and software interface.
For the mode of this upgating object example of the related upgating object instance properties of step 808, the described renewal binding of this step comprises: remove the binding of this object instance and software interface before upgrading and will upgrade after this object instance and software interface bind.
For the mode of this upgating object example of the related deletion object instance of step 808, the described renewal binding of this step can only comprise the binding of removing this object instance and software interface.
Step 810 is after object instance upgrades arbitrarily, according to upgrading the software interface that the object instance renewal after binding represents with software interface.
So far, this flow process finishes.
Need to prove, object data of having preserved before the step 806 and the object instance that obtains, the initial information of obtaining in the time of also can not being based on the CE connecting system obtains, but can obtain in advance in any time before the CE connecting system; Perhaps, can also be object data, the object instance that had upgraded at least once, i.e. execution in step 806~step 810 once more after above-mentioned flow process.That is to say that above-mentioned steps 801~805 only is at for the first time upgrading related processing procedure, and nonessential, thereby only is shown as dotted line in Fig. 8.
By above-mentioned flow process as seen, software interface update method in the present embodiment, set up separate object instance respectively at the different objects that the user can use, and after object data changes arbitrarily, can after upgrading this object data, directly upgrade corresponding object instance, and after upgrading the binding of this object instance and software interface, can realize the renewal of software interface, which thereby need not to be updated for the part of distinguishing in the software interface, and software interface is carried out the detection of long period, operations such as judgement, thus the real-time that software interface upgrades improved.
In addition, preferably, in present embodiment above-mentioned flow process as shown in Figure 8, with each object data one to one in the object instance, can further be provided with incident (Event) and describe respectively.
Correspondingly, describe, therefore,, before step 808, can describe with existing Event informing mechanism active response data variation according to Event at the object instance that step 808 is updated owing to be respectively arranged with Event in each object instance.
After this, in step 809 and step 810, can know that any object instance is updated according to the response of the object instance that is updated in step 808.
Like this, describe realization Event informing mechanism based on Event and can further improve the real-time that software interface upgrades, and be easy to realize.
Need to prove, can improve the video monitoring system that software interface upgrades real-time in the present embodiment, and a kind of software interface updating device and software interface update method, only be to be that example describes with video monitoring system as described in Figure 4 provided by the present invention.In the practical application,, all can realize such scheme, enumerate no longer one by one at this based on identical principle at different video monitoring systems.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.