CN108418779A - A kind of method and relevant device of the real-time Communication for Power in Internet of Things - Google Patents

A kind of method and relevant device of the real-time Communication for Power in Internet of Things Download PDF

Info

Publication number
CN108418779A
CN108418779A CN201710073635.8A CN201710073635A CN108418779A CN 108418779 A CN108418779 A CN 108418779A CN 201710073635 A CN201710073635 A CN 201710073635A CN 108418779 A CN108418779 A CN 108418779A
Authority
CN
China
Prior art keywords
media
internet
management platform
stream
things equipment
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.)
Granted
Application number
CN201710073635.8A
Other languages
Chinese (zh)
Other versions
CN108418779B (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 CN201710073635.8A priority Critical patent/CN108418779B/en
Publication of CN108418779A publication Critical patent/CN108418779A/en
Application granted granted Critical
Publication of CN108418779B publication Critical patent/CN108418779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The method for real-time Communication for Power that this application discloses a kind of in Internet of Things, including:User equipment to user equipment management platform send include internet of things equipment mark and media stream identification the first media subscription ask, receive the third media subscription notice including internet of things equipment mark, media stream identification and first-class link address that user equipment management platform is sent, receive the target medium stream that user equipment management platform is sent using first-class link address, target medium stream is determined that target medium stream identifies corresponding target internet of things equipment by internet of things equipment and provides by user equipment management platform according to media stream identification.The application also provides the user equipment that the above method may be implemented, user equipment management platform, internet of things equipment management platform and internet of things equipment.The application can selectively accessing internet of things equipment acquisition content.

Description

A kind of method and relevant device of the real-time Communication for Power in Internet of Things
Technical field
This application involves the communications field more particularly to a kind of methods and relevant device of the real-time Communication for Power in Internet of Things.
Background technology
Internet of Things (Internet Of Things, IOT) will be sensed using communication technologys such as localized network or internets The equipment such as device, controller and household electrical appliance, which link together, to be interacted, or is interacted with user, formed people and object, object with Object is connected, and realizes information-based, remote management and control and intelligentized network.When people and object or object will carry out real-time Communication for Power with object When, it needs to establish session.Session initiation protocol (Session Initiation Protocol, SIP) is a text based Application layer control protocol, the session for creating, changing and discharging one or more participants.
In the prior art, establish the process of session approximately as:Referring to Fig. 1, in user equipment A and user equipment B When accessing multi-medium data (such as audio, video or the text) on the same internet of things equipment simultaneously, user equipment A, Yong Hushe Standby B establishes two respectively with the internet of things equipment Internet interconnection agreement address (Internet Protocol, IP) and port Independent session.Multi-medium data is copied as two parts by internet of things equipment, is divided multi-medium data by two independent sessions It is not sent to user equipment A and user equipment B.
But the session that the IP address and port according to session entity are established, user equipment are only capable of passively receiving Internet of Things The Media Stream that equipment is sent, function are more single.The function of existing internet of things equipment is stronger and stronger, existing media session More user demands are cannot be satisfied, for example selective access is carried out to the Media Stream of internet of things equipment.
Invention content
The method and relevant device for real-time Communication for Power that this application provides a kind of in Internet of Things, can selectively access The content of internet of things equipment acquisition.
First aspect provides a kind of method of the real-time Communication for Power in Internet of Things, which includes user equipment, user Device management platform, internet of things equipment management platform and internet of things equipment.This method includes:User equipment will be set including Internet of Things The first media subscription request of standby mark and media stream identification is sent to user equipment management platform, user equipment management platform It will be identified including internet of things equipment, the third media subscription of media stream identification and first-class link address notice is sent to user Equipment, first-class link address are connect for establishing user equipment with the stream of user equipment management platform.User equipment management is flat Platform determines target medium stream according to media stream identification from the Media Stream of reception, then uses first-class link address by target matchmaker Body stream is sent to user equipment.Wherein, target medium stream identifies corresponding target internet of things equipment by internet of things equipment and provides.According to This is implemented, and after user equipment sends media subscription request to user equipment management platform, user equipment management platform can basis Media stream identification determines target medium stream from the Media Stream of reception, and the target medium stream from object networked devices is sent To user equipment, therefore user equipment is capable of the Media Stream of selective access target internet of things equipment publication.
In a kind of possible realization method of first aspect, user equipment will include internet of things equipment mark and Media Stream The first of mark unsubscribes request and is sent to user equipment management platform, and user equipment management platform is according to internet of things equipment mark After knowledge and media stream identification find corresponding media session, confirmation message is unsubscribed to user equipment transmission, the cancellation It subscribes to confirmation message and is used to indicate the corresponding stream link address of user equipment release media stream identification.Implement according to this, user equipment Media subscription can be cancelled, stop receiving Media Stream, provide the flexibility of scheme implementation.
Second aspect provides a kind of method of the real-time Communication for Power in Internet of Things, which includes user equipment, Yong Hushe Standby management platform, internet of things equipment management platform and internet of things equipment.This method includes:User equipment will include internet of things equipment The request of first media subscription of mark and media stream identification is sent to user equipment management platform, and user equipment management platform is sentenced Disconnected whether there is meets the media session that media reuse condition;If there is no the media session for meeting media reuse condition, user Device management platform is asked according to the first media subscription, distributes first-class link address and second link address, will include object The second media subscription request of networked devices mark, media stream identification and second link address is sent to internet of things equipment pipe Platform notifies after receiving the second media subscription notice that internet of things equipment management platform is sent according to the second media subscription Third media subscription notice is generated, third media subscription notice is sent to user equipment, user equipment is established and is set to Internet of Things For the media session of corresponding target internet of things equipment is identified, then user equipment management platform uses second link address, The target medium stream that internet of things equipment management platform is sent by third stream link address is received, it will using first-class link address Target medium stream is sent to user equipment.Wherein, the second media notice include internet of things equipment identify, media stream identification and the Second-rate link address, third media subscription notice include internet of things equipment identify, media stream identification and third stream link address, Target medium stream identifies corresponding target internet of things equipment by internet of things equipment and provides.Implement according to this, user equipment management platform The target medium stream from object networked devices can be sent out as the intermediate node of the media session for target medium stream User equipment is given, the Media Stream for making user equipment that can be issued with selective access internet of things equipment.
In a kind of possible realization method of second aspect, that user equipment is sent is received in user equipment management platform After the request of one media subscription, if in the presence of the media session for meeting media reuse condition, user equipment management platform sets for user Back-up matches first-class link address, and obtains second link address from the media session for meeting media reuse condition, establishes The correspondence of first-class link address and second link address;Then user equipment management platform sends to user equipment and wraps Include internet of things equipment mark, the third media subscription notice of media stream identification and first-class link address, first-class connection Location is connect for establishing user equipment with the stream of user equipment management platform.User equipment management platform is reused by meeting media The media session of condition receives the target medium stream that internet of things equipment management platform is sent, then uses first-class link address Target medium stream is sent to user equipment.Implement according to this, in the case of multiple user equipment access same Media Stream, uses Family device management platform reuses media session, sends Media Stream to user respectively, and without establishing independent meeting for each user Words have saved the Internet resources for media stream to reduce internet of things equipment to the flow between user equipment.
In the alternatively possible realization method of second aspect, receive what user equipment was sent in user equipment management platform After the request of first media subscription, if in the presence of the media session for meeting media reuse condition, user equipment management platform is user Equipment distributes first-class link address, and obtains second link address from the media session for meeting media reuse condition, builds The correspondence of vertical first-class link address and second link address;User equipment management platform will include internet of things equipment mark The second media subscription request that knowledge, media stream identification, second link address and Media Stream reuse mark is sent to Internet of Things Device management platform;Internet of things equipment management platform reuses mark according to Media Stream and determines the corresponding target medium of media stream identification Stream belongs to reusable medium stream, and the matchmaker for meeting media and reusing condition is determined according to internet of things equipment mark and media stream identification Know from experience words, obtains third stream link address from the media session for meeting media reuse condition, then will include internet of things equipment The second media subscription notice of mark, media stream identification and third stream link address is sent to user equipment management platform.With Family device management platform notifies to generate third media subscription notice according to the second media subscription, third media subscription is notified to send To user equipment, the media session that condition is then reused by meeting media receives the target that internet of things equipment management platform is sent Target medium stream is sent to user equipment by Media Stream using first-class link address.Wherein, third media subscription notice includes Internet of things equipment mark, media stream identification and first-class link address.Implement according to this, internet of things equipment management platform can be from User equipment management platform obtains the reuse state of Media Stream, to monitor and manage Media Stream, improves the pipe to Media Stream Reason ability.
In the alternatively possible realization method of second aspect, user equipment management platform judges whether to meet media The media session of reuse condition is specifically as follows:When the request of the first media subscription further includes the transceiver mode of target medium stream, User equipment management platform judges whether the transceiver mode of target medium stream is sending mode, if the transceiver mode of target medium stream It is not sending mode, it is determined that there is no the media sessions for meeting media reuse condition;If the transceiver mode of target medium stream is Sending mode then judges whether the media session for being used for transmission target medium stream, if there is no be used for transmission target medium The media session of stream, it is determined that there is no the media sessions for meeting media reuse condition;If in the presence of target medium stream is used for transmission Media session, then judge whether the remaining medium replication ability for the media session for being used for transmission target medium stream meets user and sets Standby quality of service requirement, if not satisfied, then determining that there is no the media sessions for meeting media reuse condition, if satisfied, then really It is fixed to there is the media session for meeting media reuse condition.Implement according to this, an embodiment of the present invention provides a kind of judgement media sessions Whether meet the method that media reuse condition, improves the feasibility of scheme.
In the alternatively possible realization method of second aspect, user equipment management platform judges whether to meet media The media session of reuse condition is specifically as follows:When the request of the first media subscription further includes the media capability and mesh of user equipment When marking the transceiver mode of Media Stream, user equipment management platform judges whether the transceiver mode of target medium stream is sending mode, If the transceiver mode of target medium stream is not sending mode, it is determined that there is no the media sessions for meeting media reuse condition;If The transceiver mode of target medium stream is sending mode, then judges whether the media session for being used for transmission target medium stream, if There is no the media sessions for being used for transmission target medium stream, it is determined that there is no the media sessions for meeting media reuse condition;If In the presence of the media session for being used for transmission target medium stream, then the remaining media for being used for transmission the media session of target medium stream are judged Whether replication capacity meets the performance requirement of user equipment, if not satisfied, then determining that there is no the matchmakers for meeting media reuse condition Know from experience words;If satisfied, then judging whether the media session with target coding/decoding capability, and if it exists, then determine and exist completely Sufficient media reuse the media session of condition, if being not present, it is determined that there is no the media sessions for meeting media reuse condition.Its In, target coding/decoding capability is used to target medium circulation being changed to and the matched Media Stream of the media capability of user equipment.According to this Implement, judges whether media session meets the method that media reuse condition, the side of improving an embodiment of the present invention provides another kind The flexibility that case is implemented.
In the alternatively possible realization method of second aspect, user equipment management platform receives the packet that user equipment is sent Include internet of things equipment mark and media stream identification first unsubscribes request, when detecting the corresponding target of media stream identification When Media Stream is in reuse state, user equipment management platform discharges first-class link address, sends to cancel to user equipment and order Read confirmation message;When detecting that the corresponding target medium stream of media stream identification is not in reuse state, user equipment management is flat Platform sends second to internet of things equipment management platform and unsubscribes request, and second, which unsubscribes request, is used to indicate internet of things equipment Management platform stops sending target medium stream, and user equipment management platform is ordered according to the cancellation that internet of things equipment management platform is sent Confirmation message is read, removes media session corresponding with target medium stream, and confirmation message is unsubscribed to user equipment transmission. Implement according to this, when target medium stream is in reuse state, user equipment management platform does not remove user equipment to target Internet of Things The media session of net equipment causes other users can not access target Media Stream to avoid media session is removed.Work as target medium When stream is not in reuse state, user equipment management platform can remove media meeting of the user equipment to target internet of things equipment Words, to avoid the waste of Internet resources.
In the alternatively possible realization method of second aspect, first-class link address is discharged in user equipment management platform Before, when detecting that the corresponding target medium stream of media stream identification is in reuse state, user equipment management platform is to Internet of Things It includes that internet of things equipment identifies, media stream identification and Media Stream reuse the second cancellation identified and order that net device management platform, which is sent, Request is read, internet of things equipment management platform reuses mark according to Media Stream and determines that the corresponding target medium stream of media stream identification is in Reuse state, after what user equipment management platform reception internet of things equipment management platform was sent unsubscribes confirmation message, according to What internet of things equipment management platform was sent unsubscribes the first-class link address of confirmation message release.Implement according to this, Internet of Things is set Standby management platform reuses mark according to Media Stream can obtain the status information of Media Stream, in order to internet of things equipment management platform Effective monitoring and management are carried out to Media Stream.
The third aspect provides a kind of method of the real-time Communication for Power in Internet of Things, which includes user equipment, Yong Hushe Standby management platform, internet of things equipment management platform and internet of things equipment.This method includes:Internet of things equipment management platform, which receives, to be used The second media subscription request that family device management platform is sent;When the request of the second media subscription includes internet of things equipment mark, matchmaker When body traffic identifier and second link address, internet of things equipment management platform is asked according to the second media subscription, distributes third Flow link address and the 4th stream link address;Corresponding target internet of things equipment transmission third media are identified to internet of things equipment to order Request is read, the request of third media subscription includes internet of things equipment mark, media stream identification and the 4th stream link address, Internet of Things Device management platform receives the first media subscription that target internet of things equipment is sent by the 4th stream link address and notifies, according to the One media subscription notifies that sending the second media subscription to user equipment management platform notifies, the second media subscription notice includes Internet of Things Net device identification, media stream identification and third stream link address, third stream link address are flat for establishing user equipment management Platform is connected with the stream of internet of things equipment management platform.Internet of things equipment management platform receives object by the 4th stream link address After the target medium stream that networked devices are sent, target medium stream is sent to user equipment management using third stream link address and is put down Platform.Wherein, the first media subscription notice includes internet of things equipment mark and media stream identification, and target medium stream is by target Internet of Things Net equipment is obtained according to media stream identification.Implement according to this, internet of things equipment management platform can be as target medium stream Target medium stream is sent to user equipment by user equipment management platform, makes user equipment by the intermediate node of media session The Media Stream that can be issued with selective access internet of things equipment.
In a kind of possible realization method of the third aspect, it is flat to receive user equipment management in internet of things equipment management platform Platform send the second media subscription request after, when the second media subscription request include internet of things equipment mark, media stream identification, When second link address and Media Stream reuse mark, internet of things equipment management platform is identified according to internet of things equipment and matchmaker Body traffic identifier determines target medium session, is that the third stream that target medium session distributes connects ground from target medium acquisition conversation Location;Then include internet of things equipment mark, media stream identification to the transmission of user equipment management platform according to second link address And the second media subscription notice of third stream link address, internet of things equipment management platform receive object by target medium session After networked devices identify the target medium stream that corresponding target internet of things equipment is sent, using third stream link address by target matchmaker Body stream is sent to user equipment management platform.Implement according to this, in the case of multiple user equipment access same Media Stream, uses Family device management platform can reuse media session, Media Stream be obtained from internet of things equipment management platform, then respectively to user Media Stream is sent, and without establishing independent session for each user, to reduce internet of things equipment between user equipment Flow, saved the Internet resources for being used for transmission Media Stream.
In the alternatively possible realization method of the third aspect, it is flat that internet of things equipment management platform receives user equipment management The second of platform transmission unsubscribes request, and unsubscribe request according to second unsubscribes really to the transmission of user equipment management platform Recognize message.Wherein, second to unsubscribe request include that internet of things equipment mark, media stream identification and Media Stream are reused and identified. Implement according to this, internet of things equipment management platform can obtain the status information of target medium stream, energy from user equipment management platform It is enough that effective monitoring and management are carried out to target medium stream.
In the alternatively possible realization method of the third aspect, it is flat that internet of things equipment management platform receives user equipment management After second including internet of things equipment mark and media stream identification that platform is sent unsubscribes request, identified to internet of things equipment It includes that internet of things equipment identifies and the third of media stream identification unsubscribes request that corresponding target internet of things equipment, which is sent, the Three, which unsubscribe request, is used to indicate the corresponding target internet of things equipment stopping transmission media stream identification pair of internet of things equipment mark The target medium stream answered, internet of things equipment management platform unsubscribe confirmation message dismounting and mesh according to what internet of things equipment was sent The corresponding media session of Media Stream is marked, confirmation message is unsubscribed to the transmission of user equipment management platform.Implement according to this, Internet of Things After device management platform reception second unsubscribes request, media session can be removed, to avoid the waste of Internet resources.
Fourth aspect provides a kind of user equipment, and user equipment has the method for realizing the above-mentioned real-time Communication for Power in Internet of Things The function of middle user equipment.Function can also execute corresponding software realization by hardware realization by hardware.Hardware or Software includes one or more modules corresponding with above-mentioned function.
5th aspect provides a kind of user equipment management platform, and user equipment management platform has realization above-mentioned in Internet of Things The function of user equipment management platform in the method for middle real-time Communication for Power.Function can also pass through hardware by hardware realization Execute corresponding software realization.Hardware or software include one or more modules corresponding with above-mentioned function.
6th aspect provides a kind of internet of things equipment management platform, and internet of things equipment management platform has realization above-mentioned in object In networking in the method for real-time Communication for Power internet of things equipment management platform function.Function can also be led to by hardware realization It crosses hardware and executes corresponding software realization.Hardware or software include one or more modules corresponding with above-mentioned function.
7th aspect provides a kind of computer readable storage medium, including instruction, when run on a computer so that The method that computer executes above-mentioned various aspects.
Eighth aspect provides a kind of computer program product including instruction, when run on a computer so that meter The method that calculation machine executes above-mentioned various aspects.
From the embodiment of the present invention as can be seen that internet of things equipment can issue the Media Stream of multiple types, and it is each class Media stream identification is respectively set in the Media Stream of type, and user equipment can pass through user equipment management platform and internet of things equipment pipe Platform sends media subscription request, to establish the matchmaker of the appointment of medium stream for internet of things equipment to the internet of things equipment Know from experience words.After establishing session, user equipment can receive specified Media Stream from internet of things equipment.The application can be to Internet of Things The Media Stream that net equipment obtains carries out selective access, extends media interviews ability.
Description of the drawings
Fig. 1 is a schematic diagram of the method for real-time Communication for Power in Internet of Things in the prior art;
Fig. 2 is a schematic diagram of the application scenarios of real-time Communication for Power in Internet of Things in the embodiment of the present invention;
Fig. 3 is a schematic diagram of electronic equipment in the embodiment of the present invention;
Fig. 4 is a flow diagram of the method for real-time Communication for Power in Internet of Things in the embodiment of the present invention;
Fig. 5 is another flow diagram of the method for real-time Communication for Power in Internet of Things in the embodiment of the present invention;
Fig. 6 is a schematic diagram of user equipment in the embodiment of the present invention;
Fig. 7 is a schematic diagram of user equipment management platform in the embodiment of the present invention;
Fig. 8 is a schematic diagram of internet of things equipment management platform in the embodiment of the present invention.
Specific implementation mode
Referring to Fig. 2, a schematic diagram of Internet of Things provided in an embodiment of the present invention, can implement this in the Internet of Things The method of real-time Communication for Power in Internet of Things provided is provided.Internet of Things includes user equipment, user equipment management platform, Internet of Things Device management platform, internet of things equipment and network.User equipment can pass through network connection, Yong Hushe with user equipment management platform With internet of things equipment management platform by network connection, internet of things equipment management platform can lead to standby management platform with internet of things equipment Cross network connection.Internet of things equipment can be controller, sensor or camera etc., used in user's life it is small to switch, Ammeter, water meter, electric light arrive greatly television set, water dispenser, air-conditioning, floor heating, projector, washing machine or electric cooker etc..User equipment can To be PC, mobile phone, tablet computer or personal digital assistant etc..Network can be IP network or other networks, including road By equipment such as device and interchangers, it is used for transmission the message between each equipment in Internet of Things.
Internet of things equipment management platform can deploy the server of internet of things equipment management function, can also be with soft Cloud Server existing for part form.Similar, user equipment management platform can deploy user equipment management function Server, can also be existing Cloud Server in a software form.
User equipment (such as computer, mobile phone) shown in Fig. 2, internet of things equipment (such as camera, intelligent switch, intelligent water Table), internet of things equipment management platform and user equipment management platform can be real in a manner of the electronic equipment (or system) in Fig. 3 It is existing.Fig. 3 is the electronic equipment schematic diagram in the embodiment of the present invention.Electronic equipment 300 includes at least one processor 301, communication Bus 302, memory 303 and at least one communication interface 304.
Processor 301 can be a processor, can also be the general designation of multiple processing elements.For example, processor 301 can Can also be application-specific integrated circuit to be a general central processor (Central Processing Unit, CPU) (application-specific integrated circuit, ASIC), or it is one or more for controlling application scheme The integrated circuit that program executes, such as:One or more microprocessors (digital signal processor, DSP), or, One or more field programmable gate array (Field Programmable Gate Array, FPGA).
Wherein, electronic equipment 300 may include multiple processors, such as the processor 301 in Fig. 3 and processor 305.This Each in a little processors can be monokaryon (single-CPU) processor, can also be a multinuclear (multi- CPU) processor.Here processor can refer to one or more equipment, circuit, and/or for handling data (such as computer Program instruction) process cores.
Communication bus 302 can be industry standard architecture (Industry Standard Architecture, ISA) Bus, external equipment interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, Data/address bus, controlling bus etc..Only indicated with a thick line for ease of indicating, in Fig. 3, it is not intended that an only bus or A type of bus.
Memory 303 can be read-only memory (read-only memory, ROM) or can store static information and instruction Other kinds of static storage device, random access memory (random access memory, RAM) or letter can be stored The other kinds of dynamic memory of breath and instruction, can also be Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this. Memory can be individually present, and be connected with processor by bus.Memory can also be integrated with processor.
Wherein, memory 303 is for storing the application code for realizing scheme provided in an embodiment of the present invention, and by Reason device 301 executes to control.Processor 301 realizes this for executing the application code stored in memory 303 The scheme that inventive embodiments provide.
Communication interface 304, using the device of any transceiver one kind, for other equipment or communication, such as Ethernet, wireless access network (RAN), WLAN (Wireless Local Area Networks, WLAN) etc..Communication connects Mouth 304 may include the receiving unit with receive capabilities and the transmission unit with sending function.
Referring to Fig. 4, one embodiment of the method for the real-time Communication for Power provided by the present application in Internet of Things includes:
Step 401, internet of things equipment issue internet of things equipment mark in internet of things equipment management platform and media are failed to be sold at auction Know.
In the present embodiment, internet of things equipment is registered in internet of things equipment management platform, and user equipment is in user equipment management It is registered on platform, internet of things equipment management platform is established relevant with user equipment management platform.For example, user equipment pipe Platform is registered in internet of things equipment management platform or internet of things equipment management platform is noted in user equipment management platform Volume.User equipment management platform can be obtained from internet of things equipment management platform the device identification of published internet of things equipment with And media stream identification, the media capability of the internet of things equipment of internet of things equipment publication can also be obtained, media capability includes media Stream type, the coding/decoding capability of Media Stream, the transceiver mode of local media stream or media stream formats etc..
Media Stream can be video flowing, audio stream, text or media stream.Media stream is video flowing, audio stream or text The Media Stream that a variety of data flows such as this combine.Internet of things equipment can acquire environmental data, be generated not according to environmental data Media stream identification is arranged for different types of Media Stream in the Media Stream of same type.For example, when the media of internet of things equipment publication When traffic identifier is Media Stream 1, show that internet of things equipment can provide the Media Stream of text type.When media stream identification is Media Stream When 2, show that internet of things equipment can provide audio stream.When media stream identification is Media Stream 3, show that internet of things equipment can carry For video flowing.In another example, when the media stream identification of internet of things equipment publication is Media Stream 1, show that Internet of Things is set The standby video flowing that high definition can be provided.When media stream identification is Media Stream 2, show that internet of things equipment can provide regarding for SD Frequency flows.
Internet of things equipment management platform can provide the media capability list of internet of things equipment, or provide search Internet of Things The function of the media capability of equipment, for user equipment access.It is understood that the information of Internet of Things publication is in addition to Internet of Things Except device identification, media stream identification and media capability, the other equipment information of the internet of things equipment can also be issued, such as is set Standby parameter (such as unit type, equipment size, device type), equipment manufacturers etc..
Step 402, user equipment management platform receive the first media subscription request that user equipment is sent.
The request of first media subscription may include internet of things equipment mark and media stream identification.It is understood that in order to Media session is established, the request of the first media subscription further includes the stream link address of user equipment.In addition, the first media subscription is asked Can also include the other information of internet of things equipment publication, such as the media capability of internet of things equipment.Internet of things equipment mark is used for Determine the target internet of things equipment of internet of things equipment management platform management, the matchmaker that media stream identification is used to issue from internet of things equipment Target medium stream is determined in body stream.
When user will obtain the target medium stream of target internet of things equipment, user equipment can be flat to user equipment management Platform sends the request of the first media subscription.
For example, in SIP sessions, media subscription request can be SUBSCRIBE message, the SUBSCRIBE message May include:Number, Media Stream number, the stream link address of media capability and user equipment of internet of things equipment.User sets Standby stream link address includes but not limited to the IP address and port numbers of user equipment.
Following manner expression may be used in media stream identification:
A=stream-id:video-down-1
Wherein, a=* is that Session Description Protocol (Session Description Protocol, SDP) extended attribute is fixed Justice.A=stream-id indicates that the extended attribute of definition is media stream identification, and video-down-1 is the attribute of media stream identification Value.
Step 403, user equipment management platform judge whether the media session for meeting media reuse condition, if so, 404 are thened follow the steps, if it is not, thening follow the steps 414.
The detailed process that user equipment management platform judges whether to meet the media session that media reuse condition can be with Refering to following embodiment.
In one alternate embodiment, the request of the first media subscription further includes the transceiver mode of target medium stream.User sets Standby management platform judges whether the transceiver mode of target medium stream is sending mode, if not, it is determined that there is no meet media weight With the media session of condition;If so, judge whether the media session for being used for transmission target medium stream, if being not present, Determine that there is no the media sessions for meeting media reuse condition;If in the presence of the media meeting for being used for transmission target medium stream is judged Whether the remaining medium replication ability of words meets the quality of service requirement of user equipment, if not satisfied, then determining that there is no meet Media reuse the media session of condition, meet the media session that media reuse condition if satisfied, then determining and existing.
Specifically, media session, which meets media, reuses the following multiple conditions of condition needs satisfaction:
1, the transceiver mode of target medium stream is sending mode.
2, there is the media session for being used for transmission target medium stream.
3, the service quality that the remaining medium replication ability of the media session of transmission objectives Media Stream meets user equipment is wanted It asks.
For condition 1, the transceiver mode of target medium stream refers to the mould that internet of things equipment received or sent target medium stream Formula.For example, a=sendonly is sending mode, indicate that internet of things equipment sends Media Stream.A=receiveonly is to receive mould Formula indicates that internet of things equipment receives Media Stream.Since user equipment needs to obtain Media Stream, internet of things equipment from internet of things equipment User demand could be met by sending Media Stream.If the transceiver mode of target medium stream is reception pattern, show target medium Stream will flow to internet of things equipment from user equipment, and the media session for carrying target medium stream cannot meet user's requirement, because This its be unsatisfactory for media and reuse condition.
For condition 2, if there is the media session for being used for transmission target medium stream, then the media session is possible to full Sufficient condition 3.If there is no the media session for being used for transmission target medium stream, then can determine that there is no meet media reuse The media session of condition.
For condition 3, if there is the media session for being used for transmission target medium stream, since the media session is by other User equipment uses, when the user equipment of above-mentioned initiation media subscription request prepares using the media session, if the media The service quality (Quality of Service, QoS) that the remaining medium replication ability of session cannot meet the user equipment needs It asks, then showing the media session can not be utilized to copy the Media Stream for meeting user's requirement, i.e. the media session cannot meet The requirement of the user equipment, therefore it is unsatisfactory for media and reuses condition.
If conditions above is satisfied by, it is determined that exist and meet the media session that media reuse condition.If being unsatisfactory for the above item One or more of part, it is determined that there is no the media sessions for meeting media reuse condition.It is understood that above judge Step has no fixed sequencing, can also sequentially be judged using other in practical applications.
In another alternative embodiment, the request of the first media subscription further includes the media capability and target of user equipment The transceiver mode of Media Stream.User equipment management platform judges whether the transceiver mode of target medium stream is sending mode, if it is not, Then determine that there is no the media sessions for meeting media reuse condition;If so, judging whether to be used for transmission target medium stream Media session, if being not present, it is determined that there is no meet media reuse condition media session;If in the presence of judgement is used for Whether the remaining medium replication ability of the media session of transmission objectives Media Stream meets the performance requirement of user equipment, if discontented Foot, it is determined that there is no the media sessions for meeting media reuse condition;If satisfied, then judging whether with target encoding and decoding The media session of ability, target coding/decoding capability are used to target medium circulation being changed to matched with the media capability of user equipment Media Stream, and if it exists, the media session for existing and meeting media reuse condition is then determined, if being not present, it is determined that there is no meet Media reuse the media session of condition.
Specifically, media session, which meets media, reuses the following multiple conditions of condition needs satisfaction:
1, the transceiver mode of target medium stream is sending mode.
2, there is the media session for being used for transmission target medium stream.
3, the service quality that the remaining medium replication ability of the media session of transmission objectives Media Stream meets user equipment is wanted It asks.
4, there is the media session with target coding/decoding capability.
Condition 1-3 is similar to previous embodiment, and details are not described herein again.
For condition 4, in the present embodiment, when user equipment media capability and internet of things equipment media capability not Timing, user equipment send the first media subscription request for the media capability for including user equipment to user equipment management platform. When the media capability of user equipment is matched with the media capability of internet of things equipment, user equipment is sent out to user equipment management platform Send the first media subscription request for the media capability for not including user equipment.Therefore, when detecting the first media subscription request bag When including the media capability of user equipment, the media capability of the media capability and internet of things equipment that show user equipment mismatches.Such as There is the media session with target coding/decoding capability in fruit, then user equipment management platform can be by target by the media session Media stream transition is the available Media Stream of user equipment.If there is no the media session, then showing cannot be by target medium stream The available Media Stream of user equipment is converted to, therefore there is no the media sessions for meeting media reuse condition.
If conditions above is satisfied by, it is determined that exist and meet the media session that media reuse condition.If being unsatisfactory for the above item One or more of part, it is determined that there is no the media sessions for meeting media reuse condition.
If the media session for meeting media reuse condition is not present in step 404, user equipment management platform is according to the first matchmaker Body subscribes to request, distributes first-class link address and second link address.
First-class link address and second link address are the stream link address of user equipment management platform.It is first-class Link address is the address of user oriented equipment, the stream link address by user equipment and first-class link address, Yong Hushe It is standby can be with the information such as media stream and/or media flow control instructions with user equipment management platform.Second link address is The address of internet of things oriented device management platform.
If there is no the media session for meeting media reuse condition, user equipment management platform creates media session, is new Media session distributes first-class link address and second link address.
Step 405, user equipment management platform send the request of the second media subscription to internet of things equipment management platform.
The request of second media subscription includes but not limited to internet of things equipment mark, media stream identification and second connection ground Location.After internet of things equipment management platform receives second link address, user equipment can be accessed according to second link address Management platform.
Step 406, when the request of the second media subscription includes that internet of things equipment mark, media stream identification and second connect When address, internet of things equipment management platform is asked according to the second media subscription, distributes third stream link address and the 4th stream connection Address.
Third stream link address and the 4th stream link address are the stream link address of internet of things equipment management platform.Third The stream link address that link address is user oriented device management platform is flowed, connects ground with third stream by second link address Location, user equipment management platform can be with the letters such as media stream and/or media flow control instructions with internet of things equipment management platform Breath.4th stream link address is the stream link address of internet of things oriented equipment.
After internet of things equipment receives the request of the second media subscription, if it includes Media Stream to detect the request of the second media subscription not Mark is reused, then creates media session, third stream link address and the 4th stream link address are distributed for new media session.In addition, Internet of things equipment management platform identifies according to internet of things equipment and determines target internet of things equipment, triggers step 407.
Step 407, internet of things equipment management platform send the request of third media subscription to target internet of things equipment.Third matchmaker It includes but not limited to internet of things equipment mark, media stream identification and the 4th stream link address that body, which subscribes to request,.
Step 408, target internet of things equipment send the first media subscription notice to internet of things equipment management platform.
First media subscription notice includes internet of things equipment mark and media stream identification, further includes the stream of internet of things equipment Link address.By the stream link address of the 4th stream link address and internet of things equipment, internet of things equipment management platform and Internet of Things Net equipment can be with the information such as media stream and/or media flow control instructions.
After internet of things equipment management platform receives the first media subscription notice of target internet of things equipment transmission, target is determined Internet of things equipment can provide target medium stream to user equipment, and the stream of internet of things equipment connects during the first media subscription is notified Third stream link address is revised as in address, obtains the second media subscription notice, is then sent to the second media subscription notice State user equipment management platform.
Step 409, user equipment management platform receive the second media subscription notice that internet of things equipment management platform is sent. Second media subscription notice includes but not limited to internet of things equipment mark, media stream identification and third stream link address.
The second media subscription notice that step 410, user equipment management platform are sent according to internet of things equipment management platform, Third media subscription notice is sent to user equipment.Third media subscription notice includes but not limited to internet of things equipment mark, matchmaker Body traffic identifier and first-class link address.
After user equipment management platform receives the second media subscription notice of internet of things equipment management platform transmission, object is determined Networked devices can provide target medium stream to user equipment, and the third stream link address during the second media subscription is notified is changed For first-class link address, third media subscription notice is obtained, third media subscription notice, which is then sent to above-mentioned user, sets It is standby, after user equipment receives first-class link address, user equipment management platform can be accessed according to first-class link address, from And establish user equipment to target internet of things equipment media session.
Step 411, target internet of things equipment send target medium stream to internet of things equipment management platform.
Target medium stream is sent to user using third stream link address and set by step 412, internet of things equipment management platform Standby management platform.User equipment management platform receives the target medium from third stream link address by second link address Stream, user equipment management platform can determine target medium stream according to media stream identification, trigger step 413.
Target medium stream is sent to user equipment by step 413, user equipment management platform using first-class link address.
By step 411 to step 413 it is found that after establishing user equipment to the media session of target internet of things equipment, target Internet of things equipment sends target medium stream, Internet of Things by the stream link address of internet of things equipment to internet of things equipment management platform Device management platform can receive the target medium stream by the 4th stream link address, by third stream link address by target matchmaker Body stream is sent to user equipment management platform, and user equipment management platform receives target medium stream by second link address, Target medium stream is sent to user equipment by first-class link address.
From the above, it can be seen that the embodiment of the present invention is asked by media subscription and media subscription notifies, it can be in object The media session for the target medium stream for being used for transmission target internet of things equipment is established in networking.User equipment can have choosing as a result, Selecting property accessing internet of things equipment Media Stream, improve the access ability of media session.
If step 414, in the presence of the media session for meeting media and reusing condition, user equipment management platform is user equipment point Second link address is obtained with first-class link address, and from the media session for meeting media reuse condition, establishes first Flow the correspondence of link address and second link address.
Step 415, user equipment management platform send third media subscription notice to user equipment.Third media subscription is logical Know including but not limited to internet of things equipment mark, media stream identification and first-class link address.
After user equipment receives third media subscription notice, user equipment management platform by first-class link address and User equipment establishes stream connection.
Step 416, internet of things equipment management platform receive internet of things equipment by target medium session and identify corresponding mesh Mark the target medium stream that internet of things equipment is sent.
Wherein, target medium session refers to the media session for meeting media in step 414 and reusing condition.
Target medium stream is sent to user using third stream link address and set by step 417, internet of things equipment management platform Standby management platform.Target medium session existing, user equipment management before user equipment sends the request of the first media subscription Platform can receive the target medium stream that internet of things equipment management platform is sent by target medium session, then trigger step 418。
Target medium stream is sent to user equipment by step 418, user equipment management platform using first-class link address. User equipment receives the target medium stream that user equipment management platform is sent using first-class link address.
From step 414 to step 418 as it can be seen that the embodiment of the present invention can establish user equipment management platform and user equipment Stream connection, the media session that media reuse condition is connected and met by the stream, user equipment can receive from object The target medium stream of networked devices.
It is understood that the request of the first media subscription, the request of the second media subscription in the embodiment of the present invention, third matchmaker Body subscribe to request, the first media subscription notice, the second media subscription notice and third media subscription notice title be in order to Convenient for describing and understanding, the purpose is to for distinguishing the message transmitted between distinct device, the not table such as ' the first, second, third ' Show fixed sequencing.At different conditions, the first media subscription request may include different information, other media subscriptions are asked It asks and media subscription notice is similar, details are not described herein again.
In the embodiment of the present invention, step 401 to step 410 describes in Internet of Things through media subscription request and matchmaker Body subscribing notification establishes the process of the media session for the target medium stream for being used for transmission internet of things equipment.User equipment can as a result, With the Media Stream of selectively accessing internet of things equipment, the access ability of media session is improved.
Secondly, when step 414 to step 418 describes the same Media Stream of the multiple user equipment access in Internet of Things, User equipment management platform can send Media Stream to user respectively by the reuse of media session.It is each with the prior art User establishes independent session and compares, and the application reduces number of sessions, to reduce internet of things equipment to user equipment it Between flow, saved the Internet resources for media stream.
Again, since internet of things equipment is registered in internet of things equipment management platform and issues the media energy of internet of things equipment Power, thus the Media Stream that internet of things equipment and internet of things equipment can be issued of internet of things equipment management platform be monitored and Management, improves the managerial ability to Media Stream.Similarly, user equipment management platform can also set user equipment and user The standby Media Stream received is monitored and manages.
Embodiment based on shown in Fig. 4, in another alternative embodiment of the application, after step 414, and in step Before 415, the above method can also include:
User equipment management platform sends the request of the second media subscription, the second media subscription to internet of things equipment management platform Request includes that internet of things equipment mark, media stream identification, second link address and Media Stream reuse mark;Internet of things equipment Management platform is identified according to internet of things equipment and media stream identification determines target medium session, is from target medium acquisition conversation The third stream link address of target medium session distribution;Internet of things equipment management platform is according to second link address, to user Device management platform sends the second media subscription notice;Internet of things equipment management platform receives Internet of Things by target medium session The target medium stream that the corresponding target internet of things equipment of net device identification is sent;Internet of things equipment management platform is connected using third stream Target medium stream is sent to user equipment management platform by ground connection location.
In the present embodiment, if carrying out media negotiation by internet of things equipment management platform, the request of the second media subscription will also wrap Include the media capability of internet of things equipment.Second media subscription notice may include internet of things equipment mark, media stream identification and Third stream link address can also include the media capability etc. that Media Stream reuses mark and/or internet of things equipment.
Internet of things equipment management platform is identified according to internet of things equipment and media stream identification determines target medium session, and And mark is reused according to Media Stream and determines that the Media Stream of the target medium sessions carry belongs to reusable medium stream.Target medium meeting Words are existing before user equipment sends the request of the first media subscription, and user equipment management platform can pass through target medium meeting Words receive the target medium stream that internet of things equipment management platform is sent, and target medium stream is then sent to user equipment.
It can be seen that when target medium session is reused, user equipment management platform can be flat to internet of things equipment management Platform sends Media Stream and reuses mark, notifies the target medium stream of target medium sessions carry to be in internet of things equipment management platform Reuse state, in order to which internet of things equipment management platform is monitored and manages to Media Stream.
The media session between user equipment and internet of things equipment is established process and is described above, below to media The demolishing process of session is introduced:
Referring to Fig. 5, another embodiment of the method for the real-time Communication for Power provided by the present application in Internet of Things includes:
Step 501, user equipment management platform receive user equipment is sent first and unsubscribe request, and the first cancellation is ordered It includes but not limited to internet of things equipment mark and media stream identification to read request.
Step 502, when detecting that the corresponding target medium stream of media stream identification is in reuse state, user equipment management Platform discharges the first-class link address of user equipment management platform.
It is in reuse state when user equipment management platform detects the corresponding Media Stream of media stream identification, is shown when current Carve or present period there are multiple user equipmenies to access to the Media Stream.User equipment management platform can discharge user The first-class link address of device management platform, to disconnect user equipment management platform and send the first use for unsubscribing request The stream of family equipment connects.
Step 503, user equipment management platform unsubscribe confirmation message to user equipment transmission.
User equipment receives unsubscribe confirmation message after, can discharge the stream link address of itself, stop receiving media The corresponding target medium stream of traffic identifier.Wherein, it unsubscribes confirmation message the confirmation message tables of SIP sessions may be used and show, example Such as 200.
Step 504, when detecting that the corresponding target medium stream of media stream identification is not in reuse state, user equipment pipe Platform sends second to internet of things equipment management platform and unsubscribes request.Second unsubscribes request including but not limited to object Networked devices identify and media stream identification.
It is not in reuse state when user equipment management platform detects the corresponding target medium stream of media stream identification, is shown Current time or present period only access to the target medium stream there are one user equipment, need to the target medium stream Corresponding media session is removed, and step 505 is triggered.
Step 505, internet of things equipment management platform identify corresponding target internet of things equipment to internet of things equipment and send the Three unsubscribe request.It includes but not limited to internet of things equipment mark and media stream identification that third, which unsubscribes request,.
What step 506, internet of things equipment management platform reception target internet of things equipment were sent unsubscribes confirmation message.
Step 507, internet of things equipment management platform according to target internet of things equipment send unsubscribe message remove with The corresponding media session of target medium stream.
Step 508, internet of things equipment management platform unsubscribe confirmation message to the transmission of user equipment management platform.
Specifically, after internet of things equipment management platform removes media session corresponding with target medium stream, it can generate and take Disappear and subscribe to confirmation message, then will unsubscribe confirmation message and be sent to user equipment management platform.
Step 509, user equipment management platform remove matchmaker corresponding with target medium stream according to confirmation message is unsubscribed Know from experience words.
Step 510, user equipment management platform unsubscribe confirmation message to user equipment transmission.
User equipment receives unsubscribe confirmation message after, determine that user equipment and user equipment management platform have disconnected stream Connection can discharge the stream link address of itself, stop receiving the corresponding target medium stream of media stream identification.
It is understood that first in the present embodiment unsubscribe request, second unsubscribe request, third cancellation order The title for readding request is for ease of description and to understand, the purpose is to for distinguishing the message transmitted between distinct device, ' first, Second, third ' etc. be not offered as fixed sequencing.At different conditions, first to unsubscribe request may include difference Information, other are unsubscribed, and request is similar, and details are not described herein again.In order to keep the communication of equipment room, first unsubscribes Request further includes the stream link address of user equipment, and second unsubscribes the second that request further includes user equipment management platform Link address, third unsubscribe the 4th stream link address that request further includes internet of things equipment management platform.
In one alternate embodiment, before user equipment management platform discharges first-class link address, when detecting When the corresponding target medium stream of media stream identification is in reuse state, user equipment management platform is to internet of things equipment management platform Send includes that internet of things equipment identifies, media stream identification and Media Stream reuse the second of mark and unsubscribe request;User sets What standby management platform reception internet of things equipment management platform was sent unsubscribes confirmation message.
User equipment management platform discharges first-class link address and is specifically as follows:User equipment management platform takes according to this Disappear and subscribes to the first-class link address of confirmation message release user equipment management platform.
In the present embodiment, internet of things equipment management platform unsubscribes the Media Stream that request includes according to second and reuses mark Know, determine that the corresponding target medium stream of media stream identification is in reuse state, is not necessarily to remove the corresponding matchmaker of target medium stream at this time Know from experience words.User equipment management platform discharges first-class link address, to disconnect user equipment to user equipment management platform Stream connection makes user equipment stop receiving target medium stream.At this point, since target medium session is still made by other users equipment With user equipment management platform does not remove target medium session, can not access target Media Stream to avoid other users equipment.
For ease of understanding, led in real time in Internet of Things to provided in an embodiment of the present invention with a concrete application scene below The method of letter is described in detail:
User A and user B belongs to family 1, user C belongs to family 2.It is mounted with camera 1 in the parlor of family 1, images Head can acquire the image in parlor.Below using the HD video of camera acquisition as video flowing 1, SD video flowing is video flowing 2. The mark of video flowing can also be set according to other modes in practical applications.
Camera 1 is registered in internet of things equipment management platform, and issue the mark of camera 1, camera 1 Media Stream Mark, the facility informations such as the media capability of camera 1, stream link address of camera 1.Mobile phone 1, mobile phone 2 and mobile phone 3 with Family device management platform registration.Mobile phone 1 belongs to user A, and mobile phone 2 belongs to user B, and mobile phone 3 belongs to user C.The mark of camera 1 By taking Camera001 as an example, the mark for the video flowing 1 that camera 1 is capable of providing is by taking video-down-1 as an example, the mark of video flowing 2 Know by taking video-down-2 as an example, the media capability of camera 1 includes media flow type, media flow transmission agreement etc..Media Stream Type by taking video as an example, media flow transmission agreement with real-time transport protocol (Real-time Transport Protocol, RTP for).
Parlor high-definition image in own home is checked by camera 1 when user A is desired, is set in Internet of Things using mobile phone 1 Camera 1 is searched in standby management platform, after the media capability for finding the publication of camera 1, mobile phone 1, which generates, is used for access video streams 1 the first media subscription request.
The form of first media subscription request can be as follows:
SUBSCRIBE:Camera001
Media Stream subscription terms:video-down-1
Media capability:video RTP/AVP
The stream link address of mobile phone 1:x.x.x.1 70.
Wherein, it is the equipment subscribed to that SUBSCRIBE, which specifies object, and Media Stream subscription terms indicate the Media Stream subscribed to.In matchmaker In ability of immigrants, video indicates that the media flow type subscribed to, AVP are the parts of transmission data, and x.x.x.1 is the IP of mobile phone 1 Location, 70 be the port numbers of transmitting data stream.
After user equipment management platform receives the first media subscription request of the transmission of mobile phone 1, judges currently to whether there is and visit The media session for asking the video flowing 1 of camera 1, if being not present, user equipment management platform distribute first-class link address and Second link address and generation the second media subscription request, then send the second media to internet of things equipment management platform and order Read request.
The form of second media subscription request is as follows:
SUBSCRIBE:Camera001
Media Stream subscription terms:video-down-1
Media capability:video RTP/AVP
The second link address of user equipment management platform:x.x.x.2 70.
Wherein, x.x.x.2 is the second IP address of user equipment management platform, and 70 transmit number for user equipment management platform According to the port numbers of stream.
After internet of things equipment management platform receives the second media subscription request of user equipment management platform transmission, distribution the Three stream link addresses and the 4th stream link address, and generate the request of third media subscription.
The form of third media subscription request is as follows:
SUBSCRIBE:Camera001
Media Stream subscription terms:video-down-1
Media capability:video RTP/AVP
4th stream link address:x.x.x.3 70.
Wherein, x.x.x.3 is the 4th IP address, and 70 be the port numbers of internet of things equipment management platform transmitting data stream.
After camera 1 receives the request of third media subscription, the stream link address of camera 1 is distributed, is then set to Internet of Things Standby management platform sends the first media subscription notice.
The form of first media subscription notice can be as follows:
NOTIFY:Camera001
Media Stream subscription terms:video-down-1
Media capability:video RTP/AVP
The stream link address of camera 1:x.x.x.4 90
Wherein, x.x.x.4 is the IP address of internet of things equipment, and 90 be the port numbers of internet of things equipment transmitting data stream.
Internet of things equipment management platform sends the second media subscription notice, user equipment management to user equipment management platform Platform sends third media subscription notice to mobile phone 1, and mobile phone 1 can be established after receiving third media subscription notice Media session, then camera 1 can To send video flowing 1 to mobile phone 1 by above-mentioned media session.
During user A accesses camera 1, if user B also will be by the parlor of checking of camera 1, user B is logical It crosses mobile phone 2 and sends media subscription request to user equipment management platform, user equipment management platform detects existing for visiting Ask that the media session of the video flowing 1 of camera 1, user equipment management platform send Media Stream weight to internet of things equipment management platform With mark, it is reused to internet of things equipment management platform notice 1 corresponding media session of video flowing, internet of things equipment management platform Media subscription notice is sent to user equipment management platform, shows that internet of things equipment management platform has obtained the media session and weighed Information, user equipment management platform send media subscription notice to mobile phone 2, establish mobile phone 2 and arrive user equipment management platform Stream connection, user equipment management platform use above-mentioned reusable media session replicating video stream 1, by above-mentioned stream connect to Mobile phone 2 sends video flowing 1.In the prior art, need to establish mobile phone 1 respectively to camera 1 and mobile phone 2 to camera 1 Two independent media sessions, and in embodiments of the present invention, user equipment management platform is reused by media session, respectively to User sends Media Stream, and without establishing independent session for each user, therefore number of sessions can be reduced, to reduce object Networked devices save the Internet resources for media stream to the flow between user equipment.
If user C will also access camera 1, user equipment management platform or internet of things equipment management platform receive user After C is asked by the media subscription that mobile phone 3 is sent, subscription authentication is carried out to mobile phone 3.Assuming that camera 1 only licenses to family 1 User accesses, then the media subscription request of user equipment management platform or internet of things equipment management platform refusal user C.
Referring to Fig. 6, the application provides a kind of user equipment 600, user in Fig. 4 or embodiment illustrated in fig. 5 can be realized The function of equipment.User equipment 600 includes:
Sending module 601, for sending the request of the first media subscription to user equipment management platform, the first media subscription is asked It asks including internet of things equipment mark and media stream identification;
Receiving module 602, the third media subscription notice for receiving the transmission of user equipment management platform, third media are ordered It includes internet of things equipment mark, media stream identification and first-class link address to read notice;
Receiving module 602 is additionally operable to receive the target matchmaker that user equipment management platform is sent using first-class link address Body stream, target medium stream are determined that target medium stream is by internet of things equipment mark by user equipment management platform according to media stream identification Know corresponding target internet of things equipment to provide.
Based on embodiment illustrated in fig. 6, in one alternate embodiment,
Sending module 601 is additionally operable to unsubscribe request to user equipment management platform transmission first, and first unsubscribes Request includes internet of things equipment mark and media stream identification, and internet of things equipment mark and media stream identification are used for user equipment Management platform searches corresponding media session;
Receiving module 602, be additionally operable to reception user equipment management platform transmission unsubscribes confirmation message.
Referring to Fig. 7, the application provides a kind of user equipment management platform 700, it can realize and implement shown in Fig. 4 or Fig. 5 The function of user equipment management platform in example.User equipment management platform 700 includes:
Receiving module 701, the first media subscription request for receiving user equipment transmission, the first media subscription request bag Include internet of things equipment mark and media stream identification;
Judgment module 702, the media session for judging whether to meet media reuse condition;
If processing module 703 is asked for there is no the media session for meeting media reuse condition according to the first media subscription It asks, distributes first-class link address and second link address;
Sending module 704, for sending the request of the second media subscription, the second media subscription to internet of things equipment management platform Request includes internet of things equipment mark, media stream identification and second link address;
Receiving module 701, the second media subscription notice for receiving the transmission of internet of things equipment management platform, the second media Subscribing notification includes internet of things equipment mark, media stream identification and third stream link address;
Sending module 704, the second media subscription for being sent according to internet of things equipment management platform notifies, is set to user Preparation send third media subscription to notify, third media subscription notice includes internet of things equipment mark, media stream identification and first Link address is flowed, the media session of corresponding target internet of things equipment is identified to establish user equipment to internet of things equipment;
Receiving module 701 is also used for second link address, receives internet of things equipment management platform and passes through third stream The target medium stream that link address is sent, target medium stream identify corresponding target internet of things equipment by internet of things equipment and provide;
Sending module 704 is also used for first-class link address and target medium stream is sent to user equipment.
Based on embodiment illustrated in fig. 7, in one alternate embodiment,
Processing module 703 is additionally operable to after the first media subscription request that receiving module receives that user equipment is sent, if In the presence of the media session for meeting media and reusing condition, first-class link address is distributed for user equipment, and from meeting media weight Second link address is obtained with the media session of condition, establishes first-class link address pass corresponding with second link address System;
Sending module 704 is additionally operable to send third media subscription notice to user equipment, and third media subscription notice includes Internet of things equipment mark, media stream identification and first-class link address;
Receiving module 701 is additionally operable to reuse the media session of condition by meeting media, it is flat to receive internet of things equipment management The target medium stream that platform is sent;
Sending module 704 is also used for first-class link address and target medium stream is sent to user equipment.
Based on embodiment illustrated in fig. 7, in another alternative embodiment,
Processing module 703 is additionally operable to after the first media subscription request that receiving module receives that user equipment is sent, if In the presence of the media session for meeting media and reusing condition, first-class link address is distributed for user equipment, and from meeting media weight Second link address is obtained with the media session of condition, establishes first-class link address pass corresponding with second link address System;
Sending module 704 is additionally operable to send the request of the second media subscription to internet of things equipment management platform, and the second media are ordered It includes that internet of things equipment mark, media stream identification, second link address and Media Stream reuse mark, Media Stream weight to read request With mark for belonging to reusable medium stream to the corresponding target medium stream of internet of things equipment management platform notice media stream identification;
Receiving module 701 is additionally operable to receive the second media subscription notice that internet of things equipment management platform is sent, the second matchmaker Body subscribing notification includes internet of things equipment mark, media stream identification and third stream link address;
Sending module 704 is additionally operable to be notified according to the second media subscription, logical to user equipment transmission third media subscription Know, third media subscription notice includes internet of things equipment mark, media stream identification and first-class link address;
Receiving module 701 is additionally operable to reuse the media session of condition by meeting media, it is flat to receive internet of things equipment management The target medium stream that platform is sent;
Sending module 704 is also used for first-class link address and target medium stream is sent to user equipment.
Based on embodiment illustrated in fig. 7 or alternative embodiment, in another alternative embodiment, when the first media subscription is asked When further including the transceiver mode of target medium stream, judgment module 702 be specifically used for judge target medium stream transceiver mode whether For sending mode, if not, it is determined that there is no the media sessions for meeting media and reusing condition;If so, judging whether to use In the media session of transmission objectives Media Stream, if being not present, it is determined that there is no the media sessions for meeting media reuse condition;If In the presence of whether the remaining medium replication ability for the media session that then judgement is used for transmission target medium stream meets the clothes of user equipment Business quality requirement, if not satisfied, then determining there is no meeting media to reuse the media session of condition, if satisfied, then determining presence Meet the media session that media reuse condition.
Based on embodiment illustrated in fig. 7 or alternative embodiment, in another alternative embodiment, when the first media subscription is asked Further include user equipment media capability and target medium stream transceiver mode when, judgment module 702 be specifically used for judge mesh Whether the transceiver mode for marking Media Stream is sending mode, if not, it is determined that there is no the media sessions for meeting media reuse condition; If so, the media session for being used for transmission target medium stream is judged whether, if being not present, it is determined that there is no meet media The media session of reuse condition;If in the presence of the remaining medium replication energy for being used for transmission the media session of target medium stream is judged Whether power meets the performance requirement of user equipment, if not satisfied, then determining that there is no the media sessions for meeting media reuse condition; If satisfied, then judging whether the media session with target coding/decoding capability, target coding/decoding capability is used for target matchmaker Body circulation is changed to and the matched Media Stream of the media capability of user equipment, and if it exists, then determination, which exists, meets media reuse condition Media session, if being not present, it is determined that there is no meet media reuse condition media session.
Based on embodiment illustrated in fig. 7 or alternative embodiment, in another alternative embodiment,
Receiving module 701 is additionally operable to reception user equipment is sent first and unsubscribes request, and first unsubscribes request Including internet of things equipment mark and media stream identification;
Processing module 703 is additionally operable to, when detecting that the corresponding target medium stream of media stream identification is in reuse state, release Put first-class link address;
Sending module 704 is additionally operable to after processing module discharges first-class link address, is sent and is cancelled to user equipment Subscribe to confirmation message;
Sending module 704 is additionally operable to when detecting that the corresponding target medium stream of media stream identification is not in reuse state, Second is sent to internet of things equipment management platform and unsubscribes request, and second, which unsubscribes request, is used to indicate internet of things equipment pipe Platform stops sending target medium stream;
Receiving module 701, be additionally operable to reception internet of things equipment management platform transmission unsubscribes confirmation message;
Processing module 703 is additionally operable to receive unsubscribing really for internet of things equipment management platform transmission in receiving module 701 Recognize after message, unsubscribes confirmation message according to what internet of things equipment management platform was sent, remove corresponding with target medium stream Media session;
Sending module 704 is additionally operable to be unsubscribed really according to what internet of things equipment management platform was sent in processing module 703 Recognize message, after removing media session corresponding with target medium stream, confirmation message is unsubscribed to user equipment transmission.
Based on previous embodiment, in another alternative embodiment,
Sending module 704 is additionally operable to before processing module discharges first-class link address, when detecting media stream identification When corresponding target medium stream is in reuse state, sends second to internet of things equipment management platform and unsubscribe request, second It includes that internet of things equipment mark, media stream identification and Media Stream reuse mark to unsubscribe request, and Media Stream reuses mark and uses In being in reuse state to the corresponding target medium stream of internet of things equipment management platform notice media stream identification;
Receiving module 701, be additionally operable to reception internet of things equipment management platform transmission unsubscribes confirmation message;
Processing module 703 is specifically used for discharging the according to the confirmation message that unsubscribes that internet of things equipment management platform is sent First-class link address.
Referring to Fig. 8, the application provides a kind of internet of things equipment management platform 800, can realize shown in Fig. 4 or Fig. 5 The function of internet of things equipment management platform in embodiment.Internet of things equipment management puts down 800:
Receiving module 801, the second media subscription request for receiving the transmission of user equipment management platform;
Processing module 802, for when the request of the second media subscription include internet of things equipment identify, media stream identification and the It when second-rate link address, is asked according to the second media subscription, distributes third stream link address and the 4th stream link address;
Sending module 803 sends third media subscription for identifying corresponding target internet of things equipment to internet of things equipment Request, the request of third media subscription include internet of things equipment mark, media stream identification and the 4th stream link address;
Receiving module 801 is ordered for receiving the first media that target internet of things equipment is sent by the 4th stream link address Notice is read, the first media subscription notice includes internet of things equipment mark and media stream identification;
Sending module 803, the first media subscription for being sent according to target internet of things equipment notifies, to user equipment pipe Platform send the second media subscription notice, the second media subscription notice include internet of things equipment identify, media stream identification and Third stream link address;
Receiving module 801 is additionally operable to receive the target medium that target internet of things equipment is sent by the 4th stream link address Stream, target medium stream are obtained by target internet of things equipment according to media stream identification;
Sending module 803, is also used for third stream link address target medium stream is sent to user equipment management putting down Platform.
Based on embodiment illustrated in fig. 8, in one alternate embodiment,
Processing module 802 is additionally operable to when the second media subscription request that user equipment management platform is sent include Internet of Things When device identification, media stream identification, second link address and Media Stream reuse mark, according to internet of things equipment mark and Media stream identification determines target medium session, is that the third stream that target medium session distributes connects ground from target medium acquisition conversation Location;
Sending module 803, is additionally operable to according to second link address, and sending the second media to user equipment management platform orders Notice is read, the second media subscription notice includes internet of things equipment mark, media stream identification and third stream link address;
Receiving module 801 is additionally operable to, by target medium session, receive internet of things equipment and identify corresponding target Internet of Things The target medium stream that equipment is sent;
Sending module 803, is also used for third stream link address target medium stream is sent to user equipment management putting down Platform.
Based on embodiment illustrated in fig. 8 or alternative embodiment, in another alternative embodiment,
Receiving module 801 is additionally operable to reception user equipment management platform is sent second and unsubscribes request, and second cancels It includes that internet of things equipment mark, media stream identification and Media Stream reuse mark to subscribe to request;
Sending module 803 is additionally operable to unsubscribe according to second and asks to unsubscribe to the transmission of user equipment management platform Confirmation message.
Based on embodiment illustrated in fig. 8 or alternative embodiment, in another alternative embodiment,
Receiving module 801 is additionally operable to reception user equipment management platform is sent second and unsubscribes request, and second cancels It includes internet of things equipment mark and media stream identification to subscribe to request;
Sending module 803 is additionally operable to order to the corresponding target internet of things equipment transmission third cancellation of internet of things equipment mark Request is read, it includes that internet of things equipment mark and media stream identification, third unsubscribe request and be used for that third, which unsubscribes request, Instruction target internet of things equipment stops sending the corresponding target medium stream of media stream identification to internet of things equipment management platform;
Receiving module 801, be additionally operable to reception internet of things equipment transmission unsubscribes confirmation message;
Processing module 802 is additionally operable to unsubscribe confirmation message dismounting and target medium according to what internet of things equipment was sent Flow corresponding media session;
Sending module 803 is additionally operable to unsubscribe confirmation message to the transmission of user equipment management platform.
The application also provides a kind of internet of things equipment, can realize internet of things equipment in Fig. 4 or embodiment illustrated in fig. 5 Function.Internet of things equipment includes:
Receiving module, the third media subscription request for receiving the transmission of internet of things equipment management platform, third media are ordered It includes internet of things equipment mark, media stream identification and the 4th stream link address to read request;
Processing module determines the corresponding target medium stream of media stream identification for being asked according to third media subscription;
Sending module, for sending the first media subscription notice to internet of things equipment management platform, the first media subscription is logical Know including internet of things equipment mark and media stream identification;
Sending module is additionally operable to target medium stream being sent to internet of things equipment management platform.
In one alternate embodiment,
Receiving module, the third for being additionally operable to receive the transmission of internet of things equipment management platform unsubscribe request, and third is cancelled It includes internet of things equipment mark and media stream identification to subscribe to request;
Processing module is additionally operable to stop sending the corresponding target medium of media stream identification to internet of things equipment management platform Stream;
Sending module is additionally operable to response third and unsubscribes request, unsubscribed to the transmission of internet of things equipment management platform Confirmation message.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the meter When calculation machine program instruction, entirely or partly generate according to the flow or function described in the embodiment of the present invention.The computer can To be all-purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center Such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website Website, computer, server or data center are transmitted.The computer readable storage medium, which can be computer, to be deposited Any usable medium of storage is either set comprising data storages such as one or more usable mediums integrated server, data centers It is standby.The usable medium can be magnetic medium (for example, floppy disk, hard disk, tape), optical medium (such as DVD) or semiconductor Medium (such as solid state disk (Solid State Disk, SSD)) etc..
Above example is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to the foregoing embodiments The application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each implementation Technical solution recorded in example is modified or equivalent replacement of some of the technical features;And these modification or It replaces, the range of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (27)

1. a kind of method of the real-time Communication for Power in Internet of Things, which is characterized in that the method includes:
User equipment sends the request of the first media subscription to user equipment management platform, and the first media subscription request includes object Networked devices identify and media stream identification;
The user equipment receives the third media subscription notice that user equipment management platform is sent, and the third media subscription is logical Know including internet of things equipment mark, media stream identification and first-class link address;
The user equipment receives the target medium that the user equipment management platform is sent using the first-class link address It flows, the target medium stream is determined by the user equipment management platform according to the media stream identification, the target medium stream Corresponding target internet of things equipment is identified by the internet of things equipment to provide.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
The user equipment sends first to the user equipment management platform and unsubscribes request, and described first unsubscribes and ask It asks including internet of things equipment mark and the media stream identification, the internet of things equipment mark and the media are failed to be sold at auction Know and searches corresponding media session for the user equipment management platform;
What the user equipment received that the user equipment management platform sends unsubscribes confirmation message.
3. a kind of method of the real-time Communication for Power in Internet of Things, which is characterized in that the method includes:
User equipment management platform receives the first media subscription request that user equipment is sent, the first media subscription request bag Include internet of things equipment mark and media stream identification;
The user equipment management platform judges whether to meet the media session that media reuse condition;
If there is no the media session for meeting media reuse condition, the user equipment management platform is ordered according to first media Request is read, first-class link address and second link address are distributed;
The user equipment management platform sends the second media subscription to the internet of things equipment management platform and asks, and described second Media subscription request includes the internet of things equipment mark, the media stream identification and the second link address;
The user equipment management platform receives the second media subscription notice that the internet of things equipment management platform is sent, described Second media subscription notice includes the internet of things equipment mark, the media stream identification and third stream link address;
The user equipment management platform is notified according to the second media subscription that the internet of things equipment management platform is sent, to institute It states user equipment and sends third media subscription notice, the third media subscription notice includes internet of things equipment mark, Media Stream Mark and the first-class link address identify corresponding object to establish the user equipment to the internet of things equipment The media session of networked devices;
The user equipment management platform uses the second link address, receives the internet of things equipment management platform and passes through The target medium stream that the third stream link address is sent, is sent the target medium stream using the first-class link address To the user equipment, the target medium stream identifies corresponding target internet of things equipment by the internet of things equipment and provides.
4. according to the method described in claim 3, it is characterized in that, receiving user equipment hair in the user equipment management platform After the first media subscription request sent, the method further includes:
If in the presence of the media session for meeting media and reusing condition, the user equipment management platform is user equipment distribution the First-class link address, and from it is described meet media and reuse the media session of condition obtain second link address, described in foundation The correspondence of first-class link address and the second link address;
The user equipment management platform sends third media subscription notice to the user equipment, and the third media subscription is logical Know including internet of things equipment mark, the media stream identification and the first-class link address;
The user equipment management platform receives internet of things equipment management by the media session for meeting media and reusing condition The target medium stream that platform is sent, is sent to the user by the target medium stream using the first-class link address and sets It is standby.
5. according to the method described in claim 3, it is characterized in that, receiving user equipment hair in the user equipment management platform After the first media subscription request sent, the method further includes:
If in the presence of the media session for meeting media and reusing condition, the user equipment management platform is user equipment distribution the First-class link address, and from it is described meet media and reuse the media session of condition obtain second link address, described in foundation The correspondence of first-class link address and the second link address;
The user equipment management platform sends the second media subscription to the internet of things equipment management platform and asks, and described second Media subscription request includes the internet of things equipment mark, the media stream identification, the second link address and media Stream reuses mark, and the Media Stream reuses mark for notifying the media stream identification pair to the internet of things equipment management platform The target medium stream answered belongs to reusable medium stream;
The user equipment management platform receives the second media subscription notice that the internet of things equipment management platform is sent, described Second media subscription notice includes the internet of things equipment mark, the media stream identification and third stream link address;
The user equipment management platform notifies that sending third media to the user equipment orders according to second media subscription Notice is read, the third media subscription notice includes the internet of things equipment mark, the media stream identification and described first Flow link address;
The user equipment management platform receives internet of things equipment management by the media session for meeting media and reusing condition The target medium stream that platform is sent, is sent to the user by the target medium stream using the first-class link address and sets It is standby.
6. method according to any one of claim 3 to 5, which is characterized in that the first media subscription request is also wrapped The transceiver mode of the target medium stream is included, the user equipment management platform judges whether that meeting media reuses condition Media session includes:
The user equipment management platform judges whether the transceiver mode of the target medium stream is sending mode, if it is not, then really It is fixed that there is no the media sessions for meeting media reuse condition;
If so, the media session for being used for transmission the target medium stream is judged whether, if being not present, it is determined that be not present Meet the media session that media reuse condition;
If in the presence of judging whether the remaining medium replication ability for the media session for being used for transmission the target medium stream meets institute The quality of service requirement of user equipment is stated, if not satisfied, then determining there is no the media session for meeting media reuse condition, if full Foot, it is determined that exist and meet the media session that media reuse condition.
7. method according to any one of claim 3 to 5, which is characterized in that the first media subscription request is also wrapped The media capability of the user equipment and the transceiver mode of the target medium stream are included, the user equipment management platform judges With the presence or absence of meet media reuse condition media session include:
The user equipment management platform judges whether the transceiver mode of the target medium stream is sending mode, if it is not, then really It is fixed that there is no the media sessions for meeting media reuse condition;
If so, the media session for being used for transmission target medium stream is judged whether, if being not present, it is determined that there is no meet Media reuse the media session of condition;
If in the presence of judging whether the remaining medium replication ability for the media session for being used for transmission the target medium stream meets institute The performance requirement of user equipment is stated, if not satisfied, then determining that there is no the media sessions for meeting media reuse condition;
If satisfied, then judging whether the media session with target coding/decoding capability, the target coding/decoding capability is used for Target medium circulation is changed to and the matched Media Stream of the media capability of the user equipment, and if it exists, then determine and exist Meet the media session that media reuse condition, if being not present, it is determined that there is no the media sessions for meeting media reuse condition.
8. method according to any one of claim 3 to 5, which is characterized in that the method further includes:
The user equipment management platform receives the user equipment is sent first and unsubscribes request, and first cancellation is ordered It includes the internet of things equipment mark and the media stream identification to read request;
When detecting that the corresponding target medium stream of the media stream identification is in reuse state, the user equipment management platform The first-class link address is discharged, confirmation message is unsubscribed to user equipment transmission;
When detecting that the corresponding target medium stream of the media stream identification is not in reuse state, the user equipment management is flat Platform sends second to the internet of things equipment management platform and unsubscribes request, and described second, which unsubscribes request, is used to indicate institute Internet of things equipment management platform is stated to stop sending target medium stream;The user equipment management platform receives the internet of things equipment What management platform was sent unsubscribes confirmation message, and the confirmation that unsubscribes sent according to the internet of things equipment management platform disappears Breath removes media session corresponding with the target medium stream, and confirmation message is unsubscribed to user equipment transmission.
9. according to the method described in claim 8, it is characterized in that,
Before the user equipment management platform discharges first-class link address, the method further includes:It is described when detecting When the corresponding target medium stream of media stream identification is in reuse state, the user equipment management platform is to the internet of things equipment Management platform sends second and unsubscribes request, and described second to unsubscribe request include that the internet of things equipment identifies, is described Media stream identification and Media Stream reuse mark, and the Media Stream reuses mark for logical to the internet of things equipment management platform Know that the corresponding target medium stream of the media stream identification is in reuse state;Receive what the internet of things equipment management platform was sent Unsubscribe confirmation message;
The user equipment management platform discharges the first-class link address:User equipment management platform is according to the object What networked devices management platform was sent unsubscribes the confirmation message release first-class link address.
10. a kind of method of the real-time Communication for Power in Internet of Things, which is characterized in that including:
Internet of things equipment management platform receives the second media subscription request that user equipment management platform is sent;
When second media subscription request includes internet of things equipment mark, media stream identification and second link address, The internet of things equipment management platform is asked according to second media subscription, distributes third stream link address and the 4th stream connection Address;
The internet of things equipment management platform identifies corresponding target internet of things equipment to the internet of things equipment and sends third matchmaker Body subscribes to request, and the third media subscription request includes internet of things equipment mark, media stream identification and the 4th stream connection ground Location;
The internet of things equipment management platform flows link address by the described 4th and receives what the target internet of things equipment was sent First media subscription notifies that the first media subscription notice includes that the internet of things equipment mark and the media are failed to be sold at auction Know;
The first media subscription that the internet of things equipment management platform is sent according to the target internet of things equipment notifies, to described User equipment management platform sends the second media subscription notice, and the second media subscription notice includes the internet of things equipment mark Knowledge, the media stream identification and the third stream link address;
The internet of things equipment management platform flows link address by the described 4th and receives what the target internet of things equipment was sent Target medium stream, the target medium stream are obtained by the target internet of things equipment according to the media stream identification;
The target medium stream is sent to the use by the internet of things equipment management platform using the third stream link address Family device management platform.
11. according to the method described in claim 10, being set it is characterized in that, receiving user in the internet of things equipment management platform After the second media subscription request that standby management platform is sent, the method further includes:
When second media subscription request includes internet of things equipment mark, media stream identification, second link address and matchmaker When body stream reuses mark, the internet of things equipment management platform is identified according to the internet of things equipment and the media stream identification It determines target medium session, is that the third stream that the target medium session distributes connects ground from the target medium acquisition conversation Location;
The internet of things equipment management platform sends the according to the second link address, to the user equipment management platform Two media subscriptions notify, second media subscription notice include the internet of things equipment identify, the media stream identification and The third stream link address;
The internet of things equipment management platform receives the internet of things equipment and identifies corresponding mesh by the target medium session Mark the target medium stream that internet of things equipment is sent;
The target medium stream is sent to the use by the internet of things equipment management platform using the third stream link address Family device management platform.
12. the method according to claim 10 or 11, which is characterized in that the method further includes:
The internet of things equipment management platform receives the user equipment management platform is sent second and unsubscribes request, described Second to unsubscribe request include that internet of things equipment mark, media stream identification and Media Stream are reused and identified;
The internet of things equipment management platform unsubscribes request according to described second and is sent to the user equipment management platform Unsubscribe confirmation message.
13. the method according to claim 10 or 11, which is characterized in that the method further includes:
The internet of things equipment management platform receives the user equipment management platform is sent second and unsubscribes request, described Second unsubscribe request include internet of things equipment identify and media stream identification;
The internet of things equipment management platform identifies corresponding target internet of things equipment transmission third to the internet of things equipment and takes Disappear subscription request, and it includes internet of things equipment mark and media stream identification that the third, which unsubscribes request, and the third is cancelled Subscription request is used to indicate the target internet of things equipment and stops sending the Media Stream to the internet of things equipment management platform Identify corresponding target medium stream;
What the internet of things equipment management platform received that the internet of things equipment sends unsubscribes confirmation message, according to the object What networked devices were sent unsubscribes confirmation message dismounting media session corresponding with target medium stream;
The internet of things equipment management platform unsubscribes confirmation message to described in user equipment management platform transmission.
14. a kind of user equipment, which is characterized in that including:
Sending module, for sending the request of the first media subscription, the first media subscription request to user equipment management platform Including internet of things equipment mark and media stream identification;
Receiving module, the third media subscription notice for receiving the transmission of user equipment management platform, the third media subscription Notice includes internet of things equipment mark, media stream identification and first-class link address;
The receiving module is additionally operable to receive the mesh that the user equipment management platform is sent using the first-class link address Media Stream is marked, the target medium stream is determined by the user equipment management platform according to the media stream identification, the target Media Stream identifies corresponding target internet of things equipment by the internet of things equipment and provides.
15. user equipment according to claim 14, which is characterized in that
The sending module is additionally operable to unsubscribe request to user equipment management platform transmission first, and described first takes The subscription request that disappears includes internet of things equipment mark and the media stream identification, and the internet of things equipment identifies and described Media stream identification searches corresponding media session for the user equipment management platform;
The receiving module, is additionally operable to receive that the user equipment management platform sends unsubscribes confirmation message.
16. a kind of user equipment management platform, which is characterized in that including:
Receiving module, the first media subscription request for receiving user equipment transmission, the first media subscription request include Internet of things equipment identifies and media stream identification;
Judgment module, the media session for judging whether to meet media reuse condition;
If processing module is asked for there is no the media session for meeting media reuse condition according to first media subscription, Distribute first-class link address and second link address;
Sending module, for sending the request of the second media subscription to the internet of things equipment management platform, second media are ordered It includes the internet of things equipment mark, the media stream identification and the second link address to read request;
The receiving module, the second media subscription notice sent for receiving the internet of things equipment management platform, described the Two media subscriptions notice includes the internet of things equipment mark, the media stream identification and third stream link address;
The sending module, the second media subscription notice for being sent according to the internet of things equipment management platform, to described User equipment sends third media subscription notice, and the third media subscription notice includes that internet of things equipment identifies, media are failed to be sold at auction Knowledge and the first-class link address identify corresponding target Internet of Things to establish the user equipment to the internet of things equipment The media session of net equipment;
The receiving module is also used for the second link address, receives the internet of things equipment management platform and passes through The target medium stream that the third stream link address is sent, the target medium stream identify corresponding mesh by the internet of things equipment Internet of things equipment is marked to provide;
The sending module, is also used for the first-class link address target medium stream is sent to the user setting It is standby.
17. user equipment management platform according to claim 16, which is characterized in that
The processing module is additionally operable to after the first media subscription request that the receiving module receives that user equipment is sent, If in the presence of the media session for meeting media and reusing condition, first-class link address is distributed for the user equipment, and from described Meet the media session acquisition second link address that media reuse condition, establishes the first-class link address and described second Flow the correspondence of link address;
The sending module is additionally operable to send third media subscription notice to the user equipment, and the third media subscription is logical Know including internet of things equipment mark, the media stream identification and the first-class link address;
The receiving module is additionally operable to, by the media session for meeting media and reusing condition, receive internet of things equipment management The target medium stream that platform is sent;
The sending module, is also used for the first-class link address target medium stream is sent to the user setting It is standby.
18. user equipment management platform according to claim 16, which is characterized in that
The processing module is additionally operable to after the first media subscription request that the receiving module receives that user equipment is sent, If in the presence of the media session for meeting media and reusing condition, first-class link address is distributed for the user equipment, and from described Meet the media session acquisition second link address that media reuse condition, establishes the first-class link address and described second Flow the correspondence of link address;
The sending module is additionally operable to ask to the internet of things equipment management platform the second media subscription of transmission, described second Media subscription request includes the internet of things equipment mark, the media stream identification, the second link address and media Stream reuses mark, and the Media Stream reuses mark for notifying the media stream identification pair to the internet of things equipment management platform The target medium stream answered belongs to reusable medium stream;
The receiving module is additionally operable to receive the second media subscription notice that the internet of things equipment management platform is sent, described Second media subscription notice includes the internet of things equipment mark, the media stream identification and the third stream link address;
The sending module is additionally operable to be notified according to second media subscription, be ordered to user equipment transmission third media Notice is read, the third media subscription notice includes the internet of things equipment mark, the media stream identification and described first Flow link address;
The receiving module is additionally operable to, by the media session for meeting media and reusing condition, receive internet of things equipment management The target medium stream that platform is sent;
The sending module, is also used for the first-class link address target medium stream is sent to the user setting It is standby.
19. the user equipment management platform according to any one of claim 16 to 18, which is characterized in that when described first When media subscription request further includes the transceiver mode of the target medium stream, the judgment module is specifically used for judging the target Whether the transceiver mode of Media Stream is sending mode, if not, it is determined that there is no the media sessions for meeting media reuse condition;If It is the media session for then judging whether to be used for transmission the target medium stream, if being not present, it is determined that there is no meet matchmaker The media session of weight condition;If in the presence of the remaining media for being used for transmission the media session of the target medium stream are judged Whether replication capacity meets the quality of service requirement of the user equipment, if not satisfied, then determining that there is no meet media reuse The media session of condition meets the media session that media reuse condition if satisfied, then determining and existing.
20. the user equipment management platform according to any one of claim 16 to 18, which is characterized in that when described first Media subscription request further include the user equipment media capability and the target medium stream transceiver mode when, it is described to sentence Disconnected module is specifically used for judging whether the transceiver mode of the target medium stream is sending mode, if not, it is determined that there is no full Sufficient media reuse the media session of condition;If so, the media session for being used for transmission target medium stream is judged whether, if not In the presence of, it is determined that there is no the media sessions for meeting media reuse condition;If in the presence of judgement is used for transmission the target medium Whether the remaining medium replication ability of the media session of stream meets the performance requirement of the user equipment, if not satisfied, then determining There is no the media sessions for meeting media reuse condition;If satisfied, then judging whether the matchmaker with target coding/decoding capability Know from experience words, the target coding/decoding capability is used to for target medium circulation to be changed to the media capability with the user equipment The Media Stream matched, and if it exists, the media session for existing and meeting media reuse condition is then determined, if being not present, it is determined that be not present Meet the media session that media reuse condition.
21. the user equipment management platform according to any one of claim 16 to 18, which is characterized in that
The receiving module is additionally operable to receive the user equipment is sent first and unsubscribes request, and first cancellation is ordered It includes the internet of things equipment mark and the media stream identification to read request;
The processing module is additionally operable to when detecting that the corresponding target medium stream of the media stream identification is in reuse state, Discharge the first-class link address;
The sending module is additionally operable to after the processing module discharges the first-class link address, is set to the user Preparation, which is sent, unsubscribes confirmation message;
The sending module is additionally operable to detect that the corresponding target medium stream of the media stream identification is not in reuse state When, it sends second to the internet of things equipment management platform and unsubscribes request, described second, which unsubscribes request, is used to indicate The internet of things equipment management platform stops sending target medium stream;
The receiving module, is additionally operable to receive that the internet of things equipment management platform sends unsubscribes confirmation message;
The processing module is additionally operable to receive unsubscribing for the internet of things equipment management platform transmission in the receiving module After confirmation message, confirmation message is unsubscribed according to what the internet of things equipment management platform was sent, is removed and the target The corresponding media session of Media Stream;
The sending module is additionally operable to be unsubscribed according to what the internet of things equipment management platform was sent in the processing module Confirmation message after removing media session corresponding with the target medium stream, unsubscribes really to user equipment transmission Recognize message.
22. user equipment management platform according to claim 21, which is characterized in that
The sending module is additionally operable to before the processing module discharges first-class link address, when detecting the media When the corresponding target medium stream of traffic identifier is in reuse state, sends second to the internet of things equipment management platform and unsubscribe Request, described second to unsubscribe request include that internet of things equipment mark, media stream identification and Media Stream are reused and identified, described Media Stream reuses mark for notifying the corresponding target medium stream of the media stream identification to the internet of things equipment management platform In the state of reuse;
The receiving module, is additionally operable to receive that the internet of things equipment management platform sends unsubscribes confirmation message;
The processing module is specifically used for unsubscribing confirmation message release according to what the internet of things equipment management platform was sent The first-class link address.
23. a kind of internet of things equipment management platform, which is characterized in that including:
Receiving module, the second media subscription request for receiving the transmission of user equipment management platform;
Processing module, for including internet of things equipment mark, media stream identification and second when second media subscription request It when flowing link address, is asked according to second media subscription, distributes the third stream link address and the 4th stream link address;
Sending module is asked for identifying corresponding target internet of things equipment transmission third media subscription to the internet of things equipment It asks, the third media subscription request includes internet of things equipment mark, media stream identification and the 4th stream link address;
The receiving module receives the first matchmaker that the target internet of things equipment is sent for flowing link address by the described 4th Body subscribing notification, the first media subscription notice include internet of things equipment mark and media stream identification;
The sending module, the first media subscription for being sent according to the target internet of things equipment notifies, to the user Device management platform sends the second media subscription notice, and the second media subscription notice includes internet of things equipment mark, media Traffic identifier and the third stream link address;
The receiving module is additionally operable to flow the target that link address receives the target internet of things equipment transmission by the described 4th Media Stream, the target medium stream are obtained by the target internet of things equipment according to the media stream identification;
The sending module, is also used for the third stream link address target medium stream is sent to the user setting Standby management platform.
24. internet of things equipment management platform according to claim 23, which is characterized in that
The processing module is additionally operable to when the second media subscription request that the user equipment management platform is sent include the object When networked devices mark, the media stream identification, second link address and Media Stream reuse mark, according to the Internet of Things Device identification and the media stream identification determine target medium session, are the target matchmaker from the target medium acquisition conversation Know from experience the third stream link address of words distribution;
The sending module, is additionally operable to according to the second link address, and second is sent to the user equipment management platform Media subscription notifies that the second media subscription notice includes the internet of things equipment mark, the media stream identification and institute State third stream link address;
The receiving module is additionally operable to, by the target medium session, receive the internet of things equipment and identify corresponding target The target medium stream that internet of things equipment is sent;
The sending module, is also used for the third stream link address target medium stream is sent to the user setting Standby management platform.
25. the internet of things equipment management platform according to claim 23 or 24, which is characterized in that
The receiving module is additionally operable to receive the user equipment management platform is sent second and unsubscribes request, and described the Two to unsubscribe request include that internet of things equipment mark, media stream identification and Media Stream are reused and identified;
The sending module is additionally operable to unsubscribe according to described second and asks to unsubscribe to the transmission of user equipment management platform Confirmation message.
26. the internet of things equipment management platform according to claim 23 or 24, which is characterized in that
The receiving module is additionally operable to receive the user equipment management platform is sent second and unsubscribes request, and described the Two unsubscribe request include internet of things equipment identify and media stream identification;
The sending module is additionally operable to order to the corresponding target internet of things equipment transmission third cancellation of internet of things equipment mark Request is read, it includes that internet of things equipment mark and media stream identification, the third unsubscribe that the third, which unsubscribes request, Request is used to indicate the target internet of things equipment and stops sending the media stream identification to the internet of things equipment management platform Corresponding target medium stream;
The receiving module, is additionally operable to receive that the internet of things equipment sends unsubscribes confirmation message;
The processing module is additionally operable to unsubscribe confirmation message dismounting and target medium according to what the internet of things equipment was sent Flow corresponding media session;
The sending module is additionally operable to unsubscribe confirmation message to described in user equipment management platform transmission.
27. a kind of computer readable storage medium, including instruction, when run on a computer so that computer executes such as Method described in claim 1-13 any one.
CN201710073635.8A 2017-02-10 2017-02-10 Method for real-time communication in Internet of things and related equipment Active CN108418779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710073635.8A CN108418779B (en) 2017-02-10 2017-02-10 Method for real-time communication in Internet of things and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710073635.8A CN108418779B (en) 2017-02-10 2017-02-10 Method for real-time communication in Internet of things and related equipment

Publications (2)

Publication Number Publication Date
CN108418779A true CN108418779A (en) 2018-08-17
CN108418779B CN108418779B (en) 2020-12-08

Family

ID=63125012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710073635.8A Active CN108418779B (en) 2017-02-10 2017-02-10 Method for real-time communication in Internet of things and related equipment

Country Status (1)

Country Link
CN (1) CN108418779B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630628A (en) * 2020-05-07 2021-11-09 杭州海康威视数字技术股份有限公司 Media stream sending method, system, processing equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778264A (en) * 2010-02-11 2010-07-14 北京众和汇智科技有限公司 Video monitoring method and video monitoring system
CN104133871A (en) * 2014-07-21 2014-11-05 广州华多网络科技有限公司 Method and device for processing subscription information
CN105376194A (en) * 2014-08-15 2016-03-02 中国电信股份有限公司 Real-time communication method, real-time communication system and real-time communication platform equipment
CN105472333A (en) * 2015-12-04 2016-04-06 航天科工智慧产业发展有限公司 Establishment method for topological system of video monitoring equipment and associated monitoring method
US20160191581A1 (en) * 2014-12-24 2016-06-30 Intel Corporation Apparatus, system and method of media streaming
US20160353278A1 (en) * 2015-05-26 2016-12-01 Skullcandy, Inc. Personalized media delivery

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778264A (en) * 2010-02-11 2010-07-14 北京众和汇智科技有限公司 Video monitoring method and video monitoring system
CN104133871A (en) * 2014-07-21 2014-11-05 广州华多网络科技有限公司 Method and device for processing subscription information
CN105376194A (en) * 2014-08-15 2016-03-02 中国电信股份有限公司 Real-time communication method, real-time communication system and real-time communication platform equipment
US20160191581A1 (en) * 2014-12-24 2016-06-30 Intel Corporation Apparatus, system and method of media streaming
US20160353278A1 (en) * 2015-05-26 2016-12-01 Skullcandy, Inc. Personalized media delivery
CN105472333A (en) * 2015-12-04 2016-04-06 航天科工智慧产业发展有限公司 Establishment method for topological system of video monitoring equipment and associated monitoring method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630628A (en) * 2020-05-07 2021-11-09 杭州海康威视数字技术股份有限公司 Media stream sending method, system, processing equipment and storage medium

Also Published As

Publication number Publication date
CN108418779B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN110048927B (en) Communication method and communication device
CN103765835B (en) Topology Discovery in hybrid network
KR101467173B1 (en) Method and Apparatus of resource management of M2M network
CN104067569B (en) Methods to combine stateless and stateful server load balancing
CN1323519C (en) Resource management system
CN101132373A (en) Method of providing qos for a flow
KR20150135769A (en) Method for modifying m2m service setting and apparatus therefor
CN104092746B (en) A kind of O&M auditing system and the network load balancing method in its system
CN109391505A (en) Network example management method and relevant device
JP2010278884A (en) Routing apparatus, communication control method, and communication system
CN107124453A (en) Platform Interworking GateWay stacks the SiteServer LBS and video call method of deployment
CN104283774B (en) The implementation method and device in a kind of AC ponds
EP4183072A1 (en) User plane function selection based on per subscriber cpu and memory footprint for packet inspection
CN112995234B (en) Media transmission link management method and device
CN112188227A (en) Streaming media data distribution method and device
WO2014056345A1 (en) Management method and apparatus for monitoring task
CN111432158A (en) Load balancing method and device for media nodes, storage medium and electronic device
CN107277793A (en) A kind of method, equipment and system transmitted for background data
EP4052431A1 (en) Nodes and methods for enabling user plane traffic classification in a communications system
CN110880991B (en) Bandwidth limiting method, device and system
CN106656653B (en) Registration and keep-alive processing method and processing device
CN108418779A (en) A kind of method and relevant device of the real-time Communication for Power in Internet of Things
CN107950005A (en) Service element Selection of chiller
JP2001216282A (en) Server, client, client-server system, load distribution method, and recording medium
CN104854930A (en) Method, control node, gateway and computer program for enabling communication with a newly detected device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant