Data transmission method, apparatus and system, electronic device and storage medium
By introducing a relay device with built-in multi-network modules into the smart doorbell, the problem of unstable data transmission in the smart doorbell is solved, achieving higher stability and reliability, extending standby time and maintaining data quality.
Patent Information
- Application Number
- PCT/CN2024/082846
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-09
- Filing Date
- 2024-03-21
- Publication Date
- 2024-11-14
AI Technical Summary
When a smart doorbell is installed outside a door, the WiFi signal is easily blocked by the iron door and is susceptible to interference, resulting in unstable data transmission and affecting the playback function of the user's terminal.
Introducing a relay device into a smart doorbell, with at least two built-in network modules, allows for data transmission by selecting the network with better signal quality, including WiFi and mobile data networks such as 4G or 5G, dynamically switching to ensure stability and reliability.
It improves the stability and reliability of data transmission from the smart doorbell to the cloud platform, extends the standby time of the host device, ensures the normal playback function of the user terminal, and maintains data quality during image or video transmission.
Smart Images

Figure CN2024082846_14112024_PF_FP_ABST
Abstract
Description
Data transmission method, device, system, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 9, 2023, with application number 202310528513.9, and invention name “A data transmission method, device, system and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of smart home technology, and in particular to a data transmission method, device, system, electronic device and storage medium. Background Art
[0003] With the rapid development of smart home technology, smart doorbells are gradually replacing traditional doorbells and peepholes. Smart doorbells combine the functions of a traditional doorbell, a camera, and a reminder. They not only have the functions of a traditional doorbell, but also can prevent theft and ensure safety.
[0004] Smart doorbells are typically installed outside your door and are battery-powered. They capture images or videos of what's happening in front of your door and upload them to a cloud platform. From there, they can be transmitted to a user's device (such as their phone) for viewing anytime, anywhere.
[0005] Technical content
[0006] The embodiments of the present application provide a data transmission method, apparatus, system, electronic device, and readable storage medium, which can improve the stability and reliability of data transmission from a host device of a smart doorbell to a cloud platform.
[0007] The present application discloses a data transmission method, which is applied to a relay device in an intelligent acquisition system. The intelligent acquisition system includes a host device and a relay device that are independently deployed in close proximity. The relay device includes a first network module and a second network module. The first network module is used to access a first network, and the second network module is used to access a second network. The method includes:
[0008] receiving first data sent by the host device; the first data including scene data collected by the host device;
[0009] selecting, according to quality parameters of the first network and the second network, the first network or the second network as an access network for accessing a wide area network;
[0010] Sending second data to a cloud platform connected to the wide area network through the access network; the second data includes the scene data.
[0011] The present application discloses a data transmission device for use as a relay device in an intelligent acquisition system. The intelligent acquisition system includes a host device and a relay device that are independently deployed in close proximity. The relay device includes a first network module and a second network module. The first network module is used to access a first network, and the second network module is used to access a second network. The device includes:
[0012] A first receiving module, configured to receive first data sent by the host device; the first data includes scene data collected by the host device;
[0013] a target determination module, configured to select the first network or the second network as an access network for accessing a wide area network based on quality parameters of the first network and the second network;
[0014] The first sending module is used to send second data to the cloud platform connected to the wide area network through the access network; the second data includes the received scene data.
[0015] The embodiment of the present application discloses an intelligent acquisition system, which includes a host device and a relay device that are independently deployed in close proximity. The relay device includes a first network module and a second network module. The first network module is used to access a first network, and the second network module is used to access a second network.
[0016] The host device is configured to collect scene data and send first data to the relay device, where the first data includes the scene data collected by the host device;
[0017] The relay device is used to receive first data sent by the host device; select the first network or the second network as an access network for accessing the wide area network based on quality parameters of the first network and the second network; and send second data to a cloud platform connected to the wide area network through the access network; the second data includes the scene data.
[0018] The present application discloses an electronic device, including:
[0019] one or more processors;
[0020] The memory connected to the processor is configured to store one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements the aforementioned data transmission method.
[0021] An embodiment of the present application discloses a non-volatile computer-readable storage medium having instructions stored thereon. When the instructions are executed by one or more processors of a device, the device executes the data transmission method as described above.
[0022] An embodiment of the present application discloses a computer program product, including a computer program, which implements the aforementioned data transmission method when executed by a computer.
[0023] BRIEF DESCRIPTION OF THE DRAWINGS
[0024] FIG1 is a schematic structural diagram of a data transmission system according to an embodiment of the present application;
[0025] FIG2 is a flowchart of a data transmission method according to an embodiment of the present application;
[0026] FIG3 is a schematic structural diagram of an intelligent acquisition system according to an embodiment of the present application;
[0027] FIG4 is a flowchart of another data transmission method according to an embodiment of the present application;
[0028] FIG5 is a structural block diagram of an embodiment of a data transmission device according to an embodiment of the present application;
[0029] FIG6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0031] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, the term "and / or" in the specification and claims is used to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In the embodiments of this application, the term "multiple" refers to two or more, and other quantifiers are similar.
[0032] In some embodiments, to achieve long standby times, smart doorbells typically use low-power Wi-Fi (Wireless Fidelity) to transmit data to a cloud platform. However, since the smart doorbell is installed outside a door, the iron door will block the user's indoor Wi-Fi signal. Furthermore, Wi-Fi signals are susceptible to interference and may be unstable. This can prevent the smart doorbell from transmitting data properly, thereby affecting the playback function of the user's terminal.
[0033] To solve the above problems, an embodiment of the present application provides a data transmission method that can improve the stability and reliability of data transmission from the host device of the smart doorbell to the cloud platform, which is explained below with reference to the accompanying drawings.
[0034] Referring to Figure 1, a schematic diagram of the structure of a data transmission system 100 according to an embodiment of the present application is shown. Data transmission system 100 may include an intelligent acquisition system 110, a wide area network 130, and a cloud platform 120 connected to the wide area network. Intelligent acquisition system 110 may include a host device and a relay device deployed in close proximity. The relay device includes a first network module and a second network module. The first network module is used to access a first network, and the second network module is used to access a second network. The relay device can select either the first network or the second network as an access network and access the wide area network 130 through the access network.
[0035] 2 , a flowchart of an embodiment of a data transmission method of the present application is shown, which is applied to a relay device in an intelligent acquisition system. The intelligent acquisition system includes a host device and a relay device that are independently deployed in close proximity. The relay device includes a first network module and a second network module. The first network module is used to access a first network, and the second network module is used to access a second network. The method may include the following steps:
[0036] S201, receiving first data sent by the host device; the first data includes scene data collected by the host device;
[0037] S202: Select the first network or the second network as an access network for accessing a wide area network based on quality parameters of the first network and the second network.
[0038] S203. Send second data to a cloud platform connected to the wide area network through the access network; the second data includes the scene data.
[0039] In an embodiment of the present application, the distance between the host device and the relay device is less than a preset distance threshold, for example, less than 100 meters, which can ensure the reliability and stability of data transmission between the host device and the relay device; the relay device has at least two network modules built in, which can be used to access different types of networks. When forwarding the scene data collected by the host device to the cloud platform, the appropriate access network is selected for transmission based on the quality parameters of different networks, which can ensure the reliability and stability of data transmission between the relay device and the cloud platform.
[0040] The present application provides a data transmission method applicable to an intelligent data collection system comprising a host device and a relay device. The host device can be used to collect scene data and transmit the collected scene data to a cloud platform via the relay device. The relay device is used to forward the scene data collected by the host device to the cloud platform, thereby improving the data transmission capability of the host device.
[0041] The embodiments of this application do not limit the type of intelligent data collection system. In some embodiments, the intelligent data collection system may be a smart doorbell system, which includes a host device and a relay device. The host device of the smart doorbell system can be deployed outside the door to collect scene data outside the door, and the relay device of the smart doorbell system can be deployed indoors to implement data forwarding functions.
[0042] For another example, the intelligent acquisition system may be a monitoring system, the host device may be a network camera in the monitoring system for collecting scene data in real time, and the relay device may be used to forward the scene data collected by the network camera.
[0043] The host device and the relay device are two independent devices that can be deployed separately. For example, the host device of the intelligent collection system can be deployed outside the door to collect scene data outside the door; and the relay device of the intelligent collection system can be deployed indoors to realize data forwarding function.
[0044] It is understood that the embodiment of the present application does not limit the type of scene data collected by the host device. For example, the scene data may include but is not limited to any one or more of the following: image data, video data, and voice data.
[0045] Furthermore, the number of the host devices may be greater than or equal to one.
[0046] It should be noted that the embodiments of the present application are mainly described using the intelligent acquisition system as an intelligent doorbell system as an example. The processes in other application scenarios are similar and can be referenced to each other.
[0047] 3 , which shows a schematic diagram of the structure of a smart doorbell system according to an embodiment of the present application, as shown in FIG3 , the smart doorbell system includes a host device 301 and a relay device 302 .
[0048] It should be noted that the embodiment of the present application does not limit the modules included in the host device 301 and the modules included in the relay device 302.
[0049] Exemplarily, the host device 301 includes the following modules: a camera module 3011 , a human body detection and sensor 3012 , an image processing circuit and system 3013 , a first network module 3014 , a battery 3015 , a speaker 3016 , a microphone 3017 , a fill light module 3018 , and a button 3019 .
[0050] Among them, the camera module 3011 may include a lens and a sensor (Sensor), and the camera module 3011 is used to capture images. The human body detection and sensor 3012 may be a PIR (Passive Infrared Detection) for detecting the presence and movement of the human body. The image processing circuit and system 3013 is the main processor of the host device 301, which is used to perform image processing on the captured image and execute corresponding business logic. The first network module 3014 is a wireless module for data transmission, such as the first network module 3014 may be a WiFi network module. The battery 3015 is used to supply power to the host device 301. The speaker 3016 is used to output audio. The microphone 3017 is used to receive audio. The fill light module 3018 is used to supplement the lighting. The button 3019 is used to receive user input.
[0051] Exemplarily, the relay device 302 includes the following modules: a first network module 3021 , a second network module 3022 , a memory card 3023 , a power module 3024 , and a controller 3025 .
[0052] The first network module 3021 is a wireless module for data transmission, such as a WiFi network module. The first network module 3021 can be used to communicate with the host device 301. Furthermore, the first network module 3021 can also serve as a communication channel with the cloud platform. The second network module 3022 is a wireless module for data transmission, such as a 4G network module or a 5G network module. The second network module 3022 can also serve as another communication channel with the cloud platform. The memory card 3023 is used to store data, such as a TF (TransFlash) card. The power module 3024, such as an ACDC module, is a power supply module that converts 220V voltage to 5V and is used to power the relay device 302. The controller 3025 can include an MCU (Microcontroller Unit) and a SOC (System on Chip) for business logic control.
[0053] Furthermore, the operation of selecting the first network or the second network as the access network for accessing the wide area network according to the quality parameters of the first network and the second network in S202 may be performed by the controller 3025 of the relay device 302 .
[0054] The embodiment of the present application adds a corresponding relay device to the host device of the smart doorbell, forming a smart doorbell system as shown in Figure 3. It should be noted that the embodiment of the present application does not limit the communication method adopted between the host device and the relay device. For example, the host device and the relay device are both equipped with a first network module, which can be used to access the first network. The host device and the relay device can communicate through the first network. The host device and the relay device can be deployed independently. For example, the host device of the smart doorbell system can be deployed outside the door, and the relay device of the smart doorbell system can be deployed indoors. Since the host device is usually fixedly installed at a certain location outside the door, and for ease of installation, the host device can be battery-powered, which requires reducing the power consumption of the host device to extend the standby time of the host device. Therefore, the first network can adopt a low-power network, such as a WiFi network.
[0055] Furthermore, the relay device also has a built-in second network module that can be used to access the second network. The relay device can forward the scene data (also referred to as the second data) collected by the host device to the cloud platform. In an embodiment of the present application, the relay device can send the second data to the cloud platform through the first network, or the relay device can send the second data to the cloud platform through the second network. Specifically, the relay device can select a more suitable access network based on the quality parameters of the first network and the second network, and send the second data through the access network.
[0056] The data transmission method provided by the embodiment of the present application has at least two network modules built into the relay device, which can realize the coexistence of multiple communication modes. When the relay device forwards the scene data collected by the host device to the cloud platform, it can dynamically select a more suitable access network based on the network quality; when the relay device receives the scene data sent by the host device, it can use a low-power network. Therefore, the embodiment of the present application can improve the stability and reliability of the data transmission from the host device to the cloud platform through the relay device without increasing the power consumption of the host device and extending the standby time of the host device as much as possible, thereby ensuring the overall stability and reliability of the intelligent acquisition system (such as the smart doorbell system). In addition, the relay device has at least two network modules built in, which can be used to access different types of networks. Therefore, in the process of forwarding the scene data collected by the host device, the relay device can dynamically select a network with a better signal. When the scene data contains images or videos, there is no need to reduce the quality of the images or videos, and the quality of data transmission can be guaranteed.
[0057] In some embodiments, when determining the access network, the relay device may, in addition to referring to the quality parameters of the first network and the second network, further refer to the amount of second data to be sent and the available bandwidth of the first network and the second network on the basis of referring to the quality parameters of the first network and the second network, thereby more accurately selecting an access network suitable for the current scenario.
[0058] It should be noted that the embodiments of this application do not limit the types of the first network and the second network. For example, the first network can be a low-power network to reduce the power consumption of the host device; the second network can be a network with higher power consumption than the first network but with stronger communication capabilities to improve the data transmission capabilities of the intelligent acquisition system.
[0059] In some embodiments of the present application, the first network may include a WiFi network, and the second network may include a mobile data network or a satellite communication network; the mobile data network may include a 4G (4th Generation Mobile Communication Technology) network or a 5G (5th Generation Mobile Communication Technology) network. It is understood that the mobile data network is not limited to the 4G network and 5G network listed above, and may also include mobile data networks that may be used in the future, such as a 6G network.
[0060] In an embodiment of the present application, the relay device may have a built-in WiFi network module and a mobile data network module. The mobile data network module may include a 4G network module or a 5G network module. The WiFi network module can be used to access a WiFi network, the 4G network module can be used to access a 4G network, and the 5G network module can be used to access a 5G network.
[0061] In order to further improve the stability and reliability of data transmission of the intelligent acquisition system, the embodiment of the present application can also add a PA (Power Amplifier) and an LNA (Low Noise Amplifier) to the relay device to increase the transmission power and sensitivity of the WiFi module, thereby improving the stability and reliability of data transmission of the intelligent acquisition system and increasing the transmission distance.
[0062] In some embodiments, the first network module may be a WiFi network module, which may use an existing or future WiFi protocol. For example, the WiFi network module may use a WiFi5 protocol, or the WiFi network module may use a WiFi6 protocol.
[0063] In some embodiments, the second network module may be a satellite communication module. Satellite communication is communication between radio communication stations on Earth (including on the ground and in the lower atmosphere) using satellites as relays. Satellite communication has a wide communication range. As long as the radio waves emitted by the satellite are within the coverage area, communication can be established between any two points with high reliability.
[0064] In some embodiments of the present application, the format of the first data may be a proprietary protocol format between the relay device and the host device.
[0065] In an embodiment of the present application, data can be transmitted between a host device and a relay device based on a proprietary protocol format. The proprietary protocol format can be a custom data packet format, which is not limited in the present embodiment. For example, the proprietary protocol format can be a binary format to save bandwidth required for data transmission, thereby reducing power consumption and latency of data transmission between the host device and the relay device.
[0066] Before the relay device sends the second data to the cloud platform, the method may further include: a controller in the relay device converting the format of the first data from the private protocol format to the protocol format of the access network to obtain the second data.
[0067] Specifically, the relay device may receive first data sent by the host device, where the format of the first data is the proprietary protocol format. Before forwarding the first data to the cloud platform, a controller in the relay device converts the format of the first data from the proprietary protocol format to the protocol format of the access network to obtain second data, and sends the second data to the cloud platform.
[0068] In some embodiments of the present application, the quality parameter may include signal strength; and selecting the first network or the second network as the access network for accessing the wide area network based on the quality parameters of the first network and the second network may include:
[0069] In response to the signal strength of the first network satisfying a first condition, selecting the first network as an access network;
[0070] In response to the signal strength of the first network not satisfying the first condition and the signal strength of the second network satisfying a second condition, the second network is selected as the access network.
[0071] The signal strength may be RSSI (Received Signal Strength Indication).
[0072] The embodiment of the present application does not limit the first condition. The first condition is used to indicate that the signal strength of the first network can meet the transmission requirements of the second data. Exemplarily, the first condition may include: the signal strength of the first network is greater than or equal to a preset value. The preset value can be set according to the actual application scenario. For example, the preset value should meet the signal strength value required for the relay device to stably transmit the second data to the cloud platform. For another example, the preset value can be the minimum signal strength value required for the relay device and the cloud platform to establish a network connection. Exemplarily, the preset value can be set to an RSSI value of -70dBm.
[0073] This embodiment of the present application does not limit the second condition. The second condition is used to indicate that the signal strength of the second network can meet the transmission requirements of the second data. For example, the second condition may include: the signal strength of the second network is greater than or equal to a preset value. It should be noted that the preset value in the second condition may be the same as or different from the preset value in the first condition.
[0074] In some examples, assuming that the first condition includes: the signal strength of the first network is greater than or equal to -70dBm; and the second condition includes: the signal strength of the second network is greater than or equal to -60dBm. If the relay device detects that the signal strength of the first network is less than -70dBm and the signal strength of the second network is greater than -60dBm, the second network may be selected as the access network.
[0075] It should be noted that the embodiments of the present application do not limit the content of the quality parameters. The quality parameters may include signal strength. Furthermore, the quality parameters may also include at least one of the following: network connection speed, packet loss rate, and network latency, etc., to comprehensively evaluate the network quality of the first network and the second network from multiple aspects.
[0076] In some embodiments of the present application, the method may further include: monitoring quality parameters of the first network and the second network based on a preset frequency, and switching from one of the currently selected first network and the second network to the other when the quality parameters meet a switching condition.
[0077] During the process of selecting an access network and sending second data to the cloud platform based on the access network, the relay device monitors the quality parameters of the first network and the second network based on a preset frequency. The value of the preset frequency is not limited in this embodiment of the present application. For example, if the preset frequency is 1 second, the relay device monitors the quality parameters of the first network and the second network once every 1 second. For another example, if the preset frequency is 3 seconds, the relay device monitors the quality parameters of the first network and the second network once every 3 seconds.
[0078] During the process of the relay device sending the second data to the cloud platform, the network status of the first network and / or the second network may change. Therefore, the embodiment of the present application monitors the quality parameters of the first network and the second network based on a preset frequency, and switches from one of the currently selected first network and the second network to the other when the quality parameters meet the switching conditions. As a result, the embodiment of the present application can automatically switch the access network to a network with better signal quality based on the real-time network status, thereby reducing network access delays and allowing the intelligent acquisition system to maintain optimal data transmission quality.
[0079] In some embodiments of the present application, when the quality parameter satisfies a switching condition, switching from one of the currently selected first network and the second network to another may include:
[0080] When the currently selected access network is the first network, in response to monitoring that the signal strength of the first network does not satisfy a first condition and the signal strength of the second network satisfies a second condition, switching from the first network to the second network; or
[0081] When the currently selected access network is the second network, in response to monitoring that the signal strength of the first network meets the first condition, switching from the second network to the first network is performed.
[0082] In an embodiment of the present application, a default network can be set, for example, the default network is set to the first network. When the quality parameters of the first network and the quality parameters of the second network can both meet the transmission requirements of the second data, and the signal strengths of the two are equal, the default network can be determined as the access network, such as determining the first network as the access network. During the transmission of the second data, if it is monitored that the quality parameters of the first network have decreased and the switching conditions are met, it is possible to switch from the first network to the second network. If it is monitored that the quality parameters of the first network have recovered to the point where they can meet the first condition, then the network is switched back from the second network to the first network. That is, the default network is preferentially used to transmit the second data.
[0083] Of course, the default network may also be the second network. The default network may be determined based on the network conditions of the first network and the second network, or the default network may be determined based on user configuration.
[0084] In some examples, it is assumed that the first network is a WiFi network and the second network is a 5G network. If the relay device determines that the access network is a WiFi network based on the quality parameters of the current WiFi network and the 5G network, the relay device forwards the scene data (also called the second data) collected in real time by the host device to the cloud platform through the WiFi network. In the process of transmitting the second data to the cloud platform, the relay device monitors the quality parameters of the first network and the second network based on a preset frequency. When the signal strength of the WiFi network is monitored to be less than -70dBm, it switches from the WiFi network to the 5G network and continues to transmit the second data to the cloud platform through the 5G network. The relay device monitors the quality parameters of the first network and the second network based on a preset frequency. When the signal strength of the WiFi network is monitored to be restored to above -70dBm, it switches from the 5G network to the WiFi network and continues to transmit the second data to the cloud platform through the WiFi network.
[0085] Furthermore, if the monitored signal strength of the first network does not meet the first condition, and the signal strength of the second network does not meet the second condition, it indicates that neither network can meet the current transmission requirements. In this case, an error message can be sent to the user terminal to indicate the network anomaly. The quality parameters of the first and second networks are then continuously monitored based on a preset frequency. When the quality parameters meet the switching conditions, the currently selected network is switched from the first or second network to the other.
[0086] In some embodiments of the present application, the method may further include:
[0087] receiving reporting information sent by the host device through the first network, and sending the reporting information to the cloud platform through the access network;
[0088] Control information is received through the access network, and the control information is sent to the host device through the first network.
[0089] In specific implementations, the host device and relay device can also exchange relevant information transmitted over the network. For example, the host device can send reporting information to the relay device, which then forwards this reporting information to the cloud platform. This reporting information includes, but is not limited to, host device status information, such as the host device's battery level, signal strength, and heartbeat packets. The relay device can forward control information from the cloud platform or the user end to the host device. This control information can be used to configure the host device's acquisition parameters, such as the quality of images captured by the host device. Furthermore, this control information can also be used to query the host device's status information.
[0090] In some embodiments, the reporting information and control information transmitted between the host device and the relay device can be based on the proprietary protocol format. Furthermore, the host device and the relay device can transmit the reporting information and control information via the first network. When the relay device forwards the host device's reporting information to the cloud platform, it must convert it into the access network's protocol format before sending it. When the relay device forwards control information to the host device, it must convert it into the proprietary protocol format before sending it.
[0091] 4 , there is shown a flowchart of another embodiment of a data transmission method of the present application, which is applied to an intelligent data acquisition system, which is a smart doorbell system. The smart doorbell system includes a host device and a relay device that are independently deployed in close proximity. The relay device includes a first network module and a second network module. The first network module is used to access a first network, and the second network module is used to access a second network. The method may include the following steps:
[0092] S401: The host device starts collecting scene data in response to a trigger event.
[0093] In a specific implementation, in order to reduce the power consumption of the host device, the host device is always in a standby state. The host device enters a working state and starts collecting scene data only when a trigger event is detected.
[0094] The triggering event includes but is not limited to an event in which the PIR of the host device senses the presence of a human body, or an event in which someone triggers a button on the host device.
[0095] S402: The relay device exchanges relevant information with the host device and receives first data sent by the host device.
[0096] The relevant information includes: reporting information sent by the host device and control information forwarded by the relay device.
[0097] Furthermore, the relay device and the host device may exchange relevant information via a first network, which may be a WiFi network.
[0098] Furthermore, the relevant information may be transmitted based on the proprietary protocol format.
[0099] The host device is configured according to the received control information, collects scene data, and sends the scene data to the relay device.
[0100] S403: The relay device selects the first network or the second network as an access network for accessing a wide area network according to quality parameters of the first network and the second network.
[0101] Furthermore, the relay device may select the first network or the second network as the access network for accessing the wide area network based on a comprehensive consideration of the quality parameters of the first network and the second network, the amount of the second data to be sent, and the available bandwidth of the first network and the second network.
[0102] In a specific implementation, when selecting an access network, corresponding priorities can be set for the above-mentioned multiple factors that are comprehensively considered, and the factors with the highest priority are given priority. For example, the signal strength is set to have the highest priority. Assuming that the current available bandwidth of the first network and the available bandwidth of the second network both meet the data volume of the second data to be sent, the signal strength of the first network meets the first condition, and the signal strength of the second network meets the second condition, that is, the various factors of the first network and the second network meet the current transmission requirements, at this time, the network with higher signal strength can be selected as the access network. For example, at this time, if the signal strength of the first network is higher than the signal strength of the second network, the first network can be selected as the access network. It can be understood that the embodiments of the present application do not limit the specific method of selecting access network sampling.
[0103] S404: The relay device sends second data to the cloud platform connected to the wide area network through the access network.
[0104] The relay device sets a communication interface based on the access network selected in S403. For example, if the selected access network is the first network, the communication interface is set to the first network module; if the selected access network is the second network, the communication interface is set to the second network module. The relay device sets the bandwidth requirement for the second data based on the amount of the second data to be sent.
[0105] The relay device establishes a transmission channel corresponding to the access network with the cloud platform through the communication interface provided, and sends the second data through the transmission channel.
[0106] S405: Monitor quality parameters of the first network and the second network based on a preset frequency, and switch from one of the currently selected first network and the second network to the other when the quality parameters meet a switching condition.
[0107] In the process of sending the second data to the cloud platform, the relay device monitors the quality parameters of the access network at a certain frequency. When the quality parameters of the access network meet the switching conditions, it switches from one of the currently selected first network and the second network to the other in a timely manner to dynamically select a network with a better signal.
[0108] In summary, embodiments of the present application provide a data transmission method that adds a corresponding relay device to the host device of a smart doorbell. The relay device can forward scene data collected by the host device to a cloud platform. The relay device has at least two built-in network modules, enabling the coexistence of multiple communication modes. When forwarding scene data collected by the host device to the cloud platform, the relay device can dynamically select a more suitable access network based on network quality. Because the relay device and the host device are relatively close, the relay device can use a low-power network when receiving scene data sent by the host device, thereby reducing the power consumption of the host device. Thus, embodiments of the present application can improve the stability and reliability of data transmission from the host device to the cloud platform through the relay device, while reducing the power consumption of the host device and maximizing the standby time of the host device. This ensures the overall stability and reliability of the intelligent data collection system and the normal playback function of the user terminal. In addition, the relay device has at least two built-in network modules that can be used to access different types of networks. Therefore, when forwarding scene data collected by the host device, the relay device can dynamically select a network with a better signal for transmission. When the scene data contains images or videos, there is no need to reduce the image or video quality, thereby ensuring the quality of data transmission. Furthermore, the embodiment of the present application adds a relay device to the host device of the smart doorbell, forming an intelligent data collection system. This intelligent data collection system has multiple communication modes, which can meet higher data transmission requirements. The host device and relay device can be deployed independently, making the intelligent data collection system applicable to more application scenarios and meeting more diverse user needs.
[0109] It should be noted that for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the order of the actions described, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0110] 5 , a block diagram of an embodiment of a data transmission device of the present application is shown. The device is applied to a relay device in an intelligent acquisition system. The intelligent acquisition system includes a host device and a relay device that are independently deployed in close proximity. The relay device includes a first network module and a second network module. The first network module is used to access a first network, and the second network module is used to access a second network. The device includes:
[0111] A first receiving module 501 is configured to receive first data sent by the host device; the first data includes scene data collected by the host device;
[0112] a target determination module 502, configured to select the first network or the second network as an access network for accessing a wide area network according to quality parameters of the first network and the second network;
[0113] The first sending module 503 is configured to send second data to the cloud platform connected to the wide area network via the access network; the second data includes the scene data.
[0114] 3 , a schematic diagram of the structure of an embodiment of an intelligent acquisition system of the present application is shown. The intelligent acquisition system includes a host device 301 and a relay device 302. The relay device includes a first network module and a second network module. The first network module is used to access a first network, and the second network module is used to access a second network.
[0115] The host device 301 is configured to collect scene data and send first data to the relay device, where the first data includes the scene data collected by the host device;
[0116] The relay device 302 is used to receive the first data sent by the host device; select the first network or the second network as the access network for accessing the wide area network based on the quality parameters of the first network and the second network; and send second data to the cloud platform connected to the wide area network through the access network; the second data includes the received scene data.
[0117] As for the device 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.
[0118] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0119] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0120] FIG6 is a schematic diagram of the structure of an electronic device 600 provided in an embodiment of the present application. The electronic device 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 601 and one or more memories 602, wherein the memory 602 stores at least one program code, and the at least one program code is loaded and executed by the processor 601 to implement the data transmission method described in FIG2 above. Of course, the electronic device 600 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The electronic device 600 may also include other components for implementing device functions, which will not be described in detail here.
[0121] The present application also provides a non-volatile computer-readable storage medium. When the instructions in the storage medium are executed by a processor of a device (server or terminal), the device is capable of executing the data transmission method described in the embodiment corresponding to FIG. 2 above. For technical details not disclosed in the computer program product or computer program embodiments involved in this application, please refer to the description of the method embodiments of this application.
[0122] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0123] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0124] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
[0125] The above is a detailed introduction to a data transmission method, a data transmission device, an intelligent acquisition system and a machine-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data transmission method, executed by a relay device in an intelligent acquisition system, wherein the intelligent acquisition system comprises a host device and a relay device independently deployed in close proximity, wherein the relay device comprises a first network module and a second network module, wherein the first network module is used to access a first network, and the second network module is used to access a second network; the method comprises: receiving first data sent by the host device; The first data includes scene data collected by the host device; selecting, according to quality parameters of the first network and the second network, the first network or the second network as an access network for accessing a wide area network; Sending second data to a cloud platform connected to the wide area network through the access network; the second data includes the scene data.
2. The method according to claim 1, wherein: The distance between the host device and the relay device is less than a preset distance threshold.
3. The method according to claim 1, wherein: The host device has the first network module built in, and the host device and the relay device communicate via the first network.
4. The method according to claim 1, wherein: The first network includes a WiFi network, and the second network includes a mobile data network or a satellite communication network.
5. The method according to claim 1, wherein: The format of the first data is a private protocol format between the relay device and the host device; The relay device is provided with a controller; before sending the second data to the cloud platform, the method further includes: The controller converts the format of the first data from the private protocol format to the protocol format of the access network to obtain second data.
6. The method according to claim 1, wherein: The quality parameter includes signal strength; and selecting the first network or the second network as an access network for accessing the wide area network according to the quality parameters of the first network and the second network includes: In response to the signal strength of the first network satisfying a first condition, selecting the first network as an access network; In response to the signal strength of the first network not satisfying the first condition and the signal strength of the second network satisfying a second condition, selecting the second network as an access network.
7. The method according to claim 6, wherein: The first condition includes: the signal strength of the first network is greater than or equal to a first preset value; The second condition includes: the signal strength of the second network is greater than or equal to a second preset value.
8. The method according to claim 1, further comprising: The quality parameters of the first network and the second network are monitored based on a preset frequency, and when the quality parameters meet a switching condition, switching is performed from one of the currently selected first network and the second network to another one.
9. The method according to claim 8, wherein: When the quality parameter satisfies the switching condition, switching from one of the currently selected first network and the second network to another one includes: When the currently selected access network is the first network, in response to monitoring that the signal strength of the first network does not satisfy a first condition, and the signal strength of the second network satisfies a second condition, switching from the first network to the second network; or When the currently selected access network is the second network, in response to monitoring that the signal strength of the first network meets a first condition, switching from the second network to the first network.
10. The method according to claim 3, further comprising: receiving reporting information sent by the host device through the first network, and sending the reporting information to the cloud platform through the access network; or Control information is received through the access network, and the control information is sent to the host device through the first network.
11. The method according to claim 10, wherein: The reported information at least includes the status information of the host device; the status information of the host device includes at least one of the power, signal strength and heartbeat packet of the host device; The control information is used to configure acquisition parameters of the host device and / or to query status information of the host device.
12. The method according to claim 1, wherein: The number of the host devices is greater than or equal to 1.
13. The method according to claim 1, wherein: The relay device is also provided with at least one of a power amplifier and a low noise amplifier.
14. A data transmission device, applied to a relay device in an intelligent acquisition system, wherein the intelligent acquisition system comprises a host device and a relay device independently deployed in close proximity, wherein the relay device comprises a first network module and a second network module, wherein the first network module is used to access a first network, and the second network module is used to access a second network; the device comprises: A first receiving module, used for receiving first data sent by the host device; The first data includes the main Scene data collected by machine equipment; a target determination module, configured to select the first network or the second network as an access network for accessing a wide area network according to quality parameters of the first network and the second network; The first sending module is used to send second data to the cloud platform connected to the wide area network through the access network; the second data includes the scene data.
15. An intelligent collection system, characterized in that: The intelligent acquisition system includes a host device and a relay device, the relay device includes a first network module and a second network module, the first network module is used to access a first network, and the second network module is used to access a second network; wherein, The host device is used to collect scene data and send first data to the relay device, where the first data includes the scene data collected by the host device; The relay device is used to receive first data sent by the host device; select the first network or the second network as an access network for accessing the wide area network based on quality parameters of the first network and the second network; send second data to a cloud platform connected to the wide area network through the access network; the second data includes the scene data.
16. An electronic device, comprising: one or more processors; The memory connected to the processor is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the data transmission method as described in any one of claims 1 to 13.
17. A non-volatile computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors of a device, causes the device to execute the data transmission method according to any one of claims 1 to 13.
18. A computer program product, comprising computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, and when the computer instructions are executed, the data transmission method according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
Intelligent Internet of Things gateway and Internet of Things system based on intelligent Internet of Things gateway
CN110971515A
Repeating-based cloud distributed doorbell system and control method thereof
CN111462427A
Data transmission method, device and system and readable storage medium
CN116600359A
Cited By
Data transmission method and system based on wifi6, medium and equipment
CN120321693A
Multi-mode access control method and system for IOT intelligent household electrical appliance
CN121115539A
