Data transmission method and device, electronic equipment, storage medium and computer program product

By detecting and time adjusting the network signals of IoT devices, the problem of data loss caused by poor signals is solved, the success rate of data transmission is improved, and a more stable transmission environment is provided.

CN118555665APending Publication Date: 2024-08-27WUHAN FILLER SMART IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410849493.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

During the data transmission process of IoT devices, data is lost due to poor signals or interference, and the transmission success rate is low.

Method used

By detecting network signals, the data transmission time is adjusted to avoid signal interference, ensuring that data transmission times do not overlap, and the transmission process is optimized based on signal quality and strength parameters.

Benefits of technology

It improves the success rate of data transmission, provides a more stable data transmission environment, and reduces data loss caused by signal interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555665A
    Figure CN118555665A
Patent Text Reader

Abstract

The invention provides a data transmission method and device, electronic equipment, a storage medium and a computer program product. The method comprises the following steps: detecting a network signal of a first device to obtain a signal detection result, the first device being one of at least one electronic device; and if the signal detection result represents that the network signal of the first device does not meet the preset condition, adjusting the data transmission time of the at least one electronic device, so that the data transmission time of the first device is not overlapped with the data transmission time of a second device, the second device is a device other than the first device in the at least one electronic device, and the data transmission time is used for the corresponding electronic device to transmit data to the Internet of Things platform; and when the data transmission time of the first equipment arrives, receiving the service data transmitted by the first equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to data processing technology, and in particular to a data transmission method, device, electronic device, storage medium and computer program product. Background Art

[0002] In the IoT data transmission scenario, since IoT devices usually require a more specific installation location, communication signals are difficult to guarantee. If the signal is poor, data transmission may be lost. Or because the signal is weak, it is easily interfered by other signals, resulting in related business data not being uploaded to the platform in a timely manner, leading to data loss and a low data transmission success rate. Summary of the invention

[0003] The embodiments of the present application provide a data transmission method, device, electronic device and computer-readable storage medium, which can improve the success rate of data transmission.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a data transmission method, which is applied to an Internet of Things platform, including:

[0006] Detecting a network signal of a first device to obtain a signal detection result, where the first device is one of the at least one electronic device;

[0007] If the signal detection result indicates that the network signal of the first device does not meet the preset condition, adjust the data transmission time of the at least one electronic device so that the data transmission time of the first device does not overlap with the data transmission time of the second device, the second device being a device other than the first device in the at least one electronic device, and the data transmission time is used for the corresponding electronic device to transmit data to the Internet of Things platform;

[0008] When the data transmission time of the first device arrives, the service data transmitted by the first device is received.

[0009] In the above solution, the detecting of the network signal of the first device to obtain the signal detection result includes:

[0010] Receiving a signal quality parameter and a signal strength parameter uploaded by the first electronic device;

[0011] The signal detection result is determined based on the signal quality parameter and the signal strength parameter.

[0012] In the above solution, determining the signal detection result based on the signal quality parameter and the signal strength parameter includes:

[0013] Detecting a gateway device between the first device and the Internet of Things platform to obtain a gateway detection result;

[0014] If the gateway detection result indicates that the gateway device does not meet the abnormal condition, the signal detection result is determined based on the signal quality parameter and the signal strength parameter.

[0015] In the above solution, the business data is packaged data, and the method further includes:

[0016] The packaged business data is parsed to obtain the disassembled business data.

[0017] An embodiment of the present application provides a data transmission method, which is applied to a first device in at least one electronic device, and the method includes:

[0018] Receive data transmission time parameters sent by the IoT platform;

[0019] The data transmission parameter is obtained by adjusting the data transmission time of the at least one electronic device when the signal detection result of the first device indicates that the network signal of the first device does not meet the preset condition by the Internet of Things platform; the data transmission time of the first device does not overlap with the data transmission time of the second device, and the second device is a device other than the first device in the at least one electronic device;

[0020] When the data transmission time indicated by the data transmission time parameter arrives, the business data is transmitted to the Internet of Things platform.

[0021] In the above solution, the transmitting of business data to the Internet of Things platform includes:

[0022] Performing package processing on the generated business data to obtain packaged business data;

[0023] The packaged business data is transmitted to the Internet of Things platform.

[0024] In the above scheme, the method further comprises:

[0025] Collecting signal quality parameters and signal strength parameters when transmitting data with the IoT device;

[0026] The signal quality parameter and the signal strength parameter are uploaded to the Internet of Things platform.

[0027] In the above scheme, the method further comprises:

[0028] When the transmission of business data to the Internet of Things platform fails, the business data that failed to be transmitted is cached in the cache unit.

[0029] The present application provides a data transmission device, which is applied to an Internet of Things platform, including:

[0030] a signal detection module, configured to detect a network signal of a first device to obtain a signal detection result, wherein the first device is one of the at least one electronic device;

[0031] an adjustment module, configured to adjust the data transmission time of the at least one electronic device if the signal detection result indicates that the network signal of the first device does not meet a preset condition, so that the data transmission time of the first device does not overlap with the data transmission time of a second device, the second device being a device other than the first device in the at least one electronic device, and the data transmission time is used for the corresponding electronic device to transmit data to the Internet of Things platform;

[0032] The transmission module is used to receive the service data transmitted by the first device when the data transmission time of the first device arrives.

[0033] The embodiment of the present application provides a data transmission device, which is applied to a first device in at least one electronic device, including:

[0034] A receiving module, used to receive the data transmission time parameters sent by the Internet of Things platform;

[0035] The data transmission parameter is obtained by adjusting the data transmission time of the at least one electronic device when the signal detection result of the first device indicates that the network signal of the first device does not meet the preset condition by the Internet of Things platform; the data transmission time of the first device does not overlap with the data transmission time of the second device, and the second device is a device other than the first device in the at least one electronic device;

[0036] The transmission module is used to transmit business data to the Internet of Things platform when the data transmission time indicated by the data transmission time parameter arrives.

[0037] An embodiment of the present application provides an electronic device, including:

[0038] A memory for storing executable instructions;

[0039] The processor is used to implement the data transmission method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0040] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute and implement the data transmission method provided in the embodiment of the present application.

[0041] An embodiment of the present application provides a computer program product storing a computer program for implementing the data transmission method provided in the embodiment of the present application when executed by a processor.

[0042] The embodiment of the present application ensures that the data transmission time of the first device does not overlap with the data transmission time of the second device in at least one electronic device when the network signal of the first device does not meet the preset condition, thereby avoiding the influence of the signal of the data uploaded by the second device on the data uploaded by the first device, providing a better data transmission environment for the first device, thereby improving the data transmission success rate of the device. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 is an optional structural diagram of a data transmission system provided in an embodiment of the present application;

[0044] Figure 2 is an optional structural diagram of an electronic device provided in an embodiment of the present application;

[0045] Figure 3 This is an optional flowchart of the data transmission method provided in the embodiment of the present application;

[0046] Figure 4 It is an optional flow chart of the data transmission method provided in the embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0048] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0049] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0051] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0052] 1) LoRaWAN (LoRa Wide Area Network) is a low-power, wide-area communication protocol built on LoRa radio frequency technology, used to connect and manage LoRaWAN devices within a wide area.

[0053] The embodiments of the present application provide a data transmission method, device, electronic device and computer-readable storage medium, which can improve the success rate of data transmission.

[0054] First, the data transmission system provided in the embodiment of the present application is described. Figure 1 , Figure 1 It is an optional structural diagram of the data transmission system 100 provided in the embodiment of the present application. In order to support a data transmission application, the first device 103 is connected to the Internet of Things platform 101 through the network 102. In some embodiments, the first device 103 can be an Internet of Things device, etc., but is not limited to this. The server 101 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Delivery Network) services, and big data and artificial intelligence platforms. The network 102 can be a wide area network or a local area network, or a combination of the two. The terminal 103 and the server 101 can be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiment of the present application.

[0055] Next, the electronic device for implementing the above data transmission method provided in the embodiment of the present application is described. Figure 2 , Figure 2 is an optional structural diagram of an electronic device 200 provided in an embodiment of the present application. In practical applications, the electronic device 200 can be implemented as Figure 1 The first device 103 or the Internet of Things platform 101 in the embodiment of the present invention is an electronic device. Figure 1Taking the terminal 103 shown as an example, an electronic device that implements the data transmission method of the embodiment of the present application is described.

[0056] Figure 2 The electronic device 200 shown includes: at least one processor 201, a memory 205, at least one network interface 202 and a user interface 203. The various components in the electronic device 200 are coupled together via a bus system 204. It is understood that the bus system 204 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 204 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 204 is not described in detail. Figure 2 Various buses are labeled as bus system 204 .

[0057] The processor 201 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0058] The user interface 203 includes one or more output devices 2031 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 203 also includes one or more input devices 2032, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0059] The memory 205 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 205 may optionally include one or more storage devices that are physically remote from the processor 201.

[0060] The memory 205 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 205 described in the embodiment of the present application is intended to include any suitable type of memory.

[0061] In some embodiments, the memory 205 can store data to support various operations. Examples of these data include programs, modules, and data structures, or subsets or supersets thereof. In the embodiment of the present application, the memory 205 stores an operating system 2051, a network communication module 2052, a presentation module 2053, an input processing module 2054, and a data transmission device 2055; specifically,

[0062] Operating system 2051, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0063] A network communication module 2052, for reaching other computing devices via one or more (wired or wireless) network interfaces 202, exemplary network interfaces 202 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB);

[0064] a presentation module 2053 for enabling presentation of information (e.g., a user interface for operating peripherals and displaying content and information) via one or more output devices 2031 (e.g., a display screen, a speaker, etc.) associated with the user interface 203;

[0065] The input processing module 2054 is used to detect one or more user inputs or interactions from one of the one or more input devices 2032 and translate the detected inputs or interactions.

[0066] In some embodiments, the data transmission device provided in the embodiments of the present application can be implemented in software. Figure 2 The data transmission device 2055 stored in the memory 205 is shown, which can be software in the form of a program and a plug-in, including the following software modules: a signal detection module 20551 and an adjustment module 20552. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0067] In other embodiments, the data transmission device provided in the embodiments of the present application can be implemented in hardware. As an example, the data transmission device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the data transmission method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.

[0068] The data transmission method provided in the embodiment of the present application will be explained in combination with the exemplary application and implementation of the Internet of Things platform provided in the embodiment of the present application.

[0069] See also Figure 3 , Figure 3 is an optional flow chart of the data transmission method provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0070] Step 301, detecting a network signal of a first device to obtain a signal detection result, wherein the first device is one of at least one electronic device;

[0071] Step 302: if the signal detection result indicates that the network signal of the first device does not meet the preset condition, adjust the data transmission time of the at least one electronic device so that the data transmission time of the first device does not overlap with the data transmission time of the second device, the second device being a device other than the first device in the at least one electronic device, and the data transmission time is used for the corresponding electronic device to transmit data to the Internet of Things platform;

[0072] Step 303: When the data transmission time of the first device arrives, receive the service data transmitted by the first device.

[0073] Here, the electronic device is an Internet of Things device, for example, it can be a sensor device, a water meter device, a manhole cover device, etc. The communication method between the electronic device of the embodiment of the present application and the Internet of Things platform is wireless communication, and the wireless communication method can be WiFi communication, Bluetooth communication or LoRaWAN communication, etc. In actual implementation, the Internet of Things platform performs network signal detection on the first device. It should be understood that the first device and the second device of the embodiment of the present application both communicate with the same Internet of Things platform. In one embodiment, the first device and the second device also communicate with the Internet of Things platform through the same gateway device. At least one electronic device may affect the transmission of data with each other.

[0074] In actual implementation, if the signal detection result indicates that the network signal of the first device does not meet the preset conditions, the data transmission time of at least one electronic device is adjusted. Here, the preset conditions may be, for example, that the network quality and / or network strength reaches the target range. The Internet of Things platform adjusts the data transmission time of each electronic device respectively. Specifically, the Internet of Things platform may allocate a transmission time of business data to the first device, and adjust the data transmission time of each second device to other time periods to avoid the data transmission time of the first device overlapping with the transmission time of the second device. In actual implementation, the Internet of Things device may allocate a data transmission time period and a cycle start time to the first device and the second device respectively, so that under the corresponding data transmission time period and cycle start time, the data transmission time of the first device does not overlap with the data transmission time of the second device. For example, the same data transmission time period may be set for the first device and the second device, and different cycle start times may be set for the first device and the second device. Exemplarily, the data transmission time periods of the first device and the second device are both 10 minutes, the cycle start time of the first device is 0, and the cycle start time of the second device is actually 5 minutes.

[0075] In actual implementation, the first device uploads the service data to the Internet of Things platform based on the corresponding data transmission time. Specifically, the Internet of Things platform receives the service data transmitted by the first device when the data transmission time of the first device arrives.

