WO2019140644A1 - 一种数据处理方法、装置、系统、可移动设备及存储介质 - Google Patents

一种数据处理方法、装置、系统、可移动设备及存储介质 Download PDF

Info

Publication number
WO2019140644A1
WO2019140644A1 PCT/CN2018/073451 CN2018073451W WO2019140644A1 WO 2019140644 A1 WO2019140644 A1 WO 2019140644A1 CN 2018073451 W CN2018073451 W CN 2018073451W WO 2019140644 A1 WO2019140644 A1 WO 2019140644A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
user identifier
target data
subscription information
subscription
Prior art date
Application number
PCT/CN2018/073451
Other languages
English (en)
French (fr)
Inventor
林光远
王振动
王文军
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2018/073451 priority Critical patent/WO2019140644A1/zh
Priority to CN201880010509.0A priority patent/CN110268697A/zh
Publication of WO2019140644A1 publication Critical patent/WO2019140644A1/zh
Priority to US16/931,259 priority patent/US20200351710A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • the terminal device storing the data receives a lot of data requests from the respective terminal devices, the communication load of the terminal device storing the data may be too large, even exceeding the load capacity of the terminal.
  • the embodiment of the invention provides a data processing method, device, system, mobile device and storage medium, which can be compatible with different data pushing requirements, effectively balance the communication load of the system, and improve the stability of the system.
  • an embodiment of the present invention provides a data processing method, including:
  • an embodiment of the present invention provides a data processing apparatus, including: a memory and a processor;
  • the memory is configured to store program instructions
  • the processor executes program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
  • an embodiment of the present invention provides a data processing system, including: a data processing device and a request device;
  • the requesting device is configured to send a subscription request for subscribing to the target data packet to the data processing device;
  • the data processing apparatus is configured to: in response to the subscription request, acquire, when it is required to send a target data packet, subscription information configured for the target data packet; and determine, according to the subscription information, the record in the subscription information a user identifier in the user; pushing the target data packet to the mobile device according to the determined user identifier.
  • an embodiment of the present invention provides a mobile device, including: a data processing device;
  • the data processing apparatus is configured to: when detecting that the target data packet needs to be sent, acquire subscription information configured for the target data packet; and determine, according to the subscription information, a user identifier recorded in the subscription information; Determining the user identifier to push the target data packet.
  • an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, implements the data processing method according to the first aspect.
  • the data processing device when detecting that the target data packet needs to be sent, the data processing device obtains the subscription information configured for the target data packet, and determines the user identifier recorded in the subscription information according to the subscription information. And pushing the target data packet according to the determined user identifier. In this way, it is possible to achieve compatible data push requirements, effectively balance the communication load of the system, and improve system stability.
  • FIG. 1 is a schematic flowchart of interaction of a data processing method according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
  • the data processing method provided in the embodiments of the present invention is applicable to a data processing system, and the data processing system includes a data processing device and a request device.
  • the data processing device may be any unmanned aerial vehicle (hereinafter referred to as a drone), a cloud platform mounted on the drone, an unmanned vehicle, a robot, or the like, and the request device may be A part of the data processing device, or the request device may be a flight controller connected to the mobile device such as the drone, or may be another module connected to the movable device.
  • the following describes the data processing method in the embodiment of the present invention. It should be noted that the data processing method described below can be applied to mobile devices such as drones, pan/tilt, and unmanned automobiles, and can also be applied to other mobile devices. in.
  • the data processing apparatus may acquire subscription information configured for the target data packet when detecting that the target data packet needs to be sent, to determine from the subscription information according to the subscription information. Determining a user identifier recorded in the subscription information, and pushing the target data packet to the requesting device indicated by the user identifier according to the determined user identifier.
  • the data processing device when receiving the subscription request sent by the requesting device for subscribing to the target data packet, may determine, from the subscription request, the user identifier of the requesting device, and The user identification is recorded in subscription information configured for the target data packet.
  • the data processing apparatus may detect whether the user identifier is present in the subscription information before the user identifier is recorded in the subscription information configured for the target data packet, if not present And recording the user identifier into the subscription information configured for the target data packet.
  • the data processing apparatus is provided with a push counter for counting the number of user identities that have pushed the target data packet.
  • the data processing apparatus may determine a target user identifier from the user identifiers, and push the target data packet to a requesting device corresponding to the target user identifier. Wherein, when the target data packet is pushed according to the target user identifier, each target packet is pushed to the requesting device corresponding to the target user identifier, and the count of the pushed counter is increased by one.
  • the target user identifier is determined according to an arrangement order of user identifiers in the subscription list of the subscription information.
  • the data processing method provided by the embodiment of the present invention can be applied to a data processing task of a mobile device such as a robot capable of autonomous movement, and the data processing method for the mobile device is exemplified below with reference to the accompanying drawings.
  • the requesting device sends a subscription request for subscribing to the target data packet to the data processing device.
  • the requesting device may send a subscription request for subscribing to the target data packet to the data processing device, where the subscription request carries the user identifier configured by the requesting device itself.
  • the data processing apparatus receives the subscription request, and determines a user identifier from the subscription request.
  • the data processing device may receive the subscription request sent by the requesting device, and determine the user identifier of the requesting device from the subscription request. For example, if the user identifier is the number 1, the data processing device may determine, from the subscription request, that the user identifier of the requesting device is 1 when receiving the subscription request sent by the requesting device.
  • the data processing device may detect whether the user identifier exists in the subscription information configured by the target data packet.
  • the subscription information includes a subscription list for requesting subscription of the user identifier of the target data packet.
  • the data processing device records the user identifier into the subscription information configured for the target data packet.
  • the data processing apparatus detects that the user identifier determined from the subscription request does not exist in the subscription information, the data identifier may be recorded to be configured for the target data packet. Subscription information in the subscription list.
  • the time of the subscription request is 9:00, the time for receiving the subscription request of the second requesting device is 9:05, and the time for receiving the subscription request of the third requesting device is 9:10
  • the data processing device can Determining, in order of the time of requesting the subscription request of the device, sequentially recording the user identifier 1 determined from the subscription request of the first requesting device into the subscription information configured for the target data packet, from the second The user identifier 2 determined in the subscription request of the requesting device is recorded in the subscription information configured for the target data packet, and the user identifier 3 determined from the subscription request of the third requesting device is recorded as the target The subscription information for the packet configuration.
  • the data processing device may acquire subscription information configured for the target data packet, and obtain subscription to the target data packet from the subscription information. a subscription list in which the user identifier of the requesting device that subscribes to the target data packet is stored.
  • the data processing device determines, according to the subscription information, a user identifier recorded in the subscription information.
  • the data processing apparatus may determine, according to the subscription information, a user identifier recorded in a subscription list of the subscription information. For example, the data processing apparatus may determine, according to the subscription information, that the user identifiers recorded in the subscription list of the subscription information are in the order of 1, 2, and 3 in time.
  • the subscription information configured for the target data packet further includes a task push times threshold, where the task push times threshold is used to indicate the number of times the data processing device limits the push of the target data packet.
  • the data processing device may detect whether the number of pushed times of the target data packet is less than the number of task push times before pushing the target data packet to the requesting device indicated by the user identifier, and if the detection result is less than, The data processing apparatus may sequentially push the target to the requesting device indicated by the user identifier according to the user identifier determined from the subscription list of the subscription information and according to the order of each user identifier in the subscription list. data pack.
  • the routing information is bound to the user identifier, and the data processing device may obtain the information according to the user identifier when the target data packet is pushed according to the determined user identifier.
  • the user information is bound to the routing information, and the physical port corresponding to the routing information is determined according to the routing information, so that the target device is pushed to the requesting device indicated by the user identifier by using the physical port corresponding to the routing information. data pack.
  • the data processing apparatus may detect the number of user identifiers that have been pushed in the pushed counter and that have pushed the target data packet. Whether it is equal to the number of the user identifiers recorded in the subscription information, if not equal to, after triggering the preset time interval, triggering the execution of the subscription information according to the subscription information to determine that the record is in the subscription information. The user identifier, if it is detected that the count in the pushed counter is equal to the number of user identifiers recorded in the subscription information, stopping pushing the target data packet.
  • the data processing apparatus is triggered again to perform the determining, according to the subscription information, the user identifier 2 recorded in the subscription information behind the user identifier 1 and Transmitting the target data packet to the requesting device indicated by the user identifier 2, and sequentially cycling until the target data packet is sent to the requesting device indicated by the user identifier 3, and detecting the record in the pushed counter Stop pushing the number of user identifiers that have pushed the target data packet equal to the number of user identifiers recorded in the subscription information Standard packet
  • the requesting device returns an acknowledgement instruction for receiving the target data packet to the data processing device.
  • the requesting device may send an acknowledgement instruction to the data processing device to notify the data processing device that the request device has received Target packet.
  • the requesting device sends a subscription request for subscribing to the target data packet to the data processing device, and the data processing device records the user identifier carried in the subscription request to be configured for the target data packet.
  • the subscription information when the data processing apparatus detects that the target data packet needs to be sent, acquires subscription information configured for the target data packet, and determines a user identifier recorded in the subscription information according to the subscription information. And pushing the target data packet according to the determined user identifier. In this way, it can be compatible with different data push requirements, effectively balance the communication load of the system and improve system stability.
  • FIG. 2 is a schematic flowchart diagram of a data processing method according to an embodiment of the present invention.
  • the method may be performed by a data processing apparatus, where a specific explanation of the data processing apparatus is as described above.
  • the method of the embodiment of the present invention includes the following steps.
  • the data processing apparatus when the data processing apparatus detects that the target data packet needs to be sent, the data processing apparatus may acquire subscription information configured for the target data packet.
  • the subscription information includes a subscription list, where the subscription identifier stores a user identifier of the requesting device that requests the target data packet.
  • S202 Determine, according to the subscription information, a user identifier recorded in the subscription information.
  • the data processing device may determine, from the acquired subscription information configured for the target data packet, that the subscription information is recorded on the subscription list of the subscription information. User ID.
  • the data processing apparatus may detect, when determining the user identifier recorded in the subscription information according to the subscription information, whether the number of user identifiers recorded in the subscription list of the subscription information is equal to 0. If not equal to 0, determine, according to the subscription information, a user identifier recorded in a subscription list of the subscription information.
  • the data processing apparatus may push the target data packet to the requesting device indicated by the user identifier according to the user identifier determined from the subscription information.
  • the subscription information configured for the target data packet includes a task push times threshold, and the data processing device pushes the request device indicated by the user identifier according to the determined user identifier.
  • the number of times that the target data packet has been pushed is less than the task push threshold threshold. If the detection result is less than, the user identifier is indicated according to the determined user identifier. The requesting device pushes the target data packet.
  • the user identifier is bound with routing information
  • the data processing device may obtain routing information bound to the user identifier according to the user identifier determined from the subscription information, and according to The routing information determines a physical port corresponding to the routing information, and the data processing device may push the target data packet to a requesting device corresponding to the user identifier by using a physical port corresponding to the routing information.
  • the data processing apparatus is provided with a pushed counter for counting the number of user identifiers that have pushed the target data packet, and the data processing apparatus may: when pushing the target data packet, Determining a target user identifier from the determined user identifiers, and pushing the target data packet according to the target user identifier. Wherein, when the target data packet is pushed according to the target user identifier, the count of the pushed counter is increased by one. The data processing device may initialize the count in the pushed counter to 0 before pushing the target data packet.
  • the order of the user identifiers determined by the data processing device from the subscription list of the subscription information is user identifier 1, user identifier 2, user identifier 3, and the data processing device may be from the subscription information. Determining, in the user identifier in the subscription list, that the target user identifier is the user identifier 1, the data processing device may push the target data packet to the requesting device indicated by the user identifier 1, and the push counter is The count is increased by 1.
  • the user identifier 2 may be determined from the subscription list of the subscription information as the target user identifier, The data processing apparatus may push the target data packet to the requesting device indicated by the user identification 2 and increment the count in the pushed counter by one to increase the count in the pushed counter to two. Similarly, the data processing apparatus may push the target data packet to the requesting device indicated by the user identifier 3, and increase the count in the pushed counter by one to make the pushed counter The count is increased to 3.
  • the data processing apparatus may detect the number of user identifiers that have been pushed in the pushed counter and that have pushed the target data packet. Whether it is equal to the number of user identifiers recorded in the subscription information, and if the detection result is not equal to, after delaying the preset time interval, triggering execution of the subscription information according to the subscription information to determine that the subscription is in the subscription User ID in the message.
  • the data processing apparatus is triggered again to perform the determining, according to the subscription information, the user identifier 2 recorded in the subscription information behind the user identifier 1 and Sending the target data packet to the requesting device indicated by the user identifier 2, and sequentially looping, the data processing device may further send the target data packet to the requesting device indicated by the user identifier 3.
  • the data processing apparatus detects if the number of user identifiers of the target data packet that have been pushed in the pushed counter is equal to the number of user identifiers recorded in the subscription information, if The result is equal to, then the push of the target data packet can be stopped. For example, assuming that the number of user identifiers of the recorder in the subscription information is 3, if the data processing apparatus detects that the number of user identifiers recorded in the pushed counter that have pushed the target data packet is 3, then It is determined that the count in the pushed counter is equal to the number of user identifiers recorded in the subscription information, such that the data processing apparatus can stop pushing the target data packet.
  • the data processing device when detecting that the target data packet needs to be sent, may obtain the subscription information configured for the target data packet, and determine the user recorded in the subscription information according to the subscription information. Identifying, and pushing the target data packet according to the determined user identifier. In this way, different data push requirements can be compatible, which effectively balances the communication load of the system and improves system stability.
  • FIG. 3 is a schematic flowchart diagram of another data processing method according to an embodiment of the present invention.
  • the method may be performed by the data processing apparatus, where a specific explanation of the data processing apparatus is as described above. .
  • the difference between the method embodiment and the foregoing embodiment shown in FIG. 2 is that, in the embodiment of the present invention, the data processing apparatus may detect the user identifier carried in the data request by receiving a subscription request for subscribing to the target data packet. Whether it exists in the subscription information configured for the target data packet, if not, records the user identifier into the subscription information.
  • the method of the embodiment of the present invention includes the following steps.
  • S301 Receive a subscription request for subscribing to the target data packet.
  • the data processing apparatus may receive a subscription request for subscribing to the target data packet.
  • the subscription request carries a user identifier of the requesting device that requests the target data packet.
  • S302 Detect whether a user identifier carried in the subscription request exists in subscription information configured for the target data packet.
  • the data processing device may detect whether the user identifier carried in the subscription request exists in the subscription information configured for the target data packet.
  • the subscription identifier in the subscription information stores a user identifier requesting to subscribe to the target data packet.
  • the data processing apparatus may use the received request for subscribing to the target.
  • the user ID of the data packet is recorded in the subscription list of the subscription information.
  • the data processing apparatus may acquire the time of receiving each subscription request for subscribing to the target data packet when the user identifier is recorded in the subscription information configured for the target data packet. And recording, according to the sequence of the time information, the user identifier determined from each subscription request into the subscription information configured for the target data packet. For example, if the data processing apparatus receives a subscription request sent by three requesting apparatuses for subscribing to the target data packet, the data processing apparatus may acquire the first requesting apparatus when receiving the subscription request.
  • the time of the subscription request is 9:00, the time for receiving the subscription request of the second requesting device is 9:05, and the time for receiving the subscription request of the third requesting device is 9:10
  • the data processing device can Determining, in order of the time of requesting the subscription request of the device, sequentially recording the user identifier 1 determined from the subscription request of the first requesting device into the subscription information configured for the target data packet, from the second The user identifier 2 determined in the subscription request of the requesting device is recorded in the subscription information configured for the target data packet, and the user identifier 3 determined from the subscription request of the third requesting device is recorded as the target The subscription information for the packet configuration.
  • S305 Determine, according to the subscription information, a user identifier recorded in the subscription information.
  • S306 Obtain routing information bound to the user identifier according to the user identifier.
  • S307 Determine, according to the routing information, a physical port corresponding to the routing information.
  • the data processing device may determine the physical port corresponding to the routing information according to the routing information bound to the user identifier determined in the subscription information. For example, if the user identifier recorded in the subscription information is the user identifier 1, the user identifier 3, and the user identifier 2, the data processing apparatus may determine the user according to the routing information bound to the user identifier 1.
  • the physical port corresponding to the routing information on the identifier 1, such as the physical port 1, and the physical port corresponding to the routing information on the user identifier 3, such as the physical port 3, and the physical information corresponding to the routing information on the user identifier 2 is determined.
  • Port such as physical port 2.
  • S308 Push the target data packet by using a physical port corresponding to the routing information.
  • the data processing apparatus is provided with a pushed counter for counting the number of user identifiers that have pushed the target data packet, and the data processing apparatus may: when pushing the target data packet, Determining a target user identifier from the determined user identifiers, and pushing the target data packet according to the target user identifier. Wherein, when the target data packet is pushed according to the target user identifier, the count of the pushed counter is increased by one. The data processing device may initialize the count in the pushed counter to 0 before pushing the target data packet.
  • the user identifier 2 may be determined from the subscription list of the subscription information as the target user identifier, The data processing apparatus may push the target data packet to the requesting device indicated by the user identification 2 and increment the count in the pushed counter by one to increase the count in the pushed counter to two. Similarly, the data processing apparatus may push the target data packet to the requesting device indicated by the user identifier 3, and increase the count in the pushed counter by one to make the pushed counter The count is increased to 3.
  • the data processing apparatus may detect the number of user identifiers that have been pushed in the pushed counter and that have pushed the target data packet. Whether it is equal to the number of user identifiers recorded in the subscription information, and if the detection result is not equal to, after delaying the preset time interval, triggering execution of the subscription information according to the subscription information to determine that the subscription is in the subscription User ID in the message.
  • the data processing apparatus is triggered again to perform the determining, according to the subscription information, the user identifier 2 recorded in the subscription information behind the user identifier 1 and Sending the target data packet to the requesting device indicated by the user identifier 2, and sequentially looping, the data processing device may further send the target data packet to the requesting device indicated by the user identifier 3.
  • the data processing apparatus detects if the number of user identifiers of the target data packet that have been pushed in the pushed counter is equal to the number of user identifiers recorded in the subscription information, if The result is equal to, then the push of the target data packet can be stopped. For example, assuming that the number of user identifiers of the recorder in the subscription information is 3, if the data processing apparatus detects that the number of user identifiers recorded in the pushed counter that have pushed the target data packet is 3, then It is determined that the count in the pushed counter is equal to the number of user identifiers recorded in the subscription information, such that the data processing apparatus can stop pushing the target data packet.
  • the data processing apparatus may receive a subscription request for subscribing to the target data packet, and if it is detected that the user identifier carried by the subscription request does not exist in the subscription information configured for the target data packet, Recording the user identifier into the subscription information, and when detecting that the target data packet needs to be sent, obtaining the subscription information configured for the target data packet, and determining, according to the subscription information, the record in the subscription information.
  • User identification and pushing the target data packet according to the determined user identifier. In this way, it can be compatible with different data push requirements, effectively balancing the communication load of the system and improving system stability.
  • the memory 401 may include a volatile memory; the memory 401 may also include a non-volatile memory; the memory 401 may also include a combination of the above types of memory.
  • the processor 402 can be a central processing unit (CPU).
  • the processor 402 can also further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
  • processor 402 is further configured to perform the following steps:
  • the user identification is recorded into the subscription information configured for the target data packet.
  • processor 402 is further configured to perform the following steps:
  • processor 402 is further configured to perform the following steps:
  • processor 402 is further configured to perform the following steps:
  • processor 402 is further configured to perform the following steps:
  • the user identifier recorded in the subscription information is determined according to the subscription information.
  • processor 402 is further configured to perform the following steps:
  • the count of the pushed counter is increased by one.
  • processor 402 is further configured to perform the following steps:
  • the detection result is no, after the preset time interval is delayed, the execution of the determining the user identifier recorded in the subscription information according to the subscription information is triggered again.
  • processor 402 is further configured to perform the following steps:
  • the push of the target data packet is stopped.
  • the device is disposed on a smart pan/tilt device and/or a drone.
  • the data processing device when detecting that the target data packet needs to be sent, may obtain the subscription information configured for the target data packet, and determine the user recorded in the subscription information according to the subscription information. Identifying, and pushing the target data packet according to the determined user identifier. In this way, it can be compatible with different data push requirements, effectively balance the communication load of the system, and improve system stability.
  • FIG. 5 is a schematic structural diagram of a mobile device according to an embodiment of the present invention.
  • the mobile device includes: a data processing device 51;
  • the data processing device 51 is configured to: when detecting that the target data packet needs to be sent, acquire subscription information configured for the target data packet; and determine, according to the subscription information, a user identifier recorded in the subscription information; And pushing the target data packet according to the determined user identifier.
  • the mobile device further includes: a requesting device 52;
  • the requesting device 52 is configured to send a subscription request for subscribing to the target data packet to the data processing device.
  • the requesting device 52 is a device on the mobile device, or the requesting device 52 is another device connected to the mobile device.
  • the mobile device is a smart pan/tilt device and/or a drone.
  • the data processing apparatus 51 is configured to receive a subscription request for subscribing to the target data packet, where the subscription request carries a user identifier, and the user identifier is determined from the subscription request, and The user identification is recorded in subscription information configured for the target data packet.
  • the data processing device 51 is configured to detect whether the user identifier exists in the subscription information; if the detection result is no, record the user identifier to the configured for the target data packet In the subscription information.
  • the data processing apparatus 51 is configured to acquire time information of each subscription request for subscribing to the target data packet, and determine a user that is determined from each subscription request according to a sequence of the time information.
  • the identification record is in the subscription information configured for the target data packet.
  • the data processing device 51 is configured to detect whether the number of pushed times of the target data packet is less than the threshold number of task push times; if the detection result is yes, perform the pushing according to the determined user identifier.
  • the target data packet is configured to detect whether the number of pushed times of the target data packet is less than the threshold number of task push times; if the detection result is yes, perform the pushing according to the determined user identifier. The target data packet.
  • the data processing device 51 is configured to acquire routing information bound to the user identifier according to the user identifier, and determine a physical port corresponding to the routing information according to the routing information; The physical port corresponding to the information pushes the target data packet.
  • the data processing device 51 is configured to detect whether the number of user identifiers recorded in the subscription information is equal to 0; if the detection result is no, determine, according to the subscription information, records in the subscription information. User ID.
  • the data processing device 51 is configured to determine a target user identifier from the user identifier, and push the target data packet according to the determined target user identifier; wherein, according to the target user identifier When the target data packet is pushed, the count of the pushed counter is incremented by one.
  • the data processing device 51 is configured to detect whether the number of user identifiers that have been pushed in the pushed counter and that have pushed the target data packet is equal to the number of user identifiers recorded in the subscription information; If not, the user identifier determined in the subscription information is determined to be executed according to the subscription information after delaying the preset time interval.
  • the data processing apparatus 51 is configured to stop pushing the target data packet if it is detected that the count in the pushed counter is equal to the number of user identifiers recorded in the subscription information.
  • the data processing device 51 may obtain the subscription information configured for the target data packet, and determine, according to the subscription information, the record in the subscription information.
  • the user identifier and according to the determined user identifier, pushes the target data packet to the requesting device 52 that sends the subscription request. In this way, it is possible to achieve compatible data push requirements, effectively balance the communication load of the system, and improve system stability.
  • the embodiment of the invention further provides a data processing system, comprising: a data processing device and a request device;
  • the requesting device is configured to send a subscription request for subscribing to the target data packet to the data processing device;
  • the data processing apparatus is configured to: in response to the subscription request, acquire, when it is detected that a target data packet needs to be sent, subscription information configured for the target data packet; and determine, according to the subscription information, that the record is in the Subscribe the user identifier in the information; push the target data packet according to the determined user identifier.
  • the data processing apparatus is configured to receive a subscription request for subscribing to the target data packet, where the subscription request carries a user identifier, and the user identifier is determined from the subscription request, and The user identification record is recorded in the subscription information configured for the target data packet.
  • the data processing apparatus is configured to detect whether the user identifier exists in the subscription information; if the detection result is no, record the user identifier to the subscription configured for the target data packet Information.
  • the data processing apparatus is configured to acquire time information of each subscription request for subscribing to the target data packet, and determine a user identifier that is determined from each subscription request according to a sequence of the time information. Recorded into the subscription information configured for the target data packet.
  • the data processing apparatus is configured to detect whether the pushed number of times of the target data packet is less than the threshold number of task push times; if the detection result is yes, execute the user identifier according to the determined, push station The target data packet.
  • the data processing apparatus is configured to acquire routing information bound to the user identifier according to the user identifier, determine a physical port corresponding to the routing information according to the routing information, and use the routing information The corresponding physical port pushes the target data packet.
  • the data processing apparatus is configured to detect whether the number of user identifiers recorded in the subscription information is equal to 0; if the detection result is no, determine, according to the subscription information, records recorded in the subscription information. User ID.
  • the data processing apparatus is configured to determine a target user identifier from the user identifier, and push the target data packet according to the determined target user identifier; wherein, according to the target user identifier, push The count of the pushed counter is incremented by one when the target packet is used.
  • the data processing apparatus is configured to detect whether the number of user identifiers that have been pushed in the pushed counter and that have been pushed by the target data packet is equal to the number of user identifiers recorded in the subscription information; If no, the user identifier determined in the subscription information is determined according to the subscription information after the preset time interval is delayed.
  • the data processing apparatus is configured to stop pushing the target data packet if it is detected that the count in the pushed counter is equal to the number of user identifiers recorded in the subscription information.
  • the data processing device comprises a smart pan/tilt device and/or a drone.
  • the data processing device when detecting that the target data packet needs to be sent, may obtain the subscription information configured for the target data packet, and determine the user recorded in the subscription information according to the subscription information. Identifying, and pushing the target data packet according to the determined user identifier. In this way, it can be compatible with different data push requirements, effectively balancing the communication load of the system and improving system stability.
  • FIG. 4 Also provided in an embodiment of the present invention is a computer readable storage medium storing a computer program that, when executed by a processor, implements FIG. 1, FIG. 2 or FIG. 3 of the present invention
  • the data processing apparatus of the embodiment of the present invention shown in FIG. 4 can also be implemented in the data processing method described in the corresponding embodiment, and details are not described herein again.
  • the computer readable storage medium may be an internal storage unit of the apparatus described in any of the preceding embodiments, such as a hard disk or memory of the device.
  • the computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, etc.
  • the computer readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer readable storage medium is for storing the computer program and other programs and data required by the terminal.
  • the computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种数据处理方法、装置、系统、可移动设备及存储介质,其中,所述方法包括:当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息(S201);根据所述订阅信息,确定出记录在所述订阅信息中的用户标识(S202);根据确定的所述用户标识,推送所述目标数据包(S203)。通过这种数据包订阅的方式,实现兼容不同的数据推送需求,有效平衡了系统的通信负载,提高了系统的稳定性。

