Data issuing method, system and device and electronic equipment
By turning on the active issuance mode after receiving the data, searching the device and selecting the device to be issued for data distribution, the problem of excessive platform resource occupancy when the number of devices in the prior art is solved, and more efficient data issuance is achieved.
Patent Information
- Application Number
- CN202311249744.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2025-03-25
AI Technical Summary
When the number of devices to be issued is too large, the existing technology needs to rely on the management platform to issue data from each device, resulting in excessive platform resource utilization.
A data issuance method is realized. After receiving the target data sent by the data sending end, the target device starts the active dispatch mode, conducts device search, selects the device to be issued from the devices managed by the management platform, and distributes the target data.
Actively distribute data through target devices, reduce the use of platform resources and improve the efficiency and time of data distributing.
Smart Images

Figure CN119697237A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of security technology, and in particular to a data sending method, system, device and electronic equipment. Background Art
[0002] In the related art, the data sending method is usually that the management platform sends data to each device it manages. For example, after the management platform obtains the user image registered by the user, it can send the user image to each access control device it manages, so that the access control device can perform management and control analysis based on the user image.
[0003] However, when the number of devices to be sent is too large, it is necessary to rely on the management platform to send data to each device, which undoubtedly takes up too many platform resources.
[0004] At present, there is an urgent need for a data distribution method to reduce the occupation of platform resources. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a data delivery method, system, device and electronic device to reduce the occupation of platform resources. The specific technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a data delivery method, which is applied to a target device; the target device is a device managed by a management platform; the method comprises:
[0007] In response to receiving the target data sent by the data sending end, starting the active sending mode; wherein the data sending end is the management platform or a device managed by the management platform other than the target device;
[0008] In response to starting the active sending mode, performing a device search;
[0009] Selecting a device to be sent from the searched devices managed by the management platform; wherein the device to be sent is a device to which the target data is to be sent;
[0010] The target data is sent to the device to be sent.
[0011] Optionally, selecting a device to be sent from the searched devices managed by the management platform includes:
[0012] From the searched devices managed by the management platform, select a device that is not set with a first identifier to obtain a device to be sent; wherein the first identifier is used to represent the device that has been selected as the device to which the target data is to be sent;
[0013] Sending the target data to the device to be sent, including:
[0014] Setting the first identifier for the device to be issued;
[0015] After setting the first identifier, the target data is sent to the device to be sent.
[0016] Optionally, after selecting a device to be sent from the searched devices managed by the management platform and before sending the target data to the device to be sent, the method further includes:
[0017] Detecting whether the device to be sent meets the predetermined data sending conditions;
[0018] When it is detected that the device to be sent meets the predetermined data sending condition, triggering the step of sending the target data to the device to be sent;
[0019] When it is detected that the device to be sent does not meet the predetermined data sending condition, triggering the step of selecting the device to be sent from the searched devices managed by the management platform;
[0020] The predetermined data delivery conditions include:
[0021] One or more of having the same local area network encryption code as the target device, having a preset function token and matching the predetermined device auxiliary information; wherein the function token is a token used to characterize the participation in the data delivery process for the target data, and the predetermined device auxiliary information includes a predetermined device type, and / or a predetermined device version.
[0022] Optionally, after selecting a device to be sent from the searched devices managed by the management platform and before detecting whether the device to be sent meets a predetermined data sending condition, the method further includes:
[0023] Detect whether the target device has enabled the cross-device sending mode;
[0024] If the cross-device sending mode is not enabled, the step of detecting whether the device to be sent meets the predetermined data sending conditions is triggered;
[0025] If the cross-device sending mode is turned on, the step of sending the target data to the device to be sent is triggered.
[0026] Optionally, the sending of the target data to the to-be-sent device includes:
[0027] When the target data is not stored in the device to be sent, or when the target data is stored and a data content update condition for the target data is met, the target data is sent to the device to be sent.
[0028] Optionally, selecting a device to be sent from the searched devices managed by the management platform includes:
[0029] According to the principle of giving priority to the device with the closest path, the device to be sent is selected from the searched devices managed by the management platform.
[0030] In a second aspect, an embodiment of the present application provides a data sending device, which is applied to a target device; the target device is a device managed by a management platform; and the method includes:
[0031] An enabling module, configured to enable an active sending mode in response to receiving target data sent by a data sending end; wherein the data sending end is the management platform or a device managed by the management platform other than the target device;
[0032] A search module, configured to perform a device search in response to starting the active sending mode;
[0033] A selection module, used to select a device to be sent from the searched devices managed by the management platform; wherein the device to be sent is a device to which the target data is to be sent;
[0034] The sending module is used to send the target data to the device to be sent.
[0035] Optionally, the selection module includes:
[0036] A first selection submodule is used to select a device that is not provided with a first identifier from the searched devices managed by the management platform to obtain a device to be sent; wherein the first identifier is used to indicate that the device has been selected as the device to which the target data is to be sent;
[0037] The sending module includes:
[0038] A setting submodule, used for setting the first identification for the device to be issued;
[0039] A first sending submodule, configured to send the target data to the device to be sent after setting the first identifier;
[0040] Optionally, the device further comprises:
[0041] A first detection module, used for, after the selection module selects a device to be sent from the devices managed by the management platform, and before the sending module sends the target data to the device to be sent, to detect whether the device to be sent meets the predetermined data sending condition;
[0042] A first triggering module is used to trigger the sending module to send the target data to the device to be sent when it is detected that the device to be sent meets the predetermined data sending condition;
[0043] A second triggering module is used to trigger the selection module to select a device to be sent from the searched devices managed by the management platform when it is detected that the device to be sent does not meet the predetermined data sending condition;
[0044] The predetermined data delivery conditions include:
[0045] One or more of having the same LAN encryption code as the target device, having a preset function token, and matching the predetermined device auxiliary information; wherein the function token is a token used to represent the participation in the data delivery process for the target data, and the predetermined device auxiliary information includes a predetermined device type and / or a predetermined device version;
[0046] Optionally, the device further comprises:
[0047] A second detection module, configured to detect whether the target device has enabled the cross-device delivery mode after the selection module selects the device to be delivered from the devices managed by the management platform and before the first detection module determines whether the device to be delivered meets the predetermined data delivery conditions;
[0048] A third trigger module is used to trigger the first detection module to detect whether the device to be sent meets the predetermined data sending condition if the cross-device sending mode is not enabled;
[0049] A fourth triggering module is used to trigger the sending module to send the target data to the device to be sent if the cross-device sending mode is turned on;
[0050] Optionally, the sending module includes:
[0051] A second sending submodule is used to send the target data to the device to be sent if the device to be sent does not store the target data, or if the device to be sent stores the target data and satisfies a data content update condition for the target data;
[0052] Optionally, the selection module includes:
[0053] The second selection submodule is used to select the device to be sent from the searched devices managed by the management platform according to the principle of giving priority to the device with the closest path.
[0054] In a third aspect, an embodiment of the present application provides an electronic device, wherein the electronic device serves as a target device, the target device is a device managed by a management platform, and the electronic device includes:
[0055] Memory, used to store computer programs;
[0056] The processor is used to implement any of the above-mentioned data sending methods when executing the program stored in the memory.
[0057] In a fourth aspect, an embodiment of the present application provides a data delivery system, the system comprising the above-mentioned electronic device; the system further comprising: a management platform;
[0058] The management platform is used to send target data to the electronic device.
[0059] Optionally, the management platform is also used to record the target task information and send a receipt to the electronic device in response to receiving the target task information sent by the electronic device; wherein the target task information represents the completion status of the target data being sent down, and / or the updated version of the target data in the electronic device.
[0060] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above-mentioned data sending methods is implemented.
[0061] Beneficial effects of the embodiments of the present application:
[0062] The data sending method provided in the embodiment of the present application can start the active sending mode in response to receiving the target data sent by the data sending end; perform device search in response to starting the active sending mode; select the device to be sent from the searched devices managed by the management platform; and send the received target data to the device to be sent. It can be seen that the target device in the embodiment of the present application can start the active sending mode after receiving the target data sent by the sending end, so that data can be sent to the device to be sent managed by the management platform. Compared with the related art, when the number of devices to be sent is too large, it is not necessary to rely on the management platform to send data to each device, but data is sent through each target device managed by the management platform, and each device can be fully utilized, thereby reducing the occupation of platform resources.
[0063] In addition, the embodiments of the present application can fully utilize each device managed by the management platform, thereby reducing the time for sending target data and improving the efficiency of data sending.
[0064] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0066] Figure 1 A flowchart of a data sending method provided in an embodiment of the present application;
[0067] Figure 2 A flowchart of another data sending method provided in an embodiment of the present application;
[0068] FIG3( a) is a schematic diagram of the structure of a campus security system provided in an embodiment of the present application;
[0069] FIG3( b) is a schematic diagram of a workflow of a data delivery method provided in an embodiment of the present application;
[0070] FIG3( c ) is a schematic diagram of a workflow of another data delivery method provided in an embodiment of the present application;
[0071] FIG3( d ) is a schematic diagram of a workflow of another data delivery method provided in an embodiment of the present application;
[0072] FIG3( e) is a schematic diagram of a workflow of another data delivery method provided in an embodiment of the present application;
[0073] FIG3( f) is a schematic diagram of the workflow of another data sending method provided in an embodiment of the present application;
[0074] Figure 4 A schematic diagram of the structure of a data delivery system provided in an embodiment of the present application;
[0075] Figure 5 A schematic diagram of the structure of a data sending device provided in an embodiment of the present application;
[0076] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0077] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0078] Below, the professional terms involved in the embodiments of the present application are first introduced:
[0079] LAN encryption code: A password string generated based on the LAN, used for device identification before transmission. Devices containing the same LAN encryption code are devices in the same LAN.
[0080] Distribution: Data is distributed from the management platform to devices or from devices to devices.
[0081] P2P: peer-to-peer, person to person, device to device in this application.
[0082] In addition, in order to better understand the present solution, before introducing the solution provided by the embodiment of the present application, a data sending method in the related art is briefly introduced:
[0083] In the related art, the devices managed by the management platform are generally grouped to obtain various device groups. A device is selected as the main device in each device group. The management platform sends data to the main device in each device group, and the main device then sends data to other devices in the group.
[0084] When the number of device groups is small, the devices in the group rely on the master device to send data, which is time-consuming; when the number of device groups is large, the master device of each device group needs to wait for the management platform to send data to it, which is more dependent on the management platform and undoubtedly requires too many platform resources.
[0085] Based on the problems existing in the related technologies, the embodiments of the present application provide a data sending method, device and electronic device to reduce the occupation of platform resources. The specific comparison description is introduced below.
[0086] The following is an introduction to a data sending method provided in an embodiment of the present application.
[0087] The data delivery method provided in the embodiment of the present application can be applied to a target device, which is a device managed by a management platform. In a specific application, the target device can be a terminal device, or a server. The embodiment of the present application does not specifically limit the specific form of the target device.
[0088] Specifically, the execution subject of the data sending method may be a data sending device. Exemplarily, when the data sending method is applied to a terminal device, the data sending device may be a client running in the terminal device, and the client may be used to send data; when the data sending method is applied to a server, the data sending device may be a computer program running in the server, and the computer program may be used to send data.
[0089] It can be understood that the method provided in the embodiment of the present application can be applied to any scenario in which data is sent to the managed device based on the management platform. For example, the method provided in the embodiment of the present application can be applied to various security scenarios, such as: campus security scenarios, community access control identification scenarios, etc., so the embodiment of the present application does not specifically limit the application scenarios.
[0090] Among them, a data delivery method is applied to a target device; the target device is a device managed by a management platform; the method may include:
[0091] In response to receiving the target data sent by the data sending end, starting the active sending mode; wherein the data sending end is the management platform or a device managed by the management platform other than the target device;
[0092] In response to starting the active sending mode, performing a device search;
[0093] Selecting a device to be sent from the searched devices managed by the management platform; wherein the device to be sent is a device to which the target data is to be sent;
[0094] The target data is sent to the device to be sent.
[0095] It can be seen that after receiving the target data sent by the sender, the target device in the embodiment of the present application can start the active sending mode, so that data can be sent to the devices to be sent managed by the management platform. Compared with the related art, when the number of devices to be sent is too large, it is not necessary to rely on the management platform to send data to each device, but to send data through each target device managed by the management platform, so that each device can be fully utilized, thereby reducing the occupation of platform resources.
[0096] In addition, the embodiments of the present application can fully utilize each device managed by the management platform, thereby reducing the time for data delivery and improving the efficiency of data delivery.
[0097] A data sending method provided by an embodiment of the present application is described below in conjunction with the accompanying drawings.
[0098] Figure 1A data delivery method provided in an embodiment of the present application is applied to a target device; the target device is a device managed by a management platform, such as Figure 1 As shown, the method may include steps S101-S104:
[0099] S101, in response to receiving target data sent by a data sending end, starting an active sending mode;
[0100] The data sending end is the management platform or a device managed by the management platform other than the target device.
[0101] Among them, the management platform can manage multiple devices, and the target device is the device managed by the management platform. Therefore, each device managed by the management platform can be used as a target device to execute the method provided in the embodiment of the present application, and the management platform can be a software platform, which is not specifically limited in the embodiment of the present application. In addition, after the target device turns on the active sending mode, since the target device can continue to actively send data, the target device can also be called a master device.
[0102] Exemplarily, the target data may be media data, such as image data, video data or audio data, etc.; of course, it is not limited thereto, and the target data may also be various types of files that need to be distributed, etc., and the embodiments of the present application do not specifically limit this.
[0103] It is understandable that the target data can be user image data registered by the user. Then, depending on the application scenario, the target data will also change. For example, in the scenario of campus security, the target data can be user image data registered by teachers and students on campus. The embodiment of the present application does not specifically limit the target data. It should be noted that the management platform can send the target data to the target device, or the device other than the target device managed by the management platform can send the target data to the target device. In this way, after receiving the target data, the target device can start the active sending mode. In this mode, the target device can send data to the device managed by the management platform. Exemplarily, the target device A responds to the user image data sent by the management platform, and the target device A starts the active sending mode.
[0104] It should be noted that if the management platform sends target data to a device during the data sending process, it may not send subsequent data, or it may continue to send data. If the management platform does not send data during the subsequent sending process, the platform resource occupancy can be reduced. If the management platform sends data during the subsequent sending process, the data sending time can be reduced.
[0105] S102, in response to starting the active sending mode, performing a device search;
[0106] It can be understood that after the target device performs a device search, that is, after the device search function is started, multiple devices can be searched, or only one device can be searched, and the searched device can be a device managed by the management platform or a device not managed by the management platform. The embodiment of the present application does not limit the searched device.
[0107] For the sake of clarity, the device search process is introduced in other embodiments and will not be described in detail here.
[0108] S103, selecting a device to be issued from the searched devices managed by the management platform;
[0109] The device to be sent is the device to which the target data is to be sent;
[0110] It is understandable that among the devices managed by the management platform, there may be devices that do not need to send target data, and there may also be devices that have already sent data. Therefore, the target device can select the device to which the target data is to be sent from the devices managed by the searched management platform.
[0111] Optionally, in one implementation, step S103 may include step A1:
[0112] Step A1, according to the principle of giving priority to the device with the shortest path, select the device to be sent from the searched devices managed by the management platform.
[0113] In this implementation, in order to improve the efficiency of data delivery and make data delivery more regular, the target device can select the device to be delivered according to the principle of giving priority to the device with the closest path, that is, the principle of path proximity. For example, when the target device A selects the device to be delivered, it will give priority to the device with the closest path from the searched devices.
[0114] It is understandable that the path can be calculated based on the IP address in the platform registry. For example: the current IP is 192.168.1.1, the IP of device A is 192.168.1.5, then the path difference is 4, the IP of device B is 192.168.1.20, then the path difference is 19. In this way, from the searched devices, device A will be selected as the device to be sent.
[0115] It should be emphasized that the specific implementation method of the above-mentioned step S103 is only an example and should not constitute a limitation on the embodiments of the present application. In specific applications, other implementation methods may also be adopted. For example, the target device may also select the device to be sent from the searched devices in a random selection manner; or, the target device may also select the device to be sent from the searched devices in a manner of giving priority to devices of the same type.
[0116] S104: Send the target data to the device to be sent.
[0117] It can be understood that after the device to be sent receives the target data, the device to be sent can become a new target device, and can continue to execute the steps of starting the active sending mode in response to receiving the target data sent by the data sending end, so that data can be sent to other devices to be sent. Therefore, the embodiment of the present application can make full use of each device to send data. Exemplarily, the target device A sends the received target data to the device to be sent a, so that the device to be sent a becomes the new target device, and continues to execute the steps of the active sending mode.
[0118] In the technical solution of this application, the operations involved in obtaining, storing, using, processing, transmitting, providing and disclosing user personal information are all carried out with the user's authorization.
[0119] It should be noted that the user image data in this embodiment comes from a public data set.
[0120] It can be seen that after receiving the target data sent by the sender, the target device in the embodiment of the present application can start the active sending mode, so that data can be sent to the devices to be sent managed by the management platform. Compared with the related art, when the number of devices to be sent is too large, it is not necessary to rely on the management platform to send data to each device, but to send data through each target device managed by the management platform, so that each device can be fully utilized, thereby reducing the occupation of platform resources.
[0121] In addition, the embodiments of the present application can fully utilize each device managed by the management platform, thereby reducing the time for data delivery and improving the efficiency of data delivery.
[0122] Optionally, in another embodiment of the present application, selecting a device to be sent from the searched devices managed by the management platform includes:
[0123] From the searched devices managed by the management platform, select a device that is not set with a first identifier to obtain a device to be sent; wherein the first identifier is used to represent the device that has been selected as the device to which the target data is to be sent;
[0124] Correspondingly, sending the target data to the device to be sent includes:
[0125] Setting the first identifier for the device to be issued;
[0126] After setting the first identifier, the target data is sent to the device to be sent.
[0127] It is understandable that a device with a first identifier indicates that the device has been exclusively used by a device, so the first identifier can also be called an exclusive identifier. Therefore, in order to avoid repeated issuance, the target device does not need to issue data to the device with the first identifier. Based on the above reasons, the target device can select the device managed by the management platform and not provided with the first identifier from the searched devices to obtain the device to be issued. Exemplarily, for the searched devices a, b and c, then the device a managed by the management platform and not provided with the first identifier can be selected as the device to be issued. In addition, it is understandable that the device with the first identifier can be a device that has completed data issuance or a device that has not yet completed data issuance. The specific form of the first identifier is not limited in this application. Exemplarily, the first identifier can be a character, or a string, etc.
[0128] It is understandable that after determining the device to be sent, the first identification can be set for the device to be sent. Then, after setting the first identification, the device will no longer be selected as the device to be sent by other target devices. In addition, exemplarily, in one implementation, the first identification can be directly set on the device to be sent, and the setting method can be to send a notification message for setting the first identification to the device to be sent, so that the device to be sent can respond to the notification message and add the first identification to itself. It should be emphasized that the method of setting the first identification is not limited to this, and the above-mentioned setting method is only used as an example and should not constitute a limitation on the present application.
[0129] Optionally, in another implementation, the method of selecting, from the searched devices, a device that is managed by the management platform and is not provided with the first identifier, may include:
[0130] Based on the device registration table of the management platform, select the device managed by the management platform from the searched devices to obtain the candidate device;
[0131] Identify whether the obtained candidate device is set with a first identifier by sending an inquiry message to the obtained candidate device; wherein the inquiry message is used to inquire whether the first identifier is set;
[0132] A candidate device that is not set with the first identifier is selected to obtain a device to be issued.
[0133] It is understandable that the target device can also identify whether any device is set with the first identification based on the device status table of the management platform; wherein the device status table is used to record whether each device is set with the first identification, and any device can report to the management platform after setting the first identification for other devices, so that the management platform can record other devices set with the first identification in the device status table.
[0134] It should be emphasized that the above method of setting the first identifier is only an example and should not constitute a limitation.
[0135] It can be seen that the embodiment of the present application can identify whether any device is set with the first identifier based on the device status table of the management platform, thereby reducing the time for sending target data and improving the efficiency of data sending.
[0136] It can be seen that when the target device selects the device to be sent, it can select a device that is not set with the first identifier. Therefore, when sending data to the device to be sent, the first identifier is set for the device to be sent, thereby ensuring that the device to be sent with the first identifier set will not be searched by other target devices, thereby reducing the time for sending the target data and improving the efficiency of data sending.
[0137] Optionally, in another embodiment of the present application, after selecting a sending device from the searched devices managed by the management platform, and before sending the target data to the to-be-sent device, the method further includes steps B1-B3:
[0138] Step B1, detecting whether the device to be sent meets the predetermined data sending conditions;
[0139] It is understandable that before sending the target data to the device to be sent, it is possible to further analyze whether the device to be sent can send data, so as to ensure the validity of the data sending.
[0140] Among them, the conditions for sending the scheduled data include:
[0141] One or more of having the same local area network encryption code as the target device, having a preset function token and matching the predetermined device auxiliary information; wherein the function token is a token used to characterize the participation in the data delivery process for the target data, and the predetermined device auxiliary information includes a predetermined device type, and / or a predetermined device version.
[0142] The LAN encryption code is a password string generated according to the LAN and is used for identification between device transmissions. Devices containing the same LAN encryption code are devices in the same LAN.
[0143] It can be understood that the conditional content of the predetermined data sending condition can be one or more. For example, it can be the same LAN encryption code as the target device, or it can be a preset function token, or it can match the auxiliary information of the predetermined device, or it can be composed of multiple conditions. The embodiments of the present application do not make specific limitations on this.
[0144] It should be noted that if the target device and the device to be sent have the same LAN encryption code, then the target device can send data to the device to be sent. It should be emphasized that in the same LAN, different types of devices may have the same LAN encryption code or different LAN encryption codes. If they have different LAN encryption codes, they cannot transmit data to each other; if other types of devices do not have the device functions involved in this embodiment, but only have simplified versions of the functions, such as device A only has the data receiving function, if data is to be sent to device A, the target device needs to enable the cross-device sending mode, and only after searching for device A can data be sent to device A. The cross-device sending mode will be introduced in the subsequent embodiments, so it will not be repeated here; in addition, the specific device functions will be introduced in the subsequent embodiments, so it will not be repeated here. For example, an office has a LAN, and IP192.168.1.1-192.168.1.50 is assigned to 50 recording and broadcasting host devices. A LAN encryption code can be generated for the IP of the 50 recording and broadcasting host devices, and IP192.168.1.51-192.168.1.60 is assigned to 10 access control devices. A LAN encryption code can also be generated for the IP of the 10 access control devices. Therefore, different devices can have different LAN encryption codes. It should be emphasized that if an old model device, other type of device or other manufacturer's brand device is added to the above example environment, and the added device only has the function of receiving relevant data, this device is added to the current network environment. Then, after the target device in the current network environment turns on the cross-device mode, searching for this device will omit steps such as LAN encryption code verification, and directly send data to it according to the protocol.
[0145] It should be noted that the process of sending target data is point-to-point sending of target data, so the device to be sent with a preset functional token can be a device participating in the point-to-point sending of target data, while the device to be sent without a functional token is a device that does not participate in the point-to-point sending of target data. In addition, devices with the same functional token can support sending data to each other or verifying the communication protocol, so it can also be considered that the device to be sent with a preset functional token is the device that can participate in the data sending of target data.
[0146] It is understandable that for the detection of meeting the predetermined data sending conditions, it is not only possible to detect whether the device to be sent has the same LAN encryption code as the target device and whether it has a preset function token, but also whether it matches the predetermined device auxiliary information, that is, matches the predetermined device type / predetermined device version. It is understandable that the predetermined device auxiliary information may include a predetermined device type, and / or a predetermined device version. During use, both the predetermined device type and the predetermined device version are detected. The embodiment of the present application does not specifically limit the predetermined device auxiliary information. It should be noted that when sending data to devices of different device types and device versions, the data communication protocols used may be different, and the communication protocol used by the target device when communicating should be a communication protocol that matches the predetermined device type and the predetermined device version. In this way, in order to ensure data sending, the predetermined device type and the predetermined device version can be used as predetermined data sending conditions for detection. Exemplarily, the device version of access control device A is version 1, and the corresponding communication protocol of access control device A is the http (Hypertext Transfer Protocol, HTTP) protocol. Then, it can be detected whether the device to be sent matches the predetermined device type and the predetermined device version, so as to determine whether the corresponding communication protocol is the http protocol. If the corresponding communication protocol is the http protocol, it can be determined that access control device A belongs to the predetermined device type and the predetermined device version, and data can be sent.
[0147] It should be emphasized that the device version of the device to be sent is related to the data communication protocol address. When the device version changes, the data communication protocol address will also change. Therefore, when data is sent between devices, it needs to rely on the data communication protocol address. Therefore, after the device is updated, the data communication protocol address of the device must also be updated. For example, the version of device A is 1, the communication protocol is http protocol, and the data communication protocol address is http: / / xxx / v1. The version of device B is 2, the communication protocol is also http protocol, and the data communication protocol address is http: / / xxx / v2. Then, when the device version is updated, the protocol address will also change.
[0148] For step B1, the target device can screen the devices to be sent by detecting whether the devices to be sent meet the predetermined data sending conditions, so as to obtain the devices to be sent that meet the predetermined data sending conditions, and then send data to the devices to be sent, thereby ensuring the effectiveness of data sending and avoiding waste of platform resources.
[0149] Step B2, when it is detected that the device to be sent meets the predetermined data sending condition, triggering the step of sending the target data to the device to be sent;
[0150] It is understandable that if it is detected that the device to be sent meets all the predetermined data sending conditions, data can be sent directly to the device to be sent.
[0151] Step B3, when it is detected that the device to be sent does not meet the predetermined data sending conditions, triggering the step of selecting the device to be sent from the searched devices managed by the management platform.
[0152] It is understandable that if it is detected that the device to be sent does not meet the predetermined data sending conditions, the device to be sent is selected again from the searched devices. Then, if the device to be sent cannot be selected, it is possible that all the devices to be sent have completed data sending.
[0153] After obtaining the device to be sent and before sending data, the embodiment of the present application detects whether the device to be sent meets the predetermined data sending conditions. If it meets the predetermined data sending conditions, the step of sending data to the device to be sent is triggered, otherwise the step of selecting the device to be sent from the searched devices is triggered. It can be seen that this solution only sends data to the device to be sent that meets the predetermined data sending conditions, rather than blindly sending data to the device, which ensures the effectiveness of data sending and avoids waste of platform resources.
[0154] In addition, the embodiments of the present application can fully utilize each device managed by the management platform, thereby reducing the time for data delivery and improving the efficiency of data delivery.
[0155] Optionally, in an implementation, after selecting a device to be sent from the searched devices managed by the management platform and before detecting whether the device to be sent meets a predetermined data sending condition, the method further includes steps C1-C3:
[0156] Step C1, detecting whether the target device has enabled the cross-device sending mode;
[0157] It is understandable that the devices managed by the management platform can have multiple modes, so the target device can also have multiple modes, each mode has different functions. Then, the multiple modes can include a cross-device sending mode. When the cross-device sending mode is turned on, there is no need to detect whether the device to be sent meets the predetermined data sending conditions. It should be noted that the cross-device sending mode can be turned on or off. When sending to devices of different types, this mode can be turned on to reduce the sending time. It is understandable that cross-device sending can send data to computers, iPads or mobile phones. Security products can be recording and broadcasting host devices or access control devices. The above devices must support data interactive transmission protocols and functions.
[0158] Exemplary usage scenarios of the cross-device sending mode may be that a set of access control identification devices has been deployed in the campus security scenario, and other identification devices also want to receive data from the access control identification device. At this time, the cross-device sending mode can be enabled to facilitate data sending for target data.
[0159] Step C2, if the cross-device sending mode is not enabled, triggering the step of detecting whether the device to be sent meets the predetermined data sending conditions;
[0160] It is understandable that if the cross-device sending mode is not enabled, the device to be sent will continue to be checked whether it meets the predetermined data sending conditions. This situation may be that the cross-device sending is not involved in the sending process, or that cross-device sending is involved but the predetermined data sending conditions also need to be checked.
[0161] Step C3: if the cross-device sending mode is turned on, trigger the step of sending the target data to the device to be sent.
[0162] It is understandable that if the cross-device sending mode is turned on, the target data is sent directly to the device to be sent, without detecting one or more of the same LAN encryption code as the target device, a preset function token, and matching the predetermined device auxiliary information. In one implementation, when the cross-device sending mode is turned on, before triggering the sending of the target data to the device to be sent, it is also possible to detect whether the device to be sent has a preset function token. When the device to be sent has a preset function token, the step of sending the target data to the device to be sent is triggered. Exemplarily, when the cross-device sending mode is turned on, it is necessary to detect whether the device to be sent a has a preset function token. If it has a preset function token, the step of sending the target data to the device to be sent a is triggered.
[0163] The following is a brief introduction to the various modes of the devices to be delivered:
[0164] The active sending mode can also be called the active search function. When this mode is turned on, the target device can actively search for other devices. The active sending mode can be turned off. In addition, the active search function can also be triggered in real time. When a device is detected to be registered to the management platform, the target device can actively search for the device.
[0165] The passive search mode, which can also be called the passive search function, is used to enable the devices managed by the management platform to be searched by the target device. The passive search mode can be turned off.
[0166] The cross-device delivery mode has been introduced in the above embodiments, so it will not be described again.
[0167] In the detection mode, after searching for a device, it can be detected. The specific implementation method has been introduced in the above embodiment, so it will not be repeated again.
[0168] It can be seen that after the cross-device sending mode is turned on, the target device can directly set the first identification for the sending device, thereby reducing the time for sending target data and improving the efficiency of data sending.
[0169] Optionally, in one implementation, the present application embodiment also provides another data delivery method, such as Figure 2 As shown, the following steps may be included:
[0170] S201, in response to receiving target data sent by a data sending end, starting an active sending mode;
[0171] S202, in response to starting the active sending mode, performing a device search;
[0172] S203, selecting a device to be issued from the searched devices managed by the management platform;
[0173] It is understandable that steps S201-S203 are the same as steps S101-S103, so they are not described here in detail.
[0174] S204: When the target data is not stored in the device to be sent, or when the target data is stored and a data content update condition for the target data is met, send the target data to the device to be sent.
[0175] It should be emphasized that the data memory update condition may be that the version identifier of the target data received by the device to be sent is higher than the target version identifier, and the target version identifier is the version identifier of the target data stored in the device to be sent.
[0176] It is understandable that the version identifier can also be called a data update version identifier or a data batch code. For example, the version identifier can be a timestamp identifier, which is used to record the time when the target data was last received by the device to be sent. For example, at 11:11 on May 19, 2023, the management platform recorded a batch of data sent to the device. After all devices have completed receiving the data, the timestamp identifier will be recorded, and the timestamp identifier is 20230519111110.
[0177] Then, when the version identifier of the received target data is higher than the target version identifier of the device to be sent, the target device can send the target data to the device to be sent; if the target version identifier does not exist in the device to be sent, that is, the device to be sent does not store any version of the target data, the target device can send the target data to the device to be sent. It is understandable that in the case where the device to be sent does not store any version of the target data, the device to be sent can be a device that has just resumed work due to a device failure, or it can be a device that has just been registered on the management platform and has just been put online, and the embodiments of the present application do not limit it.
[0178] For example, a batch of target data is recorded at 13:15:09 on May 20, 2023 and sent to device A. The timestamp of device A is 20230520131509. Device A starts the active sending mode and searches for devices. Device B is found. The version identifier of the target data is 20230520131509, which is higher than the target version identifier of device B, 20230519111110. Therefore, device A can send data to device B.
[0179] Optionally, in one implementation, the method further includes step D1:
[0180] Step D1, after sending the received target data to the device to be sent, report the target task information to the management platform; wherein the target task information is used to characterize the completion status of sending the target data and / or the data update version of the target data.
[0181] It is understandable that the target task information can be information on the completion of the data distribution task for the device to be distributed, or it can be a data update version for the target data. The target task information can also be called a task completion identifier. It should be noted that when the target device reports to the management platform, it can not only report the target task information, but also report the target version identifier, and request a receipt from the management platform to ensure that the management platform records the completion of the target task information and the target version identifier. Of course, other information can also be reported, and the embodiments of the present application do not specifically limit it.
[0182] It should be noted that if information cannot be reported between the management platform and the target device due to poor network or management platform failure, then the above information can be saved on the target device first, and then reported to the management platform after the network is restored or the management platform resumes work.
[0183] It can be seen that after completing the data distribution, the target device can also report the target task information to the management platform so that the management platform can count the target task information, target version identification and other information to facilitate the next data distribution task.
[0184] Optionally, in one implementation, the method further includes steps E1-E2:
[0185] Step E1, in response to receiving a task issued by the management platform to issue the target data to a designated device, searching for the designated device; wherein the designated device is a device registered after the management platform issues the target data;
[0186] It is understandable that the device registered after the management platform sends the target data can be used as the designated device. After the designated device goes online, it must first report to the management platform, so that after receiving the information that the designated device is online, the management platform commands the target device closest to the designated device path to search for the designated device, thereby sending data to the designated device. Exemplarily, the target device A responds to the task issued by the management platform to send user image data to the designated device e, and searches for the designated device e.
[0187] For example, the access control device a needs to be replaced due to damage or other reasons. After the staff has replaced the access control device a, the management platform can assign the target device with the closest path to search for the access control device a.
[0188] Step E2: after searching for the designated device, sending the received target data to the designated device.
[0189] It is understandable that when sending the received target data to the designated device, it is possible to detect whether the version identifier of the target device is higher than the version identifier of the designated device. The target data can be sent only when it is higher than the version identifier of the designated device.
[0190] It can be understood that the process of sending the received target data to the designated device has been introduced in the above embodiment, so it will not be repeated here.
[0191] It can be seen that after the embodiment of the present application completes the delivery of target data, when a designated device is registered on the management platform, the management platform can issue a task so that the target device with the closest path sends data to the designated device, thereby preventing the designated device from being ignored. The designated device can be automatically detected and data can be sent without the need for additional operations.
[0192] In the embodiment of the present application, when the target data is not stored in the device to be sent, or when the target data is stored and the data content update condition for the target data is met, the device to be sent sends the received target data. It can be seen that data can be sent to the device to be sent only when the above two conditions are met, so that data can be sent accurately to the device to be sent, rather than to any device, to ensure the validity of the sent data and avoid resource waste.
[0193] The following will introduce the data sending method in combination with the accompanying drawings and exemplary application scenarios. Figure 3(a)-Figure 3(f) As shown, this may include:
[0194] A certain university has 200 class cards, each of which corresponds to a class, and each class corresponds to an access control identification device. There are 15,000 people. The user image data registered by each person needs to be sent to each access control identification device. The size of a single user image data is between 10-200k. According to the smallest user image data, it is about 146M, and according to the largest user image data, it is about 2.86G. Therefore, it is estimated that resources less than 146M and less than 2.86G should be sent to all 200 devices.
[0195] As shown in Figure 3(a), Figure 3(a) shows the schematic diagram of the campus security system. There is a web server connected to the 1U network device. The web server includes a management platform. All devices are registered to the management platform, a registration table is generated, and a logical network path is generated. All user image data is stored in the web server and then sent to all devices by the management platform in the web server. Among them, each device is in the device LAN, and each device includes device A-device I.
[0196] As shown in FIG3( b ), the management platform in the web server exclusively occupies device A, which is in the device local area network, and sends user image data to device A.
[0197] As shown in FIG. 3(c) and FIG. 3(d), each device is in the device local area network. The management platform in the web server updates the version identification of device A and records that device A has been updated to the latest version. Device A can search for other devices in the device local area network according to the principle of path proximity. The fan-shaped in FIG. 3(c) can vividly reflect the meaning of "search". For example, if device B, device C, etc. are searched and user image data is started to be sent, then device A can send user image data to device B. The management platform in the web server can also continue to send user image data to device I.
[0198] As shown in Figure 3(e), all devices are in the device local area network. Device A completes sending data to device B, updates the version identifier of device B, and reports it to the management platform in the web server so that the management platform records that device B has been updated to the latest version. At this time, the management platform in the web server, device I, device A and device B continue to search for other devices in the device local area network and send user image data. At this time, device A searches for device C, and device B searches for device D.
[0199] As shown in Figure 3(f), each device is in the device local area network. Device A sends user image data to device C, device B sends user image data to device D, and device I sends user image data to device E. This process continues until all devices have completed sending and sent target task information and version identification information to the management platform in the web server. The management platform can then count the information.
[0200] It can be seen that after receiving the target data sent by the sender, the target device in the embodiment of the present application can start the active sending mode, so that data can be sent to the devices to be sent managed by the management platform. Compared with the related art, when the number of devices to be sent is too large, it is not necessary to rely on the management platform to send data to each device, but to send data through each target device managed by the management platform, so that each device can be fully utilized, thereby reducing the occupation of platform resources.
[0201] In addition, the embodiments of the present application can fully utilize each device managed by the management platform, thereby reducing the time for data delivery and improving the efficiency of data delivery.
[0202] Optionally, in one implementation, the data delivery method described in the embodiment of the present application can be expressed in the form of a formula, which is briefly introduced below:
[0203] Formula 1:
[0204] t1+(log m N)*t2<=t0<=t1+(log m N+1)*t2
[0205] Among them, t0 is the total time consumption, t1 is the time required for the management platform to send a single device to be sent, t2 is the time required for the target device to send the device to be sent, m is the base number, which is 2 in this formula, and N represents the total number of devices.
[0206] It can be understood that the formula log is a logarithmic notation. Assuming that only one device can be sent simultaneously at a time, the base m = 2. For example, if there are 8 devices in total, then N = 8. Therefore, sending to 8 devices means sending 3 times. If there are 10 devices in total, then N = 10. Therefore, sending to 10 devices in pairs means sending 4 times.
[0207] The following example uses the case where 10 devices are sent, t1 is 10s, and t2 is 10s to describe the situation where the management platform only participates in the first data delivery:
[0208] In the first step, the management platform sends data to device 1, which takes 10 seconds;
[0209] In the second step, device 1 sends data to device 2, which takes 10 seconds, for a total of 20 seconds;
[0210] In the third step, device 1 sends data to device 3, and device 2 sends data to device 4, which takes 10 seconds. At this time, the total time is 30 seconds;
[0211] In the fourth step, device 1 sends data to device 5, device 2 sends data to device 6, device 3 sends data to device 7, and device 4 sends data to device 8, which takes 10 seconds, a total of 40 seconds;
[0212] In the fifth step, device 1 sends data to device 9, and device 2 sends data to device 10, which takes 10 seconds. At this time, the total time is 50 seconds;
[0213] Then, when the management platform only participates in the first distribution, the entire distribution process takes 50 seconds.
[0214] The following example shows that the management platform is always involved in data delivery, taking 10 devices, t1 as 10s, and t2 as 10s as an example:
[0215] In the first step, the management platform sends data to device 1, which takes 10 seconds;
[0216] In the second step, device 1 sends data to device 2, and the management platform sends data to device 3, which takes 10 seconds, for a total of 20 seconds.
[0217] In the third step, device 1 sends data to device 4, device 2 sends data to device 5, device 3 sends data to device 6, and the management platform sends data to device 7. This takes 10 seconds, so a total of 30 seconds.
[0218] In the fourth step, device 1 sends data to device 8, device 2 sends data to device 9, and device 3 sends data to device 10, which takes 10 seconds, a total of 40 seconds;
[0219] Then, when the management platform is always involved in data distribution, the entire distribution process takes 40 seconds.
[0220] The following takes 10 devices, t1 is 10s, and t2 is 10s as an example to introduce the grouped data delivery in the related technology:
[0221] Among them, 10 devices are divided into 5 groups, each group has 2 devices.
[0222] In the first step, the management platform sends data to device 1, which takes 10 seconds;
[0223] In the second step, the management platform sends data to device 2, which takes 10 seconds;
[0224] In the third step, the management platform sends data to device 3, which takes 10 seconds;
[0225] In the fourth step, the management platform sends data to device 4, which takes 10 seconds;
[0226] Step 5: The management platform sends data to device 5, which takes 10 seconds.
[0227] In the sixth step, device 1 sends data to device 6, device 2 sends data to device 7, device 3 sends data to device 8, device 4 sends data to device 9, and device 5 sends data to device 10. This takes 10 seconds, so a total of 60 seconds.
[0228] Then, when the relevant technologies are grouped and distributed, the entire distribution process takes 60 seconds.
[0229] It can be seen that after receiving the target data sent by the sender, the target device in the embodiment of the present application can start the active sending mode, so that data can be sent to the devices to be sent managed by the management platform. Compared with the related art, when the number of devices to be sent is too large, it is not necessary to rely on the management platform to send data to each device, but to send data through each target device managed by the management platform, so that each device can be fully utilized, thereby reducing the occupation of platform resources.
[0230] In addition, the embodiments of the present application can fully utilize each device managed by the management platform, thereby reducing the time for data delivery and improving the efficiency of data delivery.
[0231] Based on the above method embodiment, Figure 4 As shown, the embodiment of the present application provides a data delivery system, the system includes an electronic device 410; the system also includes: a management platform 420;
[0232] The management platform 420 is used to send target data to the electronic device 410 .
[0233] It is understandable that the content of the above-mentioned data sending system has been introduced in the above-mentioned method embodiment, so it will not be repeated here.
[0234] Optionally, the management platform 420 is also used to record the target task information sent by the electronic device 410 in response to receiving the target task information sent by the electronic device 410, and send a receipt to the electronic device 410; wherein the target task information represents the completion status of the target data being sent down, and / or the data update version of the target data in the electronic device 410.
[0235] It can be understood that after completing the target task information, the electronic device 410, that is, the target device, can send the target task information and request a receipt to the management platform 420. After receiving the target task information, the management platform 420 can record the target task information and send a receipt to the electronic device 410.
[0236] It can be seen that after completing the data distribution, the electronic device can also report the target task information to the management platform so that the management platform can count the target task information, target version identification and other information to facilitate the next data distribution task.
[0237] Based on the above method embodiment, Figure 5 As shown, an embodiment of the present application provides a data sending device, which is applied to a target device; the target device is a device managed by a management platform; the device includes:
[0238] The start module 510 is used to start the active sending mode in response to receiving the target data sent by the data sending end; wherein the data sending end is the management platform or a device managed by the management platform other than the target device;
[0239] A search module 520, configured to perform a device search in response to starting the active sending mode;
[0240] A selection module 530 is used to select a device to be sent from the searched devices managed by the management platform; wherein the device to be sent is a device to which the target data is to be sent;
[0241] The sending module 540 is used to send the target data to the device to be sent.
[0242] Optionally, the selection module includes:
[0243] A first selection submodule is used to select a device that is not provided with a first identifier from the searched devices managed by the management platform to obtain a device to be sent; wherein the first identifier is used to indicate that the device has been selected as the device to which the target data is to be sent;
[0244] The sending module includes:
[0245] A setting submodule, used for setting the first identification for the device to be issued;
[0246] A first sending submodule, configured to send the target data to the device to be sent after setting the first identifier;
[0247] Optionally, the device further comprises:
[0248] A first detection module, used for, after the selection module selects a device to be sent from the devices managed by the management platform, and before the sending module sends the target data to the device to be sent, to detect whether the device to be sent meets the predetermined data sending condition;
[0249] A first triggering module is used to trigger the sending module to send the target data to the device to be sent when it is detected that the device to be sent meets the predetermined data sending condition;
[0250] A second triggering module is used to trigger the selection module to select a device to be sent from the searched devices managed by the management platform when it is detected that the device to be sent does not meet the predetermined data sending condition;
[0251] The predetermined data delivery conditions include:
[0252] One or more of having the same LAN encryption code as the target device, having a preset function token, and matching the predetermined device auxiliary information; wherein the function token is a token used to represent the participation in the data delivery process for the target data, and the predetermined device auxiliary information includes a predetermined device type and / or a predetermined device version;
[0253] Optionally, the device further comprises:
[0254] A second detection module, configured to detect whether the target device has enabled the cross-device delivery mode after the selection module selects the device to be delivered from the devices managed by the management platform and before the first detection module determines whether the device to be delivered meets the predetermined data delivery conditions;
[0255] A third trigger module is used to trigger the first detection module to detect whether the device to be sent meets the predetermined data sending condition if the cross-device sending mode is not enabled;
[0256] A fourth triggering module is used to trigger the sending module to send the target data to the device to be sent if the cross-device sending mode is turned on;
[0257] Optionally, the sending module includes:
[0258] A second sending submodule is used to send the target data to the device to be sent if the device to be sent does not store the target data, or if the device to be sent stores the target data and satisfies a data content update condition for the target data;
[0259] Optionally, the selection module includes:
[0260] The second selection submodule is used to select the device to be sent from the searched devices managed by the management platform according to the principle of giving priority to the device with the closest path.
[0261] The present application also provides an electronic device, such as Figure 6 As shown, including:
[0262] Memory 601, used for storing computer programs;
[0263] The processor 602 is used to implement the above-mentioned data sending method when executing the program stored in the memory 601.
[0264] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 602, the communication interface, and the memory 601 communicate with each other via the communication bus.
[0265] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0266] The communication interface is used for communication between the above electronic device and other devices.
[0267] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0268] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0269] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned data sending methods is implemented.
[0270] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the data sending methods in the above embodiments.
[0271] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.
[0272] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0273] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0274] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A data sending method, characterized in that: Apply to target device; The target device is a device managed by a management platform; the method comprises: In response to receiving the target data sent by the data sending end, starting the active sending mode; wherein the data sending end is the management platform or a device managed by the management platform other than the target device; In response to starting the active sending mode, performing a device search; Selecting a device to be sent from the searched devices managed by the management platform; wherein the device to be sent is a device to which the target data is to be sent; The target data is sent to the device to be sent.
2. The method according to claim 1, characterized in that The selecting a device to be issued from the searched devices managed by the management platform includes: From the searched devices managed by the management platform, select a device that is not set with a first identifier to obtain a device to be sent; wherein the first identifier is used to represent the device that has been selected as the device to which the target data is to be sent; Sending the target data to the device to be sent, including: Setting the first identifier for the device to be issued; After setting the first identifier, the target data is sent to the device to be sent.
3. The method according to claim 1, characterized in that After selecting a device to be sent from the searched devices managed by the management platform, and before sending the target data to the device to be sent, the method further includes: Detecting whether the device to be sent meets the predetermined data sending conditions; When it is detected that the device to be sent meets the predetermined data sending condition, triggering the step of sending the target data to the device to be sent; When it is detected that the device to be sent does not meet the predetermined data sending condition, triggering the step of selecting the device to be sent from the searched devices managed by the management platform; The predetermined data delivery conditions include: One or more of having the same local area network encryption code as the target device, having a preset function token and matching the predetermined device auxiliary information; wherein the function token is a token used to characterize the participation in the data delivery process for the target data, and the predetermined device auxiliary information includes a predetermined device type, and / or a predetermined device version.
4. The method according to claim 3, characterized in that After selecting a device to be sent from the searched devices managed by the management platform and before detecting whether the device to be sent meets a predetermined data sending condition, the method further includes: Detect whether the target device has enabled the cross-device sending mode; If the cross-device sending mode is not enabled, the step of detecting whether the device to be sent meets the predetermined data sending conditions is triggered; If the cross-device sending mode is turned on, the step of sending the target data to the device to be sent is triggered.
5. The method according to claim 1, characterized in that The sending of the target data to the device to be sent includes: When the target data is not stored in the device to be sent, or when the target data is stored and a data content update condition for the target data is met, the target data is sent to the device to be sent.
6. The method according to claim 1, characterized in that The selecting a device to be issued from the searched devices managed by the management platform includes: According to the principle of giving priority to the device with the closest path, the device to be sent is selected from the searched devices managed by the management platform.
7. A data sending device, characterized in that: Apply to target device; The target device is a device managed by a management platform; the device comprises: An enabling module, configured to enable an active sending mode in response to receiving target data sent by a data sending end; wherein the data sending end is the management platform or a device managed by the management platform other than the target device; A search module, configured to perform a device search in response to starting the active sending mode; A selection module, used to select a device to be sent from the searched devices managed by the management platform; wherein the device to be sent is a device to which the target data is to be sent; The sending module is used to send the target data to the device to be sent.
8. The device according to claim 7, characterized in that The selection module comprises: A first selection submodule is used to select a device that is not provided with a first identifier from the searched devices managed by the management platform to obtain a device to be sent; wherein the first identifier is used to indicate that the device has been selected as the device to which the target data is to be sent; The sending module includes: A setting submodule, used for setting the first identification for the device to be issued; A first sending submodule, configured to send the target data to the device to be sent after setting the first identifier; and / or, The device also includes: A first detection module, used for, after the selection module selects a device to be sent from the devices managed by the management platform, and before the sending module sends the target data to the device to be sent, to detect whether the device to be sent meets the predetermined data sending condition; A first triggering module is used to trigger the sending module to send the target data to the device to be sent when it is detected that the device to be sent meets the predetermined data sending condition; A second triggering module is used to trigger the selection module to select a device to be sent from the searched devices managed by the management platform when it is detected that the device to be sent does not meet the predetermined data sending condition; The predetermined data delivery conditions include: One or more of having the same LAN encryption code as the target device, having a preset function token, and matching the predetermined device auxiliary information; wherein the function token is a token used to represent the participation in the data delivery process for the target data, and the predetermined device auxiliary information includes a predetermined device type and / or a predetermined device version; and / or, The device also includes: A second detection module, configured to detect whether the target device has enabled the cross-device delivery mode after the selection module selects the device to be delivered from the devices managed by the management platform and before the first detection module determines whether the device to be delivered meets the predetermined data delivery conditions; A third trigger module is used to trigger the first detection module to detect whether the device to be sent meets the predetermined data sending condition if the cross-device sending mode is not enabled; A fourth triggering module is used to trigger the sending module to send the target data to the device to be sent if the cross-device sending mode is turned on; and / or, The sending module includes: A second sending submodule is used to send the target data to the device to be sent if the device to be sent does not store the target data, or if the device to be sent stores the target data and meets the data content update condition for the target data; and / or, The selection module comprises: The second selection submodule is used to select the device to be sent from the searched devices managed by the management platform according to the principle of giving priority to the device with the closest path.
9. An electronic device, characterized in that: The electronic device is used as a target device, and the target device is a device managed by the management platform. The electronic device includes: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-6 when executing a program stored in a memory.
10. A data delivery system, characterized in that: The system comprises the electronic device according to claim 9; the system further comprises: a management platform; The management platform is used to send target data to the electronic device.
11. The system according to claim 10, characterized in that The management platform is also used to record the target task information sent by the electronic device in response to receiving the target task information sent by the electronic device, and send a receipt to the electronic device; wherein the target task information represents the completion status of the target data being sent down, and / or the data update version of the target data in the electronic device.