[0076] The embodiment of the present application ensures that the data transmission time of the first device does not overlap with the data transmission time of the second device in at least one electronic device when the network signal of the first device does not meet the preset condition, thereby avoiding the influence of the signal of the data uploaded by the second device on the data uploaded by the first device, providing a better data transmission environment for the first device, thereby improving the data transmission success rate of the device.

[0077] In some embodiments, detecting the network signal of the first device to obtain a signal detection result includes: receiving a signal quality parameter and a signal strength parameter uploaded by the first electronic device; and determining the signal detection result based on the signal quality parameter and the signal strength parameter.

[0078] In actual implementation, the first device may collect signal quality parameters and signal strength parameters and upload them to the Internet of Things platform. After obtaining the signal quality parameters and signal strength parameters, the Internet of Things platform determines the signal detection result based on the signal quality parameters and signal strength parameters. Here, the signal detection result may be the size relationship between the signal quality parameter and the preset signal quality parameter, and the size relationship between the signal strength parameter and the preset signal strength parameter. In actual implementation, if the signal quality parameter is less than the preset signal quality parameter and the signal strength parameter is less than the preset signal strength parameter, it indicates that the signal detection result does not meet the preset condition.

[0079] In some embodiments, determining the signal detection result based on the signal quality parameter and the signal strength parameter includes: detecting the gateway device between the first device and the Internet of Things platform to obtain a gateway detection result; if the gateway detection result indicates that the gateway device does not meet the abnormal condition, determining the signal detection result based on the signal quality parameter and the signal strength parameter.

[0080] In actual implementation, in order to eliminate the problem of network signal anomalies caused by gateway devices, the IoT platform also detects the gateway devices and obtains gateway detection results. If the gateway detection result indicates that the gateway device does not meet the abnormal conditions, the signal detection result is determined based on the signal quality parameter and the signal strength parameter. Otherwise, if the gateway device is detected to be abnormal, the gateway device is repaired or replaced.

[0081] In actual implementation, the network detection of the IoT device on the gateway device may include uplink anomaly detection and downlink anomaly detection. Specifically, the uplink anomaly detection may include obtaining the historical data of the first device uploaded by the gateway device and the historical data of the first device uploaded by other gateway devices, analyzing the historical data uploaded by the gateway device and the historical data uploaded by other gateway devices, and determining whether the uplink data of the gateway device is abnormal. If the first device is covered by the signal of the gateway device within the target time period, and the gateway device cannot collect the data of the first device at a certain time point, while other gateway devices can still receive the data of the first device, it is determined that the uplink of the gateway device is abnormal.

[0082] In addition, downlink anomaly detection may specifically include obtaining the downlink success rate through the gateway device and the downlink success rate of other network devices, performing a vertical comparative analysis on the downlink success rate of the gateway device, and performing a horizontal comparative analysis with the downlink success rate of other gateway devices, so as to determine whether the downlink of the gateway device is abnormal.

[0083] In actual implementation, if there is no abnormality in both the uplink and the downlink of the gateway device, it is determined that the gateway device does not meet the abnormal condition.

[0084] In some embodiments, the business data is packaged data. After step 303, the method further includes: performing data parsing on the packaged business data to obtain disassembled business data.

[0085] Here, the business data is the data monitored by the first device. For example, if the first device is a sensor device, the business data is the data collected by the sensor, and if the first device is a water meter device, the business data is the water consumption data monitored by the water meter device. After the first device generates the business data, in order to reduce the size of the transmitted data, the business data can be packaged to reduce the size of the data. In some embodiments, before the package processing, the generated business data can also be pre-processed, such as merging duplicate items of multiple data, removing useless items, and retaining core value data. Here, the transmitted business data may be multiple sets of data collected over a period of time, and some data can only transmit the latest. For example, the battery voltage and battery capacity, this information indicates the battery usage of the device, reminding the operation and maintenance personnel whether the device is low on power. For such data, only the latest data can be transmitted. Then, the retained data is packaged. After obtaining the packaged business data, the Internet of Things platform can parse the packaged business data to obtain the disassembled business data.

[0086] The embodiment of the present application provides a data transmission method, which is applied to a first device in at least one electronic device. Figure 4 , Figure 4 1 is an optional flow chart of a data transmission method provided in an embodiment of the present application. The method comprises:

[0087] Step 401, receiving a data transmission time parameter sent by the Internet of Things platform;