Description

一种数据处理方法、装置、系统、可移动设备及存储介质 技术领域
本发明涉及控制技术领域,尤其涉及一种数据处理方法、装置、系统、可移动设备及存储介质。
背景技术
随着计算机技术的发展,无人机、云台等智能终端设备逐步普及,终端设备可以将使用过程中产生的数据存储在终端设备上,以便需要的时候将存储在该终端设备上的数据发送给需要的装置或设备。
然而,当存储数据的终端设备接收到很多来自各个终端设备的数据请求时,会导致存储数据的终端设备的通信负载过大,甚至超过终端的负载能力。
发明内容
本发明实施例提供了一种数据处理方法、装置、系统、可移动设备及存储介质,可兼容不同的数据推送需求,有效平衡系统的通信负载,提高系统的稳定性。
第一方面,本发明实施例提供了一种数据处理方法,包括:
当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;
根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;
根据确定的所述用户标识,推送所述目标数据包。
第二方面,本发明实施例提供了一种数据处理装置,包括:存储器和处理器;
所述存储器,用于存储程序指令;
所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:
当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;
根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;
根据确定的所述用户标识,推送所述目标数据包。
第三方面,本发明实施例提供了一种数据处理系统,包括:数据处理装置和请求装置;
所述请求装置,用于向所述数据处理装置发送用于订阅目标数据包的订阅请求;
所述数据处理装置,用于响应所述订阅请求,当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;根据确定的所述用户标识,向所述可移动装置推送所述目标数据包。
第四方面,本发明实施例提供一种可移动设备,包括:数据处理装置;
所述数据处理装置,用于当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;根据确定的所述用户标识,推送所述目标数据包。
第五方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如上述第一方面所述的数据处理方法。
本发明实施例,数据处理装置在检测到需要发送目标数据包时,通过获取为所述目标数据包配置的订阅信息,根据所述订阅信息,确定出记录在所述订阅信息中的用户标识,并根据确定的所述用户标识,推送所述目标数据包。通过这种方式,可实现兼容不同的数据推送需求,有效平衡系统的通信负载,提高系统稳定性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种数据处理方法交互的流程示意图;
图2是本发明实施例提供的一种数据处理方法的流程示意图;
图3是本发明实施例提供的另一种数据处理方法的流程示意图;
图4是本发明实施例提供的一种数据处理装置的结构示意图;
图5是本发明实施例提供的一种可移动设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
本发明实施例中提供的数据处理方法可应用于数据处理系统中,所述数据处理系统包括数据处理装置和请求装置。所述数据处理装置可以是无人飞行器(下文中简称为无人机)、挂载在无人机上的云台、无人汽车、机器人等任意一种可移动装置,所述请求装置可以是所述数据处理装置的一部分,或者,所述请求装置可以是与所述无人机等可移动装置相连接的飞行控制器,或者也可以是与所述可移动装置连接的其他模块。下面对本发明实施例中的数据处理方法进行说明,需要说明的是,以下描述的数据处理方法可以应用到无人机、云台、无人汽车等移动装置中,也可以应用到其他可移动装置中。
本发明的一些实施例中,所述数据处理装置可以在检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息,以根据所述订阅信息,从所述订阅信息中确定出记录在所述订阅信息中的用户标识,并根据确定出的所述用户标识,向所述用户标识所指示的请求装置推送所述目标数据包。
本发明一些实施例中,所述数据处理系统中包括的所述请求装置可以向所述数据处理装置发送用于订阅目标数据包的订阅请求,其中,所述订阅请求中携带了所述请求装置的用户标识。需要说明的时,所述目标数据包包括存储在所述数据处理装置中的数据信息,例如,假设所述数据处理装置设置于无人机上,则所述目标数据包可以包括所述无人机采集到的姿态信息和/或位置信息等数据,其中,所述姿态信息例如可以包括无人机的运动角度、速度、加速度等中的任意一种或多种,所述位置信息例如可以是GPS等信息。又例如,假设所述数据处理装置设置于挂载在无人机上的云台上,则所述目标数据包可以 包括所述云台采集到的姿态信息和/或位置信息等数据,其中,所述姿态信息例如可以包括云台的俯仰角(pitch)、航向角(yaw)、横滚角(roll)、速度、加速度等中的任意一种或多种,所述位置信息例如可以是GPS等信息。
在一个实施例中,所述数据处理装置在接收到请求装置发送的用于订阅所述目标数据包的订阅请求时,可以从所述订阅请求中确定出所述请求装置的用户标识,并将所述用户标识记录到为所述目标数据包配置的订阅信息中。
在一个实施例中,所述数据处理装置可以在将所述用户标识记录到为所述目标数据包配置的订阅信息中之前,检测所述用户标识是否存在于所述订阅信息中,如果不存在,则将所述用户标识记录到为所述目标数据包配置的所述订阅信息中。
在一个实施例中,所述请求装置通过自身分配的用户标识向所述数据处理装置发送用于订阅所述目标数据包的请求,并在订阅协议中设置任务推送次数阈值。所述订阅协议设置于所述订阅信息中,因此所述订阅信息中包括了所述订阅协议中的任务推送次数阈值。所述数据处理装置可以在推送所述目标数据包之前,检测所述目标数据包的已推送次数是否小于所述订阅信息中包括的任务推送次数阈值,如果检测结果为小于,则根据确定出的所述用户标识,向所述用户标识所指示的请求装置推送所述目标数据包。
在一些实施例中,所述用户标识上绑定了路由信息,所述数据处理装置在向发送订阅请求的请求装置推送目标数据包时,可以通过查阅路由的方式,从接收到的订阅请求中获取到所述用户标识,并获取所述用户标识上绑定的路由信息,然后根据所述路由信息,确定所述路由信息对应的物理端口,从而通过所述路由信息对应的物理端口向所述用户标识所指示的请求装置推送所述目标数据包。
在一个实施例中,所述数据处理装置在向所述用户标识所指示的请求装置推送所述目标数据包之前,可以检测所述订阅信息中记录的用户标识的数量是否等于0,如果不等于0,则可以根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
在一个实施例中,所述数据处理装置中设置有用于对已推送所述目标数据包的用户标识的数量进行计数的已推送计数器。所述数据处理装置可以从所述用户标识中确定出目标用户标识,并向所述目标用户标识对应的请求装置推送 所述目标数据包。其中,在根据所述目标用户标识推送所述目标数据包时,每推送一个目标数据包给目标用户标识对应的请求装置,所述已推送计数器的计数增加1。其中,所述目标用户标识是根据所述订阅信息的订阅列表中的用户标识的排列顺序确定的。
在一些实施例中,所述数据处理装置在根据确定出的所述用户标识,向所述用户标识所指示的请求装置推送所述目标数据包之后,可以检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量,如果不等于,则在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。如果等于,则停止推送所述目标数据包。可见,通过这种方式,可以有效地避免突发性数据对系统稳定性的考验,降低了系统的通信负载。
本发明实施例提供的数据处理方法可以应用于能够自主移动的机器人等可移动装置的数据处理任务,下面结合附图对应用于移动装置的数据处理方法进行举例说明。
请参见图1,图1是本发明实施例提供的一种数据处理方法交互的流程示意图,所述交互方法可以应用于数据处理系统,其中,所述数据处理系统的具体解释如前所述。具体地,本发明实施例的所述方法包括如下步骤。
S101:请求装置向数据处理装置发送用于订阅目标数据包的订阅请求。
本发明实施例中,请求装置可以向数据处理装置发送用于订阅目标数据包的订阅请求,其中,所述订阅请求中携带了所述请求装置自身配置的用户标识。
S102:数据处理装置接收所述订阅请求,并从所述订阅请求中确定出用户标识。
本发明实施例中,数据处理装置可以接收所述请求装置发送的订阅请求,并从所述订阅请求中确定出所述请求装置的用户标识。例如,假设所述用户标识为数字1,则所述数据处理装置可以在接收到所述请求装置发送的订阅请求时,从所述订阅请求中确定出所述请求装置的用户标识为1。
S103:数据处理装置检测所述用户标识是否存在于为所述目标数据包配置的订阅信息中。
本发明实施例中,所述数据处理装置在从所述订阅请求中确定出所述请求装置的用户标识后,可以检测所述用户标识是否存在于所述目标数据包配置的 订阅信息中。其中,所述订阅信息中包括了请求订阅所述目标数据包的用户标识的订阅列表。
S104:如果检测结果为否,则数据处理装置将所述用户标识记录到为所述目标数据包配置的所述订阅信息中。
本发明实施例中,所述数据处理装置如果检测出从所述订阅请求中确定出的用户标识在所述订阅信息中不存在,则可以将所述用户标识记录到为所述目标数据包配置的订阅信息的订阅列表中。
在一个实施例中,所述数据处理装置可以获取接收到的用于订阅所述目标数据包的各订阅请求的时间信息,并根据所述时间信息的先后顺序,将从各订阅请求中确定出的用户标识记录到为所述目标数据包配置的所述订阅信息中。例如,假设所述数据处理装置接收到3个请求装置发送的用于订阅所述目标数据包的订阅请求,在接收所述订阅请求时,所述数据处理装置可以获取接收到第一请求装置的订阅请求的时间为9:00,接收到第二请求装置的订阅请求的时间为9:05,接收到第三请求装置的订阅请求的时间为9:10,则所述数据处理装置可以根据各请求装置的订阅请求的时间的先后顺序,依次将从所述第一请求装置的订阅请求中确定出的用户标识1记录到为所述目标数据包配置的订阅信息中,将从所述第二请求装置的订阅请求中确定出的用户标识2记录到为所述目标数据包配置的订阅信息中,将从所述第三请求装置的订阅请求中确定出的用户标识3记录到为所述目标数据包配置的订阅信息中。
S105:数据处理装置当检测到需要发送所述目标数据包时,获取为所述目标数据包配置的订阅信息。
本发明实施例中,所述数据处理装置当检测到需要发送所述目标数据包时,可以获取为所述目标数据包配置的订阅信息,并从所述订阅信息中获取订阅所述目标数据包的订阅列表,所述订阅列表中存储了订阅所述目标数据包的请求装置的用户标识。
S106:数据处理装置根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
本发明实施例中,所述数据处理装置可以根据所述订阅信息,确定出记录在所述订阅信息的订阅列表中的用户标识。例如,所述数据处理装置可以根据所述订阅信息,确定出记录在所述订阅信息的订阅列表中的用户标识按时间先 后顺序为1、2、3。
S107:数据处理装置根据确定的所述用户标识,向所述请求装置推送所述目标数据包。
本发明实施例中,所述数据处理装置可以根据从所述订阅信息中确定出的用户标识,向所述用户标识所指示的请求装置推送目标数据包。例如,如果所述数据处理装置确定出的订阅信息的订阅列表中的用户标识按时间先后顺序依次为1、2、3,则所述数据处理装置可以依次向所述用户标识1所指示的第一请求装置推送所述目标数据包,向所述用户标识2所指示的第二请求装置推送所述目标数据包,向所述用户标识3所指示的第三请求装置推送所述目标数据包。
在一个实施例中,为所述目标数据包配置的订阅信息中还包括任务推送次数阈值,所述任务推送次数阈值是用于表示所述数据处理装置对推送所述目标数据包所限定的次数。所述数据处理装置在向所述用户标识所指示的请求装置推送所述目标数据包之前,可以检测所述目标数据包的已推送次数是否小于所述任务推送次数,如果检测结果为小于,则所述数据处理装置可以根据从所述订阅信息的订阅列表中确定出的用户标识,并根据所述订阅列表中各用户标识的顺序,依次向所述用户标识所指示的请求装置推送所述目标数据包。
在一个实施例中,所述用户标识上绑定了路由信息,所述数据处理装置在根据确定出的所述用户标识,推送所述目标数据包时,可以根据所述用户标识,获取所述用户标识上绑定的路由信息,并根据所述路由信息,确定所述路由信息对应的物理端口,从而通过所述路由信息对应的物理端口向所述用户标识所指示的请求装置推送所述目标数据包。
在一个实施例中,所述数据处理装置在根据确定的所述用户标识,推送所述目标数据包之后,可以检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量,如果不等于,则可以在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识,如果检测到所述已推送计数器中的计数等于所述订阅信息中记录的用户标识的数量,则停止推送所述目标数据包。例如,假设所述数据处理装置设置的预设的时间间隔为2s,假设所述订阅信息的订阅列表中的用户标识按顺序依次为1、2、3,如果所述数据处理 装置在根据确定的用户标识1,推送所述目标数据包之后,如果检测到所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量不等于所述订阅信息中记录的用户标识的数量,则在延时2s(预设的时间间隔)之后,再次触发所述数据处理装置执行所述根据所述订阅信息,确定出记录在所述订阅信息中排在用户标识1后面的用户标识2,并向所述用户标识2所指示的请求装置发送所述目标数据包,依次循环,直至向所述用户标识3所指示的请求装置发送所述目标数据包之后,检测到所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量等于所述订阅信息中记录的用户标识的数量时,停止推送所述目标数据包。
S108:请求装置向所述数据处理装置返回接收所述目标数据包的确认指令。
本发明实施例中,所述请求装置在接收到所述数据处理装置推送的目标数据包之后,可以向所述数据处理装置发送确认指令,以通知所述数据处理装置所述请求装置已收到目标数据包。
本发明实施例,通过请求装置向所述数据处理装置发送用于订阅目标数据包的订阅请求,所述数据处理装置将所述订阅请求中携带的用户标识记录至为所述目标数据包配置的订阅信息中,当所述数据处理装置检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息,并根据所述订阅信息,确定出记录在所述订阅信息中的用户标识,从而根据确定的所述用户标识,推送所述目标数据包。通过这种方式,可以兼容不同的数据推送需求,有效平衡了系统的通信负载,提高系统稳定性。
请参见图2,图2是本发明实施例提供的一种数据处理方法的流程示意图,所述方法可以由数据处理装置执行,其中,所述数据处理装置的具体解释如前所述。具体地,本发明实施例的所述方法包括如下步骤。
S201:当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息。
本发明实施例中,所述数据处理装置当检测到需要发送目标数据包时,可以获取为所述目标数据包配置的订阅信息。其中,所述订阅信息中包括订阅列表,所述订阅列表中存储了请求所述目标数据包的请求装置的用户标识。
S202:根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
本发明实施例中,所述数据处理装置在检测到需要发送目标数据包之后,可以从获取到的为所述目标数据包配置的订阅信息中确定出记录在所述订阅信息的订阅列表上的用户标识。
在一个实施例中,所述数据处理装置在根据所述订阅信息,确定出记录在所述订阅信息中的用户标识时,可以检测所述订阅信息的订阅列表中记录的用户标识的数量是否等于0,如果不等于0,则根据所述订阅信息,确定出记录在所述订阅信息的订阅列表中的用户标识。
S203:根据确定的所述用户标识,推送所述目标数据包。
本发明实施例中,所述数据处理装置可以根据从订阅信息中确定出的用户标识,向所述用户标识所指示的请求装置推送所述目标数据包。
在一个实施例中,所述为所述目标数据包配置的订阅信息中包括任务推送次数阈值,所述数据处理装置在根据确定的所述用户标识,向所述用户标识所指示的请求装置推送所述目标数据包之前,可以检测所述目标数据包的已推送次数是否小于所述任务推送次数阈值,如果检测结果为小于,则根据确定的所述用户标识,向所述用户标识所指示的请求装置推送所述目标数据包。
在一个实施例中,所述用户标识上绑定有路由信息,所述数据处理装置可以根据从所述订阅信息中确定出的用户标识,获取所述用户标识上绑定的路由信息,并根据所述路由信息,确定出所述路由信息对应的物理端口,所述数据处理装置可以通过所述路由信息对应的物理端口,向所述用户标识对应的请求装置推送所述目标数据包。
在一个实施例中,所述数据处理装置中设置有用于对已推送所述目标数据包的用户标识的数量进行计数的已推送计数器,所述数据处理装置在推送所述目标数据包时,可以从确定的所述用户标识中确定出目标用户标识,并根据所述目标用户标识,推送所述目标数据包。其中,在根据所述目标用户标识推送所述目标数据包时,所述已推送计数器的计数增加1。其中,所述数据处理装置在推送所述目标数据包之前,可以对所述已推送计数器中的计数初始化为0。例如,假设所述数据处理装置从所述订阅信息的订阅列表中确定出的用户标识的排列顺序为用户标识1、用户标识2、用户标识3,所述数据处理装置可以从所述订阅信息的订阅列表中的用户标识中确定出目标用户标识为用户标识1,则所述数据处理装置可以向所述用户标识1所指示的请求装置推送所 述目标数据包,并将所述已推送计数器中的计数增加1。所述数据处理装置在向所述用户标识1所指示的请求装置推送所述目标数据包之后,可以从所述订阅信息的订阅列表中确定出所述用户标识2为目标用户标识,则所述数据处理装置可以向所述用户标识2所指示的请求装置推送所述目标数据包,并将所述已推送计数器中的计数增加1,以使所述已推送计数器中的计数增加为2。同理可得,所述数据处理装置可以向所述用户标识3所指示的请求装置推送所述目标数据包,并将所述已推送计数器中的计数增加1,以使所述已推送计数器中的计数增加为3。
在一个实施例中,所述数据处理装置在根据确定的所述用户标识,推送所述目标数据包之后,可以检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量,如果检测结果为不等于,则在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。例如,假设所述数据处理装置设置的预设的时间间隔为2s,假设所述订阅信息的订阅列表中的用户标识按顺序依次为1、2、3,如果所述数据处理装置在根据确定的用户标识1,推送所述目标数据包之后,如果检测到所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量不等于所述订阅信息中记录的用户标识的数量,则在延时2s(预设的时间间隔)之后,再次触发所述数据处理装置执行所述根据所述订阅信息,确定出记录在所述订阅信息中排在用户标识1后面的用户标识2,并向所述用户标识2所指示的请求装置发送所述目标数据包,依次循环,所述数据处理装置还可以向所述用户标识3所指示的请求装置发送所述目标数据包。
在一个实施例中,所述数据处理装置在检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量时,如果检测结果为等于,则可以停止推送所述目标数据包。例如,假设所述订阅信息中记录仪的用户标识的数量为3,如果所述数据处理装置检测到所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量为3,则确定出所述已推送计数器中的计数等于所述订阅信息中记录的用户标识的数量,从而所述数据处理装置可以停止推送所述目标数据包。
本发明实施例中,数据处理装置可以在检测到需要发送目标数据包时,通 过获取为所述目标数据包配置的订阅信息,根据所述订阅信息,确定出记录在所述订阅信息中的用户标识,并根据确定的所述用户标识,推送所述目标数据包。通过这种方式,可实现兼容不同的数据推送需求,有效平衡了系统的通信负载,提高系统稳定性。
请参见图3,图3是本发明实施例提供的另一种数据处理方法的流程示意图,所述方法可以由所述数据处理装置执行,其中,所述数据处理装置的具体解释如前所述。所述方法实施例与上述图2所述实施例的区别在于,本发明实施例中,该数据处理装置可以通过接收用于订阅目标数据包的订阅请求,检测所述数据请求中携带的用户标识是否存在于为所述目标数据包配置的订阅信息中,如果不存在,则将所述用户标识记录到所述订阅信息中。具体地,本发明实施例的所述方法包括如下步骤。
S301:接收用于订阅目标数据包的订阅请求。
本发明实施例中,数据处理装置可以接收用于订阅目标数据包的订阅请求。其中,所述订阅请求中携带了请求所述目标数据包的请求装置的用户标识。
S302:检测所述订阅请求携带的用户标识是否存在于为所述目标数据包配置的订阅信息中。
本发明实施例中,所述数据处理装置可以在接收到用于订阅目标数据包的订阅请求之后,检测所述订阅请求携带的用户标识是否存在于为所述目标数据包配置的订阅信息中。其中,所述订阅信息中的订阅列表上存储了请求订阅所述目标数据包的用户标识。
S303:如果不存在,则将所述用户标识记录到所述订阅信息中。
本发明实施例中,所述数据处理装置如果检测到所述订阅请求携带的用户标识不存在于为所述目标数据包配置的订阅信息中,则可以将接收到的用于请求订阅所述目标数据包的用户标识记录到所述订阅信息的订阅列表中。
在一个实施例中,所述数据处理装置在将用户标识记录到为所述目标数据包配置的所述订阅信息中时,可以获取接收到用于订阅所述目标数据包的各订阅请求的时间信息,并根据所述时间信息的先后顺序,将从各订阅请求中确定出的用户标识记录到为所述目标数据包配置的所述订阅信息中。例如,假设所述数据处理装置接收到3个请求装置发送的用于订阅所述目标数据包的订阅请求,在接收所述订阅请求时,所述数据处理装置可以获取接收到第一请求装 置的订阅请求的时间为9:00,接收到第二请求装置的订阅请求的时间为9:05,接收到第三请求装置的订阅请求的时间为9:10,则所述数据处理装置可以根据各请求装置的订阅请求的时间的先后顺序,依次将从所述第一请求装置的订阅请求中确定出的用户标识1记录到为所述目标数据包配置的订阅信息中,将从所述第二请求装置的订阅请求中确定出的用户标识2记录到为所述目标数据包配置的订阅信息中,将从所述第三请求装置的订阅请求中确定出的用户标识3记录到为所述目标数据包配置的订阅信息中。
S304:当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息。
本发明实施例中,所述数据处理装置在检测到需要发送目标数据包时,可以获取为所述目标数据包配置的订阅信息。
S305:根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
本发明实施例中,所述数据处理装置可以在检测到需要发送目标数据包之后,根据获取到的为所述目标数据包配置的所述订阅信息,确定出记录在所述订阅信息的订阅列表中的用户标识。例如,假设所述订阅信息的订阅列表中记录的用户标识为用户标识1、用户标识3、用户标识2,如果所述数据处理装置检测到需要发送目标数据包,则可以根据获取到的为所述目标数据包配置的所述订阅信息,确定出记录在所述订阅信息的订阅列表中的用户标识为用户标识1、用户标识3、用户标识2。
S306:根据所述用户标识,获取所述用户标识上绑定的路由信息。
本发明实施例中,所述数据处理装置可以在确定出记录在所述订阅信息中的用户标识之后,根据所述用户标识,获取所述用户标识上绑定的路由信息。
S307:根据所述路由信息,确定所述路由信息对应的物理端口。
本发明实施例中,所述数据处理装置可以根据在订阅信息中确定出的用户标识上绑定的路由信息,确定所述路由信息对应的物理端口。例如,假设所述订阅信息中记录的用户标识为用户标识1、用户标识3、用户标识2,则所述数据处理装置可以根据所述用户标识1上绑定的路由信息,确定出所述用户标识1上路由信息对应的物理端口,如物理端口1,以及确定出所述用户标识3上路由信息对应的物理端口,如物理端口3,并确定出所述用户标识2上路由信息对应的物理端口,如物理端口2。
S308:通过所述路由信息对应的物理端口推送所述目标数据包。
本发明实施例中,所述数据处理装置可以通过所述路由信息对应的物理端口,向所述用户标识所指示的请求装置推送所述目标数据包。例如,假设所述订阅信息中的用户标识为用户标识1、用户标识3、用户标识2,且所述用户标识1上绑定的路由信息对应的物理端口为物理端口1,所述用户标识3上绑定的路由信息对应的物理端口为物理端口3,所述用户标识2上绑定的路由信息对应的物理端口为物理端口2,如果所述数据处理装置检测到需要发送目标数据包时,所述数据处理装置可以通过所述用户标识1上绑定的路由信息对应的物理端口1,向所述用户标识1所指示的请求装置推送所述目标数据包;以及通过所述用户标识3上绑定的路由信息对应的物理端口3,向所述用户标识3所指示的请求装置推送所述目标数据包,并通过所述用户标识2上绑定的路由信息对应的物理端口2,向所述用户标识2所指示的请求装置推送所述目标数据包。
在一个实施例中,所述为所述目标数据包配置的订阅信息中包括任务推送次数阈值,所述数据处理装置在根据确定的所述用户标识,推送所述目标数据包之前,可以检测所述目标数据包的已推送次数是否小于所述任务推送次数阈值,如果检测结果为小于,则根据确定的所述用户标识,向所述用户标识所指示的请求装置推送所述目标数据包。
在一个实施例中,所述数据处理装置中设置有用于对已推送所述目标数据包的用户标识的数量进行计数的已推送计数器,所述数据处理装置在推送所述目标数据包时,可以从确定的所述用户标识中确定出目标用户标识,并根据所述目标用户标识,推送所述目标数据包。其中,在根据所述目标用户标识推送所述目标数据包时,所述已推送计数器的计数增加1。其中,所述数据处理装置在推送所述目标数据包之前,可以对所述已推送计数器中的计数初始化为0。例如,假设所述数据处理装置从所述订阅信息的订阅列表中确定出的用户标识的排列顺序为用户标识1、用户标识2、用户标识3,所述数据处理装置可以从所述订阅信息的订阅列表中的用户标识中确定出目标用户标识为用户标识1,则所述数据处理装置可以向所述用户标识1所指示的请求装置推送所述目标数据包,并将所述已推送计数器中的计数增加1。所述数据处理装置在向所述用户标识1所指示的请求装置推送所述目标数据包之后,可以从所述订 阅信息的订阅列表中确定出所述用户标识2为目标用户标识,则所述数据处理装置可以向所述用户标识2所指示的请求装置推送所述目标数据包,并将所述已推送计数器中的计数增加1,以使所述已推送计数器中的计数增加为2。同理可得,所述数据处理装置可以向所述用户标识3所指示的请求装置推送所述目标数据包,并将所述已推送计数器中的计数增加1,以使所述已推送计数器中的计数增加为3。
在一个实施例中,所述数据处理装置在根据确定的所述用户标识,推送所述目标数据包之后,可以检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量,如果检测结果为不等于,则在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。例如,假设所述数据处理装置设置的预设的时间间隔为2s,假设所述订阅信息的订阅列表中的用户标识按顺序依次为1、2、3,如果所述数据处理装置在根据确定的用户标识1,推送所述目标数据包之后,如果检测到所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量不等于所述订阅信息中记录的用户标识的数量,则在延时2s(预设的时间间隔)之后,再次触发所述数据处理装置执行所述根据所述订阅信息,确定出记录在所述订阅信息中排在用户标识1后面的用户标识2,并向所述用户标识2所指示的请求装置发送所述目标数据包,依次循环,所述数据处理装置还可以向所述用户标识3所指示的请求装置发送所述目标数据包。
在一个实施例中,所述数据处理装置在检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量时,如果检测结果为等于,则可以停止推送所述目标数据包。例如,假设所述订阅信息中记录仪的用户标识的数量为3,如果所述数据处理装置检测到所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量为3,则确定出所述已推送计数器中的计数等于所述订阅信息中记录的用户标识的数量,从而所述数据处理装置可以停止推送所述目标数据包。
本发明实施例中,数据处理装置可以接收用于订阅目标数据包的订阅请求,如果检测到所述订阅请求携带的用户标识不存在于为所述目标数据包配置的订阅信息中,则将所述用户标识记录到所述订阅信息中,当检测到需要发送 目标数据包时,通过获取为所述目标数据包配置的订阅信息,根据所述订阅信息,确定出记录在所述订阅信息中的用户标识,并根据确定的所述用户标识,推送所述目标数据包。通过这种方式,可兼容不同的数据推送需求,有效平衡了系统的通信负载,提高系统稳定性。
请参见图4,图4是本发明实施例提供的一种数据处理装置的结构示意图。具体的,所述数据处理装置包括:存储器401、处理器402、输入接口403以及输出接口404。
所述存储器401可以包括易失性存储器(volatile memory);存储器401也可以包括非易失性存储器(non-volatile memory);存储器401还可以包括上述种类的存储器的组合。所述处理器402可以是中央处理器(central processing unit,CPU)。所述处理器402还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。
可选地,所述存储器401用于存储程序指令。所述处理器402可以调用存储器401中存储的程序指令,用于执行如下步骤:
当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;
根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;
根据确定的所述用户标识,推送所述目标数据包。
进一步地,所述处理器402,还用于执行如下步骤:
接收用于订阅所述目标数据包的订阅请求,所述订阅请求中携带了用户标识;
从所述订阅请求中确定出所述用户标识,并将所述用户标识记录到为所述目标数据包配置的订阅信息中。
进一步地,所述处理器402,还用于执行如下步骤:
检测所述用户标识是否存在于所述订阅信息中;
如果检测结果为否,则将所述用户标识记录到为所述目标数据包配置的所述订阅信息中。
进一步地,所述处理器402,还用于执行如下步骤:
获取接收到用于订阅所述目标数据包的各订阅请求的时间信息;
根据所述时间信息的先后顺序,将从各订阅请求中确定出的用户标识记录到为所述目标数据包配置的所述订阅信息中。
进一步地,所述处理器402,还用于执行如下步骤:
检测所述目标数据包的已推送次数是否小于所述任务推送次数阈值;
如果检测结果为是,则执行所述根据确定的所述用户标识,推送所述目标数据包。
进一步地,所述处理器402,还用于执行如下步骤:
根据所述用户标识,获取所述用户标识上绑定的路由信息;
根据所述路由信息,确定所述路由信息对应的物理端口;
通过所述路由信息对应的物理端口推送所述目标数据包。
进一步地,所述处理器402,还用于执行如下步骤:
检测所述订阅信息中记录的用户标识的数量是否等于0;
如果检测结果为否,则根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
进一步地,所述处理器402,还用于执行如下步骤:
从所述用户标识中确定出目标用户标识;
根据确定出的所述目标用户标识,推送所述目标数据包;
其中,在根据所述目标用户标识推送所述目标数据包时,所述已推送计数器的计数增加1。
进一步地,所述处理器402,还用于执行如下步骤:
检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量;
如果检测结果为否,则在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
进一步地,所述处理器402,还用于执行如下步骤:
如果检测到所述已推送计数器中的计数等于所述订阅信息中记录的用户标识的数量,则停止推送所述目标数据包。
进一步地,所述装置设置于智能云台设备和/或无人机上。
本发明实施例中,数据处理装置可以在检测到需要发送目标数据包时,通过获取为所述目标数据包配置的订阅信息,根据所述订阅信息,确定出记录在所述订阅信息中的用户标识,并根据确定的所述用户标识,推送所述目标数据包。通过这种方式,可兼容不同的数据推送需求,有效平衡系统的通信负载,提高系统稳定性。
请参见图5,图5是本发明实施例提供的一种可移动设备的结构示意图,具体地,所述可移动设备包括:数据处理装置51;
所述数据处理装置51,用于当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;根据确定的所述用户标识,推送所述目标数据包。
进一步地,所述可移动设备还包括:请求装置52;
所述请求装置52,用于向所述数据处理装置发送用于订阅目标数据包的订阅请求。
其中,所述请求装置52是所述可移动设备上的装置,或者,所述请求装置52是与所述可移动设备相连接的其他装置。
进一步地,所述可移动设备为智能云台设备和/或无人机。
进一步地,所述数据处理装置51,用于接收用于订阅所述目标数据包的订阅请求,所述订阅请求中携带了用户标识;从所述订阅请求中确定出所述用户标识,并将所述用户标识记录到为所述目标数据包配置的订阅信息中。
进一步地,所述数据处理装置51,用于检测所述用户标识是否存在于所述订阅信息中;如果检测结果为否,则将所述用户标识记录到为所述目标数据包配置的所述订阅信息中。
进一步地,所述数据处理装置51,用于获取接收到用于订阅所述目标数据包的各订阅请求的时间信息;根据所述时间信息的先后顺序,将从各订阅请求中确定出的用户标识记录到为所述目标数据包配置的所述订阅信息中。
进一步地,所述数据处理装置51,用于检测所述目标数据包的已推送次数是否小于所述任务推送次数阈值;如果检测结果为是,则执行所述根据确定的所述用户标识,推送所述目标数据包。
进一步地,所述数据处理装置51,用于根据所述用户标识,获取所述用户标识上绑定的路由信息;根据所述路由信息,确定所述路由信息对应的物理 端口;通过所述路由信息对应的物理端口推送所述目标数据包。
进一步地,所述数据处理装置51,用于检测所述订阅信息中记录的用户标识的数量是否等于0;如果检测结果为否,则根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
进一步地,所述数据处理装置51,用于从所述用户标识中确定出目标用户标识;根据确定出的所述目标用户标识,推送所述目标数据包;其中,在根据所述目标用户标识推送所述目标数据包时,所述已推送计数器的计数增加1。
进一步地,所述数据处理装置51,用于检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量;如果检测结果为否,则在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
进一步地,所述数据处理装置51,用于如果检测到所述已推送计数器中的计数等于所述订阅信息中记录的用户标识的数量,则停止推送所述目标数据包。
本发明实施例中,数据处理装置51可以在检测到需要发送目标数据包时,通过获取为所述目标数据包配置的订阅信息,根据所述订阅信息,确定出记录在所述订阅信息中的用户标识,并根据确定的所述用户标识,向发送订阅请求的请求装置52推送所述目标数据包。通过这种方式,可实现兼容不同的数据推送需求,有效平衡系统的通信负载,提高系统稳定性。
本发明实施例还提供了一种数据处理系统,包括:数据处理装置和请求装置;
所述请求装置,用于向所述数据处理装置发送用于订阅目标数据包的订阅请求;
所述数据处理装置,用于响应所述订阅请求,用于当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;根据确定的所述用户标识,推送所述目标数据包。
进一步地,所述数据处理装置,用于接收用于订阅所述目标数据包的订阅请求,所述订阅请求中携带了用户标识;从所述订阅请求中确定出所述用户标 识,并将所述用户标识记录到为所述目标数据包配置的订阅信息中。
进一步地,所述数据处理装置,用于检测所述用户标识是否存在于所述订阅信息中;如果检测结果为否,则将所述用户标识记录到为所述目标数据包配置的所述订阅信息中。
进一步地,所述数据处理装置,用于获取接收到用于订阅所述目标数据包的各订阅请求的时间信息;根据所述时间信息的先后顺序,将从各订阅请求中确定出的用户标识记录到为所述目标数据包配置的所述订阅信息中。
进一步地,所述数据处理装置,用于检测所述目标数据包的已推送次数是否小于所述任务推送次数阈值;如果检测结果为是,则执行所述根据确定的所述用户标识,推送所述目标数据包。
进一步地,所述数据处理装置,用于根据所述用户标识,获取所述用户标识上绑定的路由信息;根据所述路由信息,确定所述路由信息对应的物理端口;通过所述路由信息对应的物理端口推送所述目标数据包。
进一步地,所述数据处理装置,用于检测所述订阅信息中记录的用户标识的数量是否等于0;如果检测结果为否,则根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
进一步地,所述数据处理装置,用于从所述用户标识中确定出目标用户标识;根据确定出的所述目标用户标识,推送所述目标数据包;其中,在根据所述目标用户标识推送所述目标数据包时,所述已推送计数器的计数增加1。
进一步地,所述数据处理装置,用于检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量;如果检测结果为否,则在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
进一步地,所述数据处理装置,用于如果检测到所述已推送计数器中的计数等于所述订阅信息中记录的用户标识的数量,则停止推送所述目标数据包。
进一步地,所述数据处理装置包括智能云台设备和/或无人机。
本发明实施例中,数据处理装置可以在检测到需要发送目标数据包时,通过获取为所述目标数据包配置的订阅信息,根据所述订阅信息,确定出记录在所述订阅信息中的用户标识,并根据确定的所述用户标识,推送所述目标数据包。通过这种方式,可兼容不同的数据推送需求,有效平衡了系统的通信负载, 提高系统稳定性。
在本发明的实施例中还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明图1、图2或图3所对应实施例中描述的数据处理方法,也可实现图4所述本发明所对应实施例的数据处理装置,在此不再赘述。
所述计算机可读存储介质可以是前述任一实施例所述的装置的内部存储单元,例如装置的硬盘或内存。所述计算机可读存储介质也可以是所述装置的外部存储设备,例如所述装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述装置的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims (38)

  1. 一种数据处理方法,其特征在于,包括:
    当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;
    根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;
    根据确定的所述用户标识,推送所述目标数据包。
  2. 根据权利要求1所述的方法,其特征在于,所述当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息之前,包括:
    接收用于订阅所述目标数据包的订阅请求,所述订阅请求中携带了用户标识;
    从所述订阅请求中确定出所述用户标识,并将所述用户标识记录到为所述目标数据包配置的订阅信息中。
  3. 根据权利要求2所述的方法,其特征在于,所述将所述用户标识记录到为所述目标数据包配置的订阅信息中,包括:
    检测所述用户标识是否存在于所述订阅信息中;
    如果检测结果为否,则将所述用户标识记录到为所述目标数据包配置的所述订阅信息中。
  4. 根据权利要求3所述的方法,其特征在于,所述将所述用户标识记录到为所述目标数据包配置的所述订阅信息中,包括:
    获取接收到用于订阅所述目标数据包的各订阅请求的时间信息;
    根据所述时间信息的先后顺序,将从各订阅请求中确定出的用户标识记录到为所述目标数据包配置的所述订阅信息中。
  5. 根据权利要求1所述的方法,其特征在于,所述订阅信息中包括任务推送次数阈值,所述根据确定的所述用户标识,推送所述目标数据包之前,包括:
    检测所述目标数据包的已推送次数是否小于所述任务推送次数阈值;
    如果检测结果为是,则执行所述根据确定的所述用户标识,推送所述目标数据包。
  6. 根据权利要求1所述的方法,其特征在于,所述用户标识上绑定了路由信息;所述根据确定的所述用户标识,推送所述目标数据包,包括:
    根据所述用户标识,获取所述用户标识上绑定的路由信息;
    根据所述路由信息,确定所述路由信息对应的物理端口;
    通过所述路由信息对应的物理端口推送所述目标数据包。
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识,包括:
    检测所述订阅信息中记录的用户标识的数量是否等于0;
    如果检测结果为否,则根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
  8. 根据权利要求7所述的方法,其特征在于,所述设备中设置有用于对已推送所述目标数据包的用户标识的数量进行计数的已推送计数器;所述根据确定的所述用户标识,推送所述目标数据包,包括:
    从所述用户标识中确定出目标用户标识;
    根据确定出的所述目标用户标识,推送所述目标数据包;
    其中,在根据所述目标用户标识推送所述目标数据包时,所述已推送计数器的计数增加1。
  9. 根据权利要求8所述的方法,其特征在于,所述根据确定的所述用户标识,推送所述目标数据包之后,包括:
    检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量;
    如果检测结果为否,则在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
  10. 根据权利要求9所述的方法,其特征在于,还包括:
    如果检测到所述已推送计数器中的计数等于所述订阅信息中记录的用户标识的数量,则停止推送所述目标数据包。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述方法应用于智能云台设备上,所述目标数据包是所述智能云台设备发送的。
  12. 一种数据处理装置,其特征在于,包括:存储器和处理器;
    所述存储器,用于存储程序指令;
    所述处理器,调用存储器中存储的程序指令,用于执行如下步骤:
    当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;
    根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;
    根据确定的所述用户标识,推送所述目标数据包。
  13. 根据权利要求12所述的装置,其特征在于,所述处理器具体用于执行如下步骤:
    接收用于订阅所述目标数据包的订阅请求,所述订阅请求中携带了用户标识;
    从所述订阅请求中确定出所述用户标识,并将所述用户标识记录到为所述目标数据包配置的订阅信息中。
  14. 根据权利要求13所述的装置,其特征在于,所述处理器具体用于执行如下步骤:
    检测所述用户标识是否存在于所述订阅信息中;
    如果检测结果为否,则将所述用户标识记录到为所述目标数据包配置的所述订阅信息中。
  15. 根据权利要求14所述的装置,其特征在于,所述处理器具体用于执 行如下步骤:
    获取接收到用于订阅所述目标数据包的各订阅请求的时间信息;
    根据所述时间信息的先后顺序,将从各订阅请求中确定出的用户标识记录到为所述目标数据包配置的所述订阅信息中。
  16. 根据权利要求12所述的装置,其特征在于,所述处理器具体用于执行如下步骤:
    检测所述目标数据包的已推送次数是否小于所述任务推送次数阈值;
    如果检测结果为是,则执行所述根据确定的所述用户标识,推送所述目标数据包。
  17. 根据权利要求12所述的装置,其特征在于,所述处理器具体用于执行如下步骤:
    根据所述用户标识,获取所述用户标识上绑定的路由信息;
    根据所述路由信息,确定所述路由信息对应的物理端口;
    通过所述路由信息对应的物理端口推送所述目标数据包。
  18. 根据权利要求12所述的装置,其特征在于,所述处理器具体用于执行如下步骤:
    检测所述订阅信息中记录的用户标识的数量是否等于0;
    如果检测结果为否,则根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
  19. 根据权利要求18所述的装置,其特征在于,所述处理器具体用于执行如下步骤:
    从所述用户标识中确定出目标用户标识;
    根据确定出的所述目标用户标识,推送所述目标数据包;
    其中,在根据所述目标用户标识推送所述目标数据包时,所述已推送计数器的计数增加1。
  20. 根据权利要求19所述的装置,其特征在于,所述处理器具体用于执行如下步骤:
    检测所述已推送计数器中记录的已推送所述目标数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量;
    如果检测结果为否,则在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
  21. 根据权利要求20所述的装置,其特征在于,所述处理器具体用于执行如下步骤:
    如果检测到所述已推送计数器中的计数等于所述订阅信息中记录的用户标识的数量,则停止推送所述目标数据包。
  22. 根据权利要求12-21任一项所述的装置,其特征在于,所述装置设置于智能云台设备和/或无人机上。
  23. 一种数据处理系统,其特征在于,包括:数据处理装置和请求装置;
    所述请求装置,用于向所述数据处理装置发送用于订阅目标数据包的订阅请求;
    所述数据处理装置,用于响应所述订阅请求,当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;根据确定的所述用户标识,向所述可移动装置推送所述目标数据包。
  24. 根据权利要求23所述的系统,其特征在于,
    所述数据处理装置,用于接收用于订阅所述目标数据包的订阅请求,所述订阅请求中携带了用户标识;从所述订阅请求中确定出所述用户标识,并将所述用户标识记录到为所述目标数据包配置的订阅信息中。
  25. 根据权利要求24所述的系统,其特征在于,
    所述数据处理装置,用于检测所述用户标识是否存在于所述订阅信息中; 如果检测结果为否,则将所述用户标识记录到为所述目标数据包配置的所述订阅信息中。
  26. 根据权利要求25所述的系统,其特征在于,
    所述数据处理装置,用于获取接收到用于订阅所述目标数据包的各订阅请求的时间信息;根据所述时间信息的先后顺序,将从各订阅请求中确定出的用户标识记录到为所述目标数据包配置的所述订阅信息中。
  27. 根据权利要求23所述的系统,其特征在于,
    所述数据处理装置,用于检测所述目标数据包的已推送次数是否小于所述任务推送次数阈值;如果检测结果为是,则执行所述根据确定的所述用户标识,推送所述目标数据包。
  28. 根据权利要求23所述的系统,其特征在于,
    所述数据处理装置,用于根据所述用户标识,获取所述用户标识上绑定的路由信息;根据所述路由信息,确定所述路由信息对应的物理端口;通过所述路由信息对应的物理端口推送所述目标数据包。
  29. 根据权利要求23所述的系统,其特征在于,
    所述数据处理装置,用于检测所述订阅信息中记录的用户标识的数量是否等于0;如果检测结果为否,则根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
  30. 根据权利要求29所述的系统,其特征在于,
    所述数据处理装置,用于从所述用户标识中确定出目标用户标识;根据确定出的所述目标用户标识,推送所述目标数据包;其中,在根据所述目标用户标识推送所述目标数据包时,所述已推送计数器的计数增加1。
  31. 根据权利要求30所述的系统,其特征在于,
    所述数据处理装置,用于检测所述已推送计数器中记录的已推送所述目标 数据包的用户标识的数量是否等于所述订阅信息中记录的用户标识的数量;如果检测结果为否,则在延时预设的时间间隔之后,再次触发执行所述根据所述订阅信息,确定出记录在所述订阅信息中的用户标识。
  32. 根据权利要求31所述的系统,其特征在于,
    所述数据处理装置,用于如果检测到所述已推送计数器中的计数等于所述订阅信息中记录的用户标识的数量,则停止推送所述目标数据包。
  33. 根据权利要求23-32任一项所述的系统,其特征在于,所述数据处理装置包括智能云台设备和/或无人机。
  34. 一种可移动设备,其特征在于,包括:数据处理装置;
    所述数据处理装置,用于当检测到需要发送目标数据包时,获取为所述目标数据包配置的订阅信息;根据所述订阅信息,确定出记录在所述订阅信息中的用户标识;根据确定的所述用户标识,推送所述目标数据包。
  35. 根据权利要求34所述的设备,其特征在于,还包括:请求装置;
    所述请求装置,用于向所述数据处理装置发送用于订阅目标数据包的订阅请求。
  36. 根据权利要求34所述的设备,其特征在于,所述可移动设备为智能云台设备和/或无人机。
  37. 根据权利要求34所述的设备,其特征在于,所述数据处理装置用于执行上述如权利要求1至11任一项所述方法。
  38. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至11任一项所述方法。
PCT/CN2018/073451 2018-01-19 2018-01-19 一种数据处理方法、装置、系统、可移动设备及存储介质 WO2019140644A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2018/073451 WO2019140644A1 (zh) 2018-01-19 2018-01-19 一种数据处理方法、装置、系统、可移动设备及存储介质
CN201880010509.0A CN110268697A (zh) 2018-01-19 2018-01-19 一种数据处理方法、装置、系统、可移动设备及存储介质
US16/931,259 US20200351710A1 (en) 2018-01-19 2020-07-16 Data processing method, apparatus and system, mobile device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/073451 WO2019140644A1 (zh) 2018-01-19 2018-01-19 一种数据处理方法、装置、系统、可移动设备及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/931,259 Continuation US20200351710A1 (en) 2018-01-19 2020-07-16 Data processing method, apparatus and system, mobile device, and storage medium

Publications (1)

Publication Number Publication Date
WO2019140644A1 true WO2019140644A1 (zh) 2019-07-25

Family

ID=67301903

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/073451 WO2019140644A1 (zh) 2018-01-19 2018-01-19 一种数据处理方法、装置、系统、可移动设备及存储介质

Country Status (3)

Country Link
US (1) US20200351710A1 (zh)
CN (1) CN110268697A (zh)
WO (1) WO2019140644A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110909289B (zh) * 2019-11-20 2023-04-14 每日互动股份有限公司 一种数据处理方法及系统
CN114640710A (zh) * 2020-11-30 2022-06-17 华为技术有限公司 一种信息订阅的方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902733A (zh) * 2012-09-11 2013-01-30 北京奇艺世纪科技有限公司 一种基于内容订阅的信息推送方法、装置及系统
CN104135429A (zh) * 2014-08-12 2014-11-05 中国科学院声学研究所 一种信息推送方法和装置
CN105635260A (zh) * 2015-12-24 2016-06-01 小米科技有限责任公司 配置方法及装置
CN106209607A (zh) * 2016-09-12 2016-12-07 腾讯科技(深圳)有限公司 订阅信息展示方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1879337B1 (en) * 2005-10-21 2012-08-29 Huawei Technologies Co., Ltd. A method for processing the register message in the ims network according to the initial filtering rules
CN105338014A (zh) * 2014-06-26 2016-02-17 青岛海尔智能家电科技有限公司 一种基于订阅机制的通信方法和主题服务器
CN106230896B (zh) * 2016-07-18 2019-09-03 深圳国泰安教育技术有限公司 一种消息推送方法、装置及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902733A (zh) * 2012-09-11 2013-01-30 北京奇艺世纪科技有限公司 一种基于内容订阅的信息推送方法、装置及系统
CN104135429A (zh) * 2014-08-12 2014-11-05 中国科学院声学研究所 一种信息推送方法和装置
CN105635260A (zh) * 2015-12-24 2016-06-01 小米科技有限责任公司 配置方法及装置
CN106209607A (zh) * 2016-09-12 2016-12-07 腾讯科技(深圳)有限公司 订阅信息展示方法和装置