[0088] The data transmission parameter is obtained by adjusting the data transmission time of the at least one electronic device when the signal detection result of the first device indicates that the network signal of the first device does not meet the preset condition by the Internet of Things platform; the data transmission time of the first device does not overlap with the data transmission time of the second device, and the second device is a device other than the first device in the at least one electronic device;

[0089] Step 402: When the data transmission time indicated by the data transmission time parameter arrives, the business data is transmitted to the Internet of Things platform.

[0090] In some embodiments, transmitting the business data to the Internet of Things platform includes: performing package processing on the generated business data to obtain packaged business data; and transmitting the packaged business data to the Internet of Things platform.

[0091] In some embodiments, the method further includes: collecting signal quality parameters and signal strength parameters during data transmission with the IoT device; and reporting the signal quality parameters and signal strength parameters to the IoT platform.

[0092] In actual implementation, the first device can periodically collect signal quality parameters and signal strength parameters based on the collection cycle and report them to the Internet of Things platform. Signal quality parameters and signal strength parameters can also be collected and reported when transmitting business data.

[0093] In some embodiments, the method further includes: when the transmission of business data to the Internet of Things platform fails, caching the business data that failed to be transmitted into a cache unit.

[0094] In actual implementation, a cache unit is added to the first device to cache the service data that failed to be transmitted. Here, the cache unit can be an MCU. The cached service data can be uploaded to the Internet of Things platform during the next data transmission.

[0095] In some embodiments, after the service data transmission fails, the first device further detects the signal quality, and if the signal quality does not reach a preset quality, adjusts the transmission power and / or transmission rate of the data to improve the data transmission efficiency.

[0096] The following is a description of an exemplary structure of the data transmission device 2055 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the data transmission device 2055 of the memory 205 may include:

[0097] A signal detection module 20551 is used to detect a network signal of a first device to obtain a signal detection result, where the first device is one of the at least one electronic device;

[0098] An adjustment module 20552 is configured to adjust the data transmission time of the at least one electronic device if the signal detection result indicates that the network signal of the first device does not meet a preset condition, so that the data transmission time of the first device does not overlap with the data transmission time of a second device, the second device being a device other than the first device in the at least one electronic device, and the data transmission time is used for the corresponding electronic device to transmit data to the Internet of Things platform;

[0099] The transmission module is used to receive the device data transmitted by the first device when the data transmission time of the first device arrives.

[0100] In some embodiments, the signal detection module 20551 is further used to receive a signal quality parameter and a signal strength parameter reported by the first electronic device; and determine the signal detection result based on the signal quality parameter and the signal strength parameter.

[0101] In some embodiments, the signal detection module 20551 is also used to detect the gateway device between the first device and the Internet of Things platform to obtain a gateway detection result; if the gateway detection result indicates that the gateway device does not meet the abnormal condition, the signal detection result is determined based on the signal quality parameter and the signal strength parameter.

[0102] In some embodiments, the device data is packaged data, and the apparatus further includes: a parsing module, configured to perform data parsing on the packaged device data to obtain disassembled device data.

[0103] The embodiment of the present application provides a data transmission device, which is applied to a first device in at least one electronic device, including:

[0104] A receiving module, used to receive the data transmission time parameters sent by the Internet of Things platform;

[0105] The data transmission parameter is obtained by adjusting the data transmission time of the at least one electronic device when the signal detection result of the first device indicates that the network signal of the first device does not meet the preset condition by the Internet of Things platform; the data transmission time of the first device does not overlap with the data transmission time of the second device, and the second device is a device other than the first device in the at least one electronic device;

[0106] The transmission module is used to transmit device data to the Internet of Things platform when the data transmission time indicated by the data transmission time parameter arrives.

[0107] In some embodiments, the transmission module is further used to perform package processing on the generated device data to obtain packaged device data; and transmit the packaged device data to the Internet of Things platform.

[0108] In some embodiments, the apparatus further includes: a collection module for collecting signal quality parameters and signal strength parameters during data transmission with the IoT device; and reporting the signal quality parameters and signal strength parameters to the IoT platform.

[0109] In some embodiments, the apparatus further includes: a cache module, configured to cache the failed transmission device data to a cache unit when the transmission of the device data to the Internet of Things platform fails.

[0110] It should be noted that the description of the device of the embodiment of the present application is similar to the description of the above-mentioned method embodiment, and has similar beneficial effects as the method embodiment, so it will not be repeated.

[0111] The embodiment of the present application provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data transmission method described in the embodiment of the present application.