Also Published As

Publication number Publication date
US20200351710A1 (en) 2020-11-05
CN110268697A (zh) 2019-09-20

Similar Documents

Publication Publication Date Title
US9479392B2 (en) Personal communication drone
CN110839017B (zh) 代理ip地址识别方法、装置、电子设备及存储介质
CN110177393A (zh) 用于低功耗设备的省电的无线网络连接和注册
WO2015188579A1 (zh) 分布式虚拟防火墙装置、方法及防火墙控制器
US20190380014A1 (en) In-vehicle device, information processing method and computer-readable medium
CN108023829B (zh) 报文处理方法及装置、存储介质、电子设备
JP2006114020A5 (zh)
US9218266B2 (en) Systems and methods for replication of test results in a network environment
CN106571978B (zh) 数据包捕获方法及装置
WO2019140644A1 (zh) 一种数据处理方法、装置、系统、可移动设备及存储介质
CN111263377B (zh) 网络配置方法、装置、设备、系统和配网测试方法、系统
KR20180091048A (ko) 차량 기반 통신 방법, 시스템 및 장치
CN108024308B (zh) 无线接入点分享、连接的方法及设备
WO2017012499A1 (zh) 一种无人机控制方法、装置和系统
US11460839B2 (en) Unmanned aerial vehicle access method and device
CN113791792B (zh) 应用调用信息的获取方法、设备以及存储介质
US10200864B2 (en) Method and device for managing wireless access point
US20150281197A1 (en) System and method for managing logins in a network interface
KR20160113671A (ko) 병렬 프로토콜 스택 인스턴스에 기초하여 데이터 패킷을 처리하는 방법 및 장치
US10009265B2 (en) Communication control apparatus, communication control method, communication system, and recording medium
CN109845190A (zh) 网络访问控制方法、装置及设备
CN108093385B (zh) 蓝牙控制器处理广播包的方法、蓝牙控制器和蓝牙设备
CN110351334B (zh) 业务请求处理及支付业务请求处理方法和装置
US7945644B2 (en) Dynamic initialization method and system of location server
WO2024001848A1 (zh) 自动驾驶方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18900770

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18900770

Country of ref document: EP

Kind code of ref document: A1