[0112] An embodiment of the present application provides a computer-readable storage medium storing executable instructions, wherein executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the data transmission method provided by the embodiment of the present application.

[0113] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0114] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0115] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0116] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0117] In summary, the embodiments of the present application can improve the success rate of data transmission.

[0118] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A data transmission method, characterized in that: Applied to the Internet of Things platform, the method includes: Detecting a network signal of a first device to obtain a signal detection result, where the first device is one of the at least one electronic device; If the signal detection result indicates that the network signal of the first device does not meet the preset condition, adjust the data transmission time of the at least one electronic device so that the data transmission time of the first device does not overlap with the data transmission time of the second device, the second device being a device other than the first device in the at least one electronic device, and the data transmission time is used for the corresponding electronic device to transmit data to the Internet of Things platform; When the data transmission time of the first device arrives, the service data transmitted by the first device is received.

2. The method according to claim 1, characterized in that The detecting the network signal of the first device to obtain a signal detection result includes: Receiving a signal quality parameter and a signal strength parameter uploaded by the first electronic device; The signal detection result is determined based on the signal quality parameter and the signal strength parameter.

3. The method according to claim 2, characterized in that The determining the signal detection result based on the signal quality parameter and the signal strength parameter includes: Detecting a gateway device between the first device and the Internet of Things platform to obtain a gateway detection result; If the gateway detection result indicates that the gateway device does not meet the abnormal condition, the signal detection result is determined based on the signal quality parameter and the signal strength parameter.

4. The method according to claim 1, characterized in that: The business data is packaged data, and the method further includes: The packaged business data is parsed to obtain the disassembled business data.

5. A data transmission method, characterized in that: The method is applied to a first device in at least one electronic device, and includes: Receive data transmission time parameters sent by the IoT platform; The data transmission parameter is obtained by adjusting the data transmission time of the at least one electronic device when the signal detection result of the first device indicates that the network signal of the first device does not meet the preset condition by the Internet of Things platform; the data transmission time of the first device does not overlap with the data transmission time of the second device, and the second device is a device other than the first device in the at least one electronic device; When the data transmission time indicated by the data transmission time parameter arrives, the business data is transmitted to the Internet of Things platform.

6. The method according to claim 5, characterized in that The transmitting of business data to the Internet of Things platform includes: Performing package processing on the generated business data to obtain packaged business data; The packaged business data is transmitted to the Internet of Things platform.

7. The method according to claim 5, characterized in that The method further comprises: Collecting signal quality parameters and signal strength parameters when transmitting data with the IoT device; The signal quality parameter and the signal strength parameter are uploaded to the Internet of Things platform.

8. The method according to claim 5, characterized in that The method further comprises: When the transmission of business data to the Internet of Things platform fails, the business data that failed to be transmitted is cached in the cache unit.

9. A data transmission device, characterized in that: Applied to IoT platforms, including: a signal detection module, configured to detect a network signal of a first device to obtain a signal detection result, wherein the first device is one of the at least one electronic device; an adjustment module, configured to adjust the data transmission time of the at least one electronic device if the signal detection result indicates that the network signal of the first device does not meet a preset condition, so that the data transmission time of the first device does not overlap with the data transmission time of a second device, the second device being a device other than the first device in the at least one electronic device, and the data transmission time is used for the corresponding electronic device to transmit data to the Internet of Things platform; The transmission module is used to receive the service data transmitted by the first device when the data transmission time of the first device arrives.

10. A data transmission device, characterized in that: A first device applied to at least one electronic device includes: A receiving module, used to receive the data transmission time parameters sent by the Internet of Things platform; The data transmission parameter is obtained by adjusting the data transmission time of the at least one electronic device when the signal detection result of the first device indicates that the network signal of the first device does not meet the preset condition by the Internet of Things platform; the data transmission time of the first device does not overlap with the data transmission time of the second device, and the second device is a device other than the first device in the at least one electronic device; The transmission module is used to transmit business data to the Internet of Things platform when the data transmission time indicated by the data transmission time parameter arrives.

11. An electronic device, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the data transmission method according to any one of claims 1 to 8 when executing the executable instructions stored in the memory.

12. A computer-readable storage medium, characterized in that: Executable instructions are stored, and when executed by a processor, the data transmission method according to any one of claims 1 to 8 is implemented.

13. A computer program product, characterized in that A computer program is stored, which is used to implement the data transmission method according to any one of claims 1 to 8 when executed by a processor.