Distributed wireless weighing system and control method, device, equipment, and medium
The wireless weighing system, with its wireless power supply and unibody design, solves the problem of cleaning dead spots in the slave battery compartment and power interface, enabling cleaning and stable transmission of weighing data in high-hygiene environments.
Patent Information
- Application Number
- CN202611012741.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-08
- Publication Date
- 2026-11-17
AI Technical Summary
In existing wireless weighing systems, the slave unit relies on a built-in battery or external power supply, resulting in frequent maintenance and making it difficult to meet the cleaning requirements of high-hygiene scenarios.
The slave device is powered wirelessly, and the weight acquisition component, signal processing module and wireless communication module are sealed in a one-piece molded housing. Combined with the magnetic structure and 5GHz wireless communication, it avoids cleaning dead spots in the battery compartment and power interface.
The system features a sealed structure to meet the cleaning requirements of high-hygiene environments and ensures stable and real-time transmission of weighing data in complex electromagnetic environments.
Smart Images

Figure CN123111433A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of weight detection technology, specifically to a distributed wireless weighing system and its control method, device, equipment, and medium. Background Technology
[0002] In scenarios such as catering and pharmaceutical industries where material weighing is required, wireless weighing systems are widely used for operational flexibility. Currently, wireless weighing systems generally have a slave unit for weighing. The slave unit is typically powered by a built-in rechargeable battery or an external power cord. Some solutions feature removable covers or exposed interfaces on the slave unit housing for easy battery or cable replacement.
[0003] However, since the slave device relies on a built-in battery or an external power source, it requires regular maintenance and replacement or is limited by cable deployment. Furthermore, the battery compartment and power interface are prone to forming cleaning dead spots, making it difficult to meet the strict cleaning requirements of high-hygiene scenarios. Summary of the Invention
[0004] In view of the above problems, embodiments of this application provide a distributed wireless weighing system and control method, apparatus, device, and medium, which can improve the reliability of the distributed wireless weighing system.
[0005] According to one aspect of the embodiments of this application, a distributed wireless weighing system is provided, the system including a host and a slave; The host includes a wireless power supply transmitter module with an input power supply and a first wireless communication module, wherein the first wireless communication module is electrically connected to the wireless power supply transmitter module; The slave device includes a housing and a weight acquisition component, a signal processing module, a second wireless communication module, and a wireless power supply receiving module sealed within the housing. The housing is a one-piece molded structure. The weight acquisition component is used to acquire the weight signal of the target object to be measured; The signal processing module is electrically connected to the weight acquisition component and is used to receive the weight signal fed back by the weight acquisition component and perform signal processing. The second wireless communication module is electrically connected to the signal processing module and is used to transmit the weight signal processed by the signal processing module to the first wireless communication module. The wireless power receiving module is used to receive the energy signal emitted by the wireless power transmitting module and to supply power to the weight acquisition component, the signal processing module and the second wireless communication module.
[0006] In some embodiments of this application, the slave device further includes a mounting base plate installed within the housing; The weight acquisition component is mounted on the mounting base plate by fasteners, and the force-bearing part of the weight acquisition component is located on the outer wall of the housing.
[0007] In some embodiments of this application, the host and the slave are separated by a preset distance via a magnetic attraction structure.
[0008] According to another aspect of the embodiments of this application, a control method for a distributed wireless weighing system is provided, applied to a host in the distributed wireless weighing system as described above, the method comprising: In response to the power-on command of the host; According to the power-on command, the wireless power supply transmitter module is controlled to transmit energy signals and enter the scanning pairing mode; According to the scanning pairing mode, multiple slave heartbeat data within the preset communication area of the host are obtained; wherein, the heartbeat data includes the device identifier of the corresponding slave; The target slave of the master is determined based on the signal strength of multiple slave heartbeat data; Send a pairing request to the target slave device, and switch to unicast signal communication connection after successful pairing with the target slave device; Under the state of the unicast signal communication connection, the weight signal periodically sent by the target slave is acquired.
[0009] In some embodiments of this application, determining the target slave of the master based on the signal strength of the plurality of slave heartbeat data includes: Within a preset scanning duration, the signal strength of multiple heartbeat data points is determined; The signal strengths of multiple devices are compared and a comparison result is generated; wherein the comparison result represents the order of the signal strengths of the multiple slave devices. The target slave device of the host is determined based on the comparison results.
[0010] In some embodiments of this application, the method further includes: If no weight signal is received from the target slave device within a preset time period, the target slave device is determined to be offline. When the target slave device is offline, the process of controlling the wireless power supply transmitter module to transmit energy signals and enter the scanning pairing mode according to the power-on command is executed.
[0011] In some embodiments of this application, the method further includes: Send control commands to the target slave device; wherein the control commands include at least one of slave device configuration commands, slave device calibration commands, and slave device tare commands; Obtain the response command from the target slave device within a preset response time; If no response command is received from the target slave within the preset response time, the control command is sent to the target slave again until the preset number of times threshold is reached.
[0012] According to another aspect of the embodiments of this application, a control device for a distributed wireless weighing system is provided, applied to a host in the distributed wireless weighing system as described above, the device comprising: A response module for responding to a power-on command from the host; The control module is used to control the wireless power supply transmitter module to transmit energy signals and enter the scanning pairing mode according to the power-on command; The acquisition module is used to acquire multiple slave heartbeat data within the preset communication area of the host according to the scanning pairing mode; The determination module is used to determine the target slave of the master based on the signal strength of the multiple slave heartbeat data; The pairing module is used to send a pairing request to the target slave device and switch to unicast signal communication connection after successfully pairing with the target slave device. The receiving module is used to acquire the weight signal periodically sent by the target slave device when the unicast signal communication connection is established.
[0013] According to another aspect of the embodiments of this application, a control device for a distributed wireless weighing system is provided, comprising: Controller; The memory is used to store one or more programs, which, when executed by the controller, enable the controller to implement the control method of the distributed wireless weighing system described above.
[0014] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer program, and when the computer program is run on the control device / equipment of the distributed wireless weighing system, the control device / equipment of the distributed wireless weighing system performs the steps of the control method of the distributed wireless weighing system as described above.
[0015] In the distributed wireless weighing system provided in this application embodiment, through the host and slave architecture of the distributed wireless weighing system, the wireless power supply transmitter module of the host continuously transmits energy signals to the wireless power supply receiver module of the slave, enabling the weight acquisition component, signal processing module and second wireless communication module inside the slave to operate without the need for built-in batteries or external power cords. This eliminates the maintenance needs and waterproof dead spots introduced by the battery compartment, charging interface or power cable of the slave. On this basis, combined with the unibody shell structure adopted by the slave, the weight acquisition component, signal processing module and second wireless communication module are sealed inside the slave shell, reducing the path of external contaminants entering the shell and effectively meeting the cleanliness requirements of high-hygiene scenarios such as food and medicine. At the same time, the wireless communication link established between the host and the slave allows the weight signal of the target object collected by the weight acquisition component to be processed by the signal processing module and transmitted to the host in real time and stably.
[0016] The above description is merely an overview of the technical solutions of the embodiments of this application. In order to better understand the technical means of the embodiments of this application and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of this application more obvious and understandable, specific implementation methods of this application are described below. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0018] Figure 1 A schematic diagram of the structure of an embodiment of the distributed wireless weighing system of this application is shown.
[0019] Figure 2 A schematic diagram of an embodiment of the master-slave position placement of the distributed wireless weighing system of this application is shown.
[0020] Figure 3 A schematic diagram of another embodiment of the master-slave position placement of the distributed wireless weighing system of this application is shown.
[0021] Figure 4 A schematic diagram of an embodiment of the distributed wireless weighing system of this application is shown.
[0022] Figure 5 A cross-sectional structural schematic diagram of a slave device embodiment in the distributed wireless weighing system of this application is shown.
[0023] Figure 6A timing diagram of an embodiment of the distributed wireless weighing method of this application is shown.
[0024] Figure 7 A flowchart illustrating an embodiment of the distributed wireless weighing method of this application is shown.
[0025] Figure 8 This application shows Figure 7 A flowchart illustrating an embodiment of S4.
[0026] Figure 9 A schematic diagram of an embodiment of the distributed wireless weighing device of this application is shown.
[0027] Figure 10 A schematic diagram of the structure of a control device for a distributed wireless weighing system provided in this application is shown.
[0028] Explanation of reference numerals in the attached figures: 10-Main unit; 11-Wireless power supply and transmission module; 20-Slave device; 21-Wireless power supply receiver module; 22-Second wireless communication module; 23-Signal processing module; 24-Weight acquisition component; 25-Mounting base plate; 26-Connector; 27-Force-bearing part. Detailed Implementation
[0029] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0030] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0031] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0032] In this application, "multiple" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0033] Currently, wireless weighing modules are widely used for real-time monitoring and measurement of materials in scenarios such as commercial catering and pharmaceutical manufacturing. Wireless weighing systems typically employ a master-slave architecture. The slave unit is generally powered by either a built-in rechargeable battery or an external power cord. Some solutions incorporate removable covers or exposed interfaces on the slave unit's housing for easy battery or cable replacement. However, the built-in battery requires periodic replacement, leading to high maintenance costs. Furthermore, the battery compartment or charging port can easily create waterproof dead zones, making it difficult to meet the stringent cleaning requirements of high-hygiene environments.
[0034] To address the aforementioned issues, this application provides a distributed wireless weighing system that improves reliability by resolving problems such as the need for slave devices in wireless weighing systems to rely on built-in rechargeable batteries and physical interfaces. Specifically, please refer to... Figure 1 ,like Figures 3 to 5 As shown, this application provides a distributed wireless weighing system, which includes a host 10 and a slave 20; The host includes a wireless power supply transmitter module 11 with an input power supply and a first wireless communication module, the first wireless communication module being electrically connected to the wireless power supply transmitter module 11; The slave device includes a housing and a weight acquisition component 24, a signal processing module 23, a second wireless communication module 22, and a wireless power supply receiving module 21 sealed within the housing. The housing is a one-piece molded structure. Weight acquisition component 24 is used to acquire the weight signal of the target object to be measured; The signal processing module 23 is electrically connected to the weight acquisition component 24 and is used to receive the weight signal fed back by the weight acquisition component 24 and perform signal processing. The second wireless communication module 22 is electrically connected to the signal processing module 23 and is used to transmit the weight signal after signal processing by the signal processing module 23 to the first wireless communication module. The wireless power receiving module 21 is used to receive the energy signal emitted by the wireless power transmitting module 11 and to supply power to the weight acquisition component 24, the signal processing module 23, and the second wireless communication module 22.
[0035] The host unit can refer to a control unit located outside or to the side of the weighing area, with the host and slave units spatially separated. The wireless power supply transmitter module 11 of the host unit can refer to a coil assembly or antenna assembly capable of converting input power into electromagnetic field energy and radiating it outwards. Its input power can be supplied by a power adapter, DC power supply, etc. The first wireless communication module can refer to a wireless transceiver module supporting a specific frequency band (such as the 5GHz band), which is electrically connected to the wireless power supply transmitter module 11. In an optional embodiment, the first wireless communication module can be integrated with the wireless power supply transmitter module 11 of the host unit 10, or it can be located in other positions on the host unit 10. This is merely illustrative and not a specific limitation.
[0036] In one alternative embodiment, the host may include a wired communication interface (such as a CAN transceiver) connected to a host computer for forwarding received weight data to an external control system.
[0037] The slave unit is the component that directly contacts the object being measured and weighs it. The slave unit's housing is a one-piece molded structure, housing all electronic and mechanical components. The housing can be made of plastic, metal, or other insulating materials through injection molding, die casting, or other one-piece molding processes, forming a sealed cavity. It has no screw holes, battery cover, or charging interface on the outside, thus eliminating dead zones for water ingress or dirt accumulation, meeting high hygiene standards.
[0038] The slave device's weight acquisition component 24 can sense pressure or gravity and convert it into an electrical signal. The weight acquisition component 24 can be a resistance strain gauge sensor, such as a parallel beam load cell. One end of the weight acquisition component 24 can be fixed to a support structure inside the housing, while the other end, the force-bearing part, can contact the inner wall of the housing or extend through the housing to the outer wall to support the weighing pan or the object to be measured. When the object to be measured is placed on the slave device, the weight acquisition component 24 undergoes elastic deformation, generating an analog voltage signal proportional to its weight.
[0039] The slave device's signal processing module 23 is electrically connected to the weight acquisition component 24. The signal processing module 23 may include an ADC (Analogue-to-digital Converter) and an MCU (Microcontroller Unit) circuit board assembly. The signal processing module 23 receives the analog voltage signal output by the weight acquisition component 24, amplifies, filters, and performs analog-to-digital conversion on it to obtain a digital signal.
[0040] The slave device's second wireless communication module 22 is electrically connected to the signal processing module 23. The second wireless communication module 22 can be a wireless radio frequency unit located inside the slave device, which modulates and transmits the weight signal processed by the signal processing module 23. In an optional embodiment, the second wireless communication module 22 cooperates with the master device's first wireless communication module to form a wireless data transmission link. To avoid environmental interference, the second wireless communication module 22 can be configured to operate in the 5GHz frequency band and use a low-latency proprietary protocol such as ESPNOW for communication.
[0041] The slave unit's wireless power receiving module 21 can refer to an energy receiving unit with a receiving coil and a rectifier and voltage regulator circuit. The wireless power receiving module 21 is located inside the housing, and the plane of its receiving coil can be positioned opposite to the host unit's wireless power transmitting module 11. When the host unit's wireless power transmitting module 11 transmits an energy signal, the wireless power receiving module 21 acquires the energy signal through electromagnetic induction or magnetic resonance coupling and converts it into a DC voltage to power the weight acquisition component 24, the signal processing module 23, and the second wireless communication module 22. Since the slave unit relies entirely on wireless power, there is no need to install a battery compartment or power interface inside the slave unit.
[0042] The installation position of the wireless power supply receiver module 21 can be set in combination with the magnetic field coupling effect, such as near the bottom of the housing or the side wall of the housing. This is only an example and is not specifically limited.
[0043] In an optional embodiment, please combine with, as Figure 2 As for Figure 4 As shown, in automatic milk tea machines or commercial catering weighing scenarios, the main unit 10 is fixedly installed on the side wall or side bracket of the operating table, and the slave unit 20 is placed on the table to support the target object to be measured. The main unit 10 is connected to an external controller via a cable. When the operator places the slave unit 20 in the designated area on the operating table to the side of the main unit 10, after the main unit 10 and the slave unit 20 are aligned, the main unit 10 transmits a wireless energy signal to the slave unit 20. Upon receiving the wireless energy signal, the slave unit 20 starts up and begins to work.
[0044] In conjunction with the above embodiments, the sampling frequency of the weight acquisition component 24 on the slave device 20 can be set according to the actual application scenario, and can be set to a range of 5Hz to 200Hz. For example, the acquisition frequency can be set to 5Hz, 10Hz, 50Hz, 100Hz, 200Hz, etc. This is only an illustrative example and is not specifically limited.
[0045] The weight acquisition component 24 on the slave device 20 can acquire the weight change of the target object at a frequency of 10Hz. After being processed by the signal processing module 23, the weight data is sent to the host through the ESPNOW protocol in the 5GHz band.
[0046] Through the technical solution of this application, since the slave device 20 obtains energy by using the wireless power supply receiver module 21, there is no need for a built-in battery or external power cord. Therefore, the traditional waterproof dead corners such as battery compartment and charging interface are eliminated. Combined with the unibody shell structure, the slave device is completely sealed, meeting the cleaning requirements of high-hygiene scenarios such as food and medicine. At the same time, since the wireless communication module combined with the 5GHz frequency band is used for data transmission, the interference of the 2.4GHz frequency band that is common in commercial environments is effectively avoided, ensuring the stability and real-time transmission of weighing data in complex electromagnetic environments.
[0047] In an optional embodiment, please combine with, as Figure 5 As shown, in the distributed wireless weighing system of this application, the slave unit 20 also includes a mounting base plate 25 installed inside the housing; the weight acquisition component 24 is installed on the mounting base plate 25 by fasteners, and the force-bearing part 27 of the weight acquisition component 24 is in contact with the inner wall of the housing, or the force-bearing part of the weight acquisition component 24 is located on the outer wall of the housing and is connected to the weight acquisition component 24 by a connector 26.
[0048] The mounting base plate 25 can refer to a support structure disposed inside the housing for supporting and fixing related functional components. The connection between the mounting base plate 25 and the housing can be a snap-fit connection, screw fixing, or direct formation through an integral molding process. This is only for illustrative purposes and is not specifically limited.
[0049] In some embodiments, the force-bearing portion 27 of the weight acquisition component 24 can be disposed on the outer wall of the housing, i.e., the weighing pan for supporting the target object to be measured. A draining tray can be placed on the weighing pan, and the load of the target object to be measured acts directly on the force-bearing portion 27 extending to the surface of the housing. The force-bearing portion 27 of the weight acquisition component 24 can also contact the inner wall of the housing, i.e., after the load of the target object to be measured acts on the housing, the housing undergoes a slight deformation or directly presses the force-bearing portion located inside, thereby driving the weight acquisition component 24 to work. It should be understood that the specific shape and size of the force-bearing portion 27 can be designed according to the actual weighing situation and sensitivity requirements. For example, it can be a groove, a boss, or a planar contact area. This is only an illustrative example and is not specifically limited.
[0050] For example, when the target object is placed on the weighing pan above the slave device or acts on the slave device housing, the weight of the target object first acts on the weighing pan or housing. Since the weight acquisition component 24 is securely mounted on the mounting base 25 inside the housing by fasteners, and its force-bearing part 27 contacts the inner wall of the housing or extends to the outer wall, the force state of the housing is directly transmitted to the weight acquisition component 24. The weight acquisition component 24 undergoes elastic deformation, converting this elastic deformation into an analog electrical signal. This analog electrical signal is then transmitted to the signal processing module 23 for processing, and finally sent to the host device through the second wireless communication module 22.
[0051] In an optional embodiment, the slave device can be a one-piece molded plastic housing with a pre-set mounting position inside. An aluminum alloy mounting plate is fixed to the predetermined position inside the housing by welding or screws. Subsequently, a parallel beam type load cell is used as the weight acquisition component 24, and its bottom is fixed to the mounting plate with bolts. The sensor is positioned so that its top force-bearing end point abuts against the inner wall of the top of the housing. When the user places the target object on the top of the slave device housing, the weight of the target object presses against the top of the housing, and the housing transmits the pressure to the sensor force-bearing end point at the contact point. The sensor deforms and outputs an electrical signal.
[0052] Through the embodiments of this application, since the force-bearing part of the weight acquisition component 24 is in direct contact with the inner wall of the housing or is set on the outer wall of the housing, the weight acquisition component 24 is contained in the sealed housing or only contacts the outside through the necessary force-bearing points. No additional battery compartment or charging interface is introduced, that is, there are no waterproof dead corners such as battery compartment and charging interface, maintaining the one-piece molded seal of the slave device and meeting the cleaning requirements of high hygiene level scenarios.
[0053] In an optional embodiment, please combine with, as Figure 5 As shown, in the distributed wireless weighing system of this application, the host and slave are set at a preset distance through a magnetic attraction structure.
[0054] The magnetic attraction structure refers to a mechanically mating component that enables the host and slave devices to automatically attract, align, and maintain a specific spatial relationship when they approach each other. The specific implementation of the magnetic attraction structure can be determined according to actual conditions. For example, the magnetic attraction structure may include a first magnetic component disposed on the host and a second magnetic component disposed on the side of the slave device. The first magnetic component can be positioned adjacent to the wireless power transmission module 11, and the second magnetic component can be positioned adjacent to the wireless power receiving module 21. The magnetic poles of the first and second magnetic components have opposite polarities, causing the host and slave devices to generate a mutual attractive force when they approach each other.
[0055] The preset distance refers to the gap between the relative surfaces of the master and slave devices when they are magnetically attached. The range of the preset distance can be set according to the transmission efficiency curve of the wireless power supply module and the antenna gain characteristics of the wireless communication module. It can be, but is not limited to, 3mm, 5mm, 7mm, 10mm, etc., and should be set according to the actual application. This is only an example and is not a specific limitation.
[0056] When the user moves the slave device close to the master device within a certain range, the magnetic force generated by the magnetic attraction structure comes into play, guiding the master and slave devices to move automatically until they make contact or reach a magnetic equilibrium point. At this point, the master and slave devices are positioned at a preset distance. In this state, the energy signal emitted by the master device can be received by the slave device with a high coupling coefficient, reducing energy loss during spatial transmission. This magnetically based spacing method eliminates the need for additional mechanical locking devices or complex alignment mechanisms, avoiding errors caused by manual placement and improving ease of use in scenarios such as commercial catering or industrial production lines.
[0057] Through the embodiments of this application, the fixed preset spacing ensures efficient wireless power transmission, avoids power interruption caused by distance changes, and realizes a stable and reliable physical connection and energy transmission between the host and slave devices.
[0058] Based on the aforementioned distributed wireless weighing system, this application proposes a control method for the distributed wireless weighing system to improve its reliability. The executing entity of the distributed wireless weighing method can be a terminal device, a server, or other processing device with computing capabilities. The terminal device can be a user equipment (UE), computer, mobile device, user terminal, computing device, wearable device, etc. In some possible implementations, this distributed wireless weighing method can be implemented by a processor calling computer-readable instructions stored in memory.
[0059] Specifically, please refer to, for example Figure 6 and Figure 7 As shown in this embodiment, the distributed wireless weighing method includes the following steps: S1, responding to the host's power-on command.
[0060] The power-on command can be a start command sent by an external host computer via the CAN bus, or it can be a start command that automatically powers on after the host's power is turned on. After power-on, the wireless power supply transmitter module 11 and the first wireless communication module in the host are triggered to operate, preparing for subsequent wireless power transmission and communication scanning.
[0061] S2. Control the wireless power supply transmitter module 11 to transmit energy signals and enter the scanning pairing mode according to the power-on command.
[0062] In this scanning pairing mode, the host's first wireless communication module is in a state of listening to broadcast data packets. In this mode, the host does not actively initiate a specific connection but passively receives broadcast information from surrounding slave devices. Specifically, in response to a power-on command, the host processor outputs a high-frequency AC signal to the wireless power supply transmitter 11, causing it to continuously radiate electromagnetic energy to wake up passive slave devices within a preset distance. Simultaneously, the host processor configures the first wireless communication module to operate in the ESPNOW protocol broadcast reception state in the 5GHz band. For example, the host can be set to a transmission frequency of 5.8GHz and a power of 2W to ensure sufficient startup energy for the slave devices within an effective coupling distance of 5mm. This synchronous startup mechanism ensures that the slave devices can operate normally before being scanned, avoiding the problem of being unable to be scanned due to the slave devices not being powered on.
[0063] S3. Obtain multiple slave heartbeat data within the host's preset communication area according to the scanning pairing mode.
[0064] The heartbeat data includes the device identifier of the corresponding slave device, which can refer to the status frame periodically broadcast by the slave device after startup initialization. The heartbeat data must have at least a unique device identifier of the slave device (such as the slave device's MAC address). The preset communication area can refer to the effective signal coverage range determined by the antenna gain and transmit power of the first wireless communication module. Specifically, in the scanning pairing mode, the host continuously monitors the channel. When a slave device awakened by wireless power completes its self-test, it will broadcast heartbeat data through the second wireless communication module 22. The host receives and parses these data frames, extracting the unique device identifier from each data frame. For example, if there are three slave devices A, B, and C within the preset communication area, the host will receive heartbeat data with ID_A, ID_B, and ID_C. This embodiment provides basic data for subsequent signal strength judgment, ensuring that the host can detect all available candidate slave devices.
[0065] S4. Determine the target slave of the master based on the signal strength of multiple slave heartbeat data.
[0066] Here, signal strength can refer to the Received Signal Strength Indicator (RSSI), whose numerical value characterizes the spatial distance and channel quality between the master and slave devices. The target slave device can be the specific slave device selected by the master at the current moment to establish a dedicated communication connection. Specifically, the master processor compares multiple received heartbeat data points and reads the RSSI value corresponding to each data frame.
[0067] In one exemplary embodiment, please refer to, as follows Figure 8As shown, the target slave of the master is determined based on the signal strength of multiple slave heartbeat data, which includes at least S41 to S43, as follows: S41. Within a preset scan duration, determine the signal strength of multiple heartbeat data.
[0068] The preset scan duration refers to the time window during which the host continuously listens for and collects broadcast signals from surrounding slave devices after entering the scan pairing mode. The preset scan duration can be 8 seconds, 10 seconds, 15 seconds, etc., depending on the actual application. This is only an example and is not a specific limitation.
[0069] Specifically, the first wireless communication module within the host is configured to start a timer simultaneously with initiating the scanning pairing mode. Within a preset scanning duration (e.g., 10 seconds), it continuously receives heartbeat data periodically transmitted by each slave device within a preset communication area of the host (e.g., an area with a diameter of 10 meters centered on the host). Each heartbeat data carries the device identifier of the corresponding slave device. When the host receives heartbeat data, it synchronously reads the received signal strength indication value of that data packet. By performing multiple samplings within this time window, the host can obtain multiple signal strength samples of each slave device at different times, thereby providing a data basis for subsequent stability assessment.
[0070] S42. Compare the strengths of multiple signals and generate the comparison results; S43. Determine the target slave device of the host based on the comparison results.
[0071] The comparison result represents the ranking of signal strength among multiple slave devices. The comparison process refers to the host performing statistical analysis and ranking processing on the signal strength samples of all the slave devices collected. Specifically, the host's processor first processes multiple signal strength samples obtained from the same slave device within a preset scan time. The processing method may include calculating the average value, selecting the maximum value, or taking the average after removing outliers, to obtain the representative signal strength value of the slave device. Subsequently, the host compares the representative signal strength values of all detected slave devices in the area and generates a sorted list in descending order of value. This sorted list is the comparison result. This comparison result represents the signal strength relationship between each slave device and the host. The greater the signal strength, the closer the slave device is to the host or the better the coupling between the two. The host determines the slave device with the highest RSSI value as the target slave device. For example, if the host detects that the average signal strength of slave A is -45dBm, slave B is -60dBm, and slave C is -75dBm during the scanning period, the generated comparison results will be sorted as: slave A > slave B > slave C. The host then determines that slave A is the target slave. After the target slave is identified, the host records its device identifier and prepares to send a pairing request, ignoring other slaves ranked lower in the order, until the current pairing process ends or the target slave goes offline. Through this embodiment, based on the signal strength filtering mechanism and utilizing the physical proximity guaranteed by the magnetic structure, the system can automatically achieve nearest-neighbor pairing in an environment where multiple devices coexist without manual intervention, effectively avoiding cross-interference and ensuring a one-to-one correspondence between the host and slave devices in each system.
[0072] S5. Send a pairing request to the target slave device, and switch to unicast signal communication connection after successful pairing with the target slave device.
[0073] In this system, a pairing request can refer to a handshake data packet containing the host identifier and the target slave identifier, used to establish a two-way trust relationship. A unicast signal communication connection can refer to a mode where both communicating parties use specific MAC addresses for point-to-point data transmission. Specifically, the host sends a pairing request frame carrying its own MAC address to the identified target slave via a first wireless communication module. When the target slave receives the request and passes verification, it replies with an acknowledgment frame. Upon receiving the acknowledgment frame, the host determines that pairing is successful and then modifies the configuration of the first wireless communication module, changing the destination address of the data frame from the broadcast address to the target slave's MAC address. This embodiment effectively isolates signal interference between multiple systems and constructs a private communication link.
[0074] S6. Under the state of unicast signal communication connection, acquire the weight signal periodically sent by the target slave.
[0075] In the aforementioned unicast communication connection between the host and the target slave, the target slave can proactively report data to the host at preset time intervals (e.g., 10Hz, or once every 100 milliseconds). Specifically, during the unicast communication connection, the host continuously listens for the reported data from the target slave. The target slave uses the energy obtained from the wireless power receiving module 21 to drive the weight acquisition component 24 to acquire weight signals in real time, and encapsulates the processed weight signals in unicast data frames before sending them to the host. The host parses these data frames, extracts the weight values, and forwards them to the host computer via the CAN bus. For example, in an automatic milk tea machine application, the host acquires the weight change of the target object (e.g., a container containing fruit-flavored syrup) every 100 milliseconds, thereby achieving high-precision real-time ingredient control. This embodiment ensures that weight data can be transmitted with high real-time performance and low latency under an anti-interference unicast channel, meeting the requirements of industrial-grade weighing.
[0076] In an optional embodiment, in conjunction with the foregoing embodiments, this application embodiment further includes a process for detecting the offline status of the target slave device and a system self-recovery process, as follows: If no weight signal is received from the target slave device within the preset time period, the target slave device is determined to be offline. When the target slave device is offline, it executes the power-on command to control the wireless power supply transmitter module 11 to transmit energy signals and enter the scanning pairing mode.
[0077] The preset duration can be set according to the actual application scenario, such as 20 seconds, 30 seconds, 60 seconds, etc. This is only an example and is not specifically limited. The starting point of the preset duration can be the moment when the target slave's weight signal was last successfully received. The process of determining that the target slave is offline is based on a timeout mechanism. Whenever a weight signal sent by the target slave through the unicast signal communication connection is received, the host's internal timer is reset to zero. If, during continuous operation, the timer count reaches the preset duration and no new weight signal is received, the communication link is determined to be interrupted, and thus the target slave is determined to be offline. Through this embodiment, the offline status of the target slave can be identified in a timely manner, avoiding the host from continuously sending instructions to invalid addresses or waiting for data, thereby saving system resources and quickly triggering the recovery mechanism.
[0078] After confirming that the target slave device is offline, the host automatically restarts the initialization process to attempt to rebuild the communication connection. Specifically, the host first controls the wireless power supply transmitter 11 to retransmit energy signals to provide the target slave device located within its preset communication area with the energy required for startup; simultaneously, the host switches the operating state of its first wireless communication module, exiting the previous unicast signal communication connection state and re-entering the scanning pairing mode. In the scanning pairing mode, the host again listens for heartbeat data with slave device identifiers emitted by multiple slave devices in the surrounding environment. Subsequently, the host will repeatedly execute the steps of determining the target slave device based on the signal strength of the multiple slave device heartbeat data, sending a pairing request, and switching to a unicast signal communication connection. For example, if the user removes the original target slave device from the table for cleaning, causing it to lose power and become offline, and if the user puts the slave device back in its original position or places a new slave device, the host will detect the offline state and automatically retransmit energy to wake up the slave device at the corresponding location, and re-establish a one-to-one communication link through scanning pairing. Through the embodiments of this application, it is ensured that the distributed wireless weighing system can still quickly restore normal weighing data acquisition function in scenarios such as accidental removal or fault replacement of slave devices, thereby improving the reliability of the system.
[0079] In an optional embodiment, in conjunction with the foregoing embodiments, this application further includes a reliable transmission mechanism for control commands to address the problem that critical configuration, calibration, or tare commands issued by the master unit may be lost under complex electromagnetic environments or transient interference, causing the slave unit to be unable to perform the corresponding operations. As follows: Send control commands to the target slave device; Obtain the response command from the target slave device within the preset response time; If no response command is received from the target slave within the preset response time, the control command is sent to the target slave again until the preset number of times threshold is reached.
[0080] Control commands can refer to non-periodic data frames issued by the host computer to change the slave's operating state, correct the measurement benchmark, or set operating parameters. Control commands can be, but are not limited to, slave configuration commands, slave calibration commands, and slave tare commands. Slave configuration commands are used to set basic parameters such as the slave's sampling frequency; slave calibration commands are used to trigger the slave to perform zero-point calibration to eliminate errors caused by sensor drift or load changes; slave tare commands are used to set the current weight reading to zero so that subsequent net weight can be directly measured. These control commands are all sent to the paired target slave via unicast using the ESPNOW protocol in the 5GHz band. For example, when an operator clicks the tare button on the host computer interface, the host computer generates a data packet with a tare command and sends it to the corresponding target slave via the communication antenna near the wireless power supply transmitter module 11. Through this embodiment, differentiated transmission strategies can be adopted for data with different needs, ensuring the real-time nature of weighing data and the accuracy of control operations.
[0081] The preset response time is a timeout window initiated by the host after sending a control command, used to wait for confirmation feedback from the target slave device. The setting of the preset response time needs to comprehensively consider the propagation delay of the wireless signal, the time consumed by the slave device to process the command, and possible retransmission intervals. It can be, but is not limited to, being set to 100 milliseconds, 300 milliseconds, 500 milliseconds, etc., depending on the actual application. This is only an example and not a specific limitation. Specifically, when the host sends a control command, it starts an internal timer. If the first wireless communication module receives a response command from the target slave device before the timer count reaches the preset response time, the command interaction is considered successful, and the timer stops. For example, if the preset response time is set to 500ms, and the host receives a calibration success response command from the slave device at 200ms, it indicates that the calibration command was effectively delivered and executed. Through this embodiment, the host can monitor the command execution status of the slave device in real time, improving the reliability of the distributed wireless weighing system.
[0082] If the host does not receive a response command within a preset response time, the host automatically triggers a retransmission command. When the preset response time expires and the host still has not received a valid response command, the system determines that the communication may have failed due to signal obstruction, co-channel interference, or slave device sleep mode, and then executes the retransmission logic. The preset retransmission threshold limits the maximum number of retransmission attempts to prevent the host from getting stuck in a loop of retransmissions when the slave device is completely offline or experiences a hardware failure, thus wasting system resources. The preset retransmission threshold can be, but is not limited to, 3, 5, 7, etc., and can be set according to the actual application scenario. This is only an example and is not specifically limited. For example, in a noisy industrial environment, if there is no response within 500ms after the first tare command is sent, the host will immediately retransmit a second time; if there is still no response after the second time, a third attempt will be made; if all three attempts fail, the attempt will be terminated and an alarm will be triggered. Through the embodiments of this application, the system can promptly identify the offline disconnection of the target slave device, improving the reliability of the distributed wireless weighing system and the user experience.
[0083] Please see Figure 9 As shown, Figure 9 A schematic diagram of an embodiment of the control device for the distributed wireless weighing system of this application is shown. The device includes a response module 51, a control module 52, an acquisition module 53, a determination module 54, a pairing module 55, and a receiving module 56; Response module 51 is used to respond to the power-on command of the host; Control module 52 is used to control the wireless power supply transmitter module 11 to transmit energy signals and enter the scanning pairing mode according to the power-on command; The acquisition module 53 is used to acquire multiple slave heartbeat data within the preset communication area of the host according to the scanning pairing mode; The determination module 54 is used to determine the target slave of the master based on the signal strength of the multiple slave heartbeat data; Pairing module 55 is used to send a pairing request to the target slave device, and switch to unicast signal communication connection after successful pairing with the target slave device; The receiving module 56 is used to acquire the weight signal periodically sent by the target slave device in the state of the unicast signal communication connection.
[0084] It should be noted that the control device 50 of the distributed wireless weighing system provided in the above embodiments and the control method of the distributed wireless weighing system provided in the foregoing embodiments belong to the same concept. The specific way in which each module and unit performs operations has been described in detail in the method embodiments, and will not be repeated here.
[0085] Figure 10The diagram illustrates the structure of an embodiment of the control device for the distributed wireless weighing system of this application. It also shows the structure of a computer system suitable for implementing the control device for the distributed wireless weighing system of this application. The specific embodiments of this application do not limit the specific implementation of the control device for the distributed wireless weighing system.
[0086] Please see Figure 10 As shown, the control device of the distributed wireless weighing system includes: a controller; and a memory for storing one or more programs, which, when executed by the controller, perform the control method of the distributed wireless weighing system described above.
[0087] Please continue reading. Figure 10 As shown, the computer system 600 of the control device of the distributed wireless weighing system includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage portion 608 into random access memory (RAM) 603, such as executing the methods in the above embodiments. The RAM 603 also stores various programs and data required for system operation. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0088] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.
[0089] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs various functions defined in the system of this application.
[0090] Another aspect of this application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the control method of the distributed wireless weighing system as described above. This computer-readable storage medium may be included in the control device of the distributed wireless weighing system described in the above embodiments, or it may exist independently and not incorporated into the control device of the distributed wireless weighing system.
[0091] Another aspect of this application provides a computer program product or computer program comprising at least one executable instruction that, when executed on a control device / equipment of a distributed wireless weighing system, causes the distributed wireless weighing device / equipment to perform the control method of the distributed wireless weighing system as described below: In response to the power-on command of the host; According to the power-on command, the wireless power supply transmitter module 11 is controlled to transmit energy signals and enter the scanning pairing mode; According to the scanning pairing mode, multiple slave heartbeat data within the preset communication area of the host are obtained; wherein, the heartbeat data includes the device identifier of the corresponding slave; The target slave of the master is determined based on the signal strength of multiple slave heartbeat data; Send a pairing request to the target slave device, and switch to unicast signal communication connection after successful pairing with the target slave device; Under the state of the unicast signal communication connection, the weight signal periodically sent by the target slave is acquired.
[0092] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0094] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0095] According to one aspect of the embodiments of this application, a computer system is also provided, including a Central Processing Unit (CPU), which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) or a program loaded from storage into random access memory (RAM), such as performing the methods described above. Various programs and data required for system operation are also stored in the RAM. The CPU, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.
[0096] The following components are connected to the I / O interface: input components including keyboards, mice, etc.; output components including cathode ray tubes (CRTs), liquid crystal displays (LCDs), and speakers; storage components including hard drives; and communication components including network interface cards such as LAN (Local Area Network) cards and modems. The communication components perform communication processing via networks such as the Internet. Drives are also connected to the I / O interface as needed. Removable media, such as disks, optical discs, magneto-optical discs, semiconductor memories, etc., are installed on the drive as needed so that computer programs read from them can be installed into the storage components as required.
[0097] The above description is merely a preferred exemplary embodiment of this application and is not intended to limit the implementation of this application. Those skilled in the art can easily make corresponding modifications or alterations based on the main concept and spirit of this application. Therefore, the scope of protection of this application should be determined by the scope of protection claimed in the claims.
[0098] In practice, the collection and processing of data in this application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the data subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the data subject.
Claims
1. A distributed wireless weighing system, characterized in that The system includes a host and slave devices; The host includes a wireless power supply transmitter module with an input power supply and a first wireless communication module, wherein the first wireless communication module is electrically connected to the wireless power supply transmitter module; The slave device includes a housing and a weight acquisition component, a signal processing module, a second wireless communication module, and a wireless power supply receiving module sealed within the housing. The housing is a one-piece molded structure. The weight acquisition component is used to acquire the weight signal of the target object to be measured; The signal processing module is electrically connected to the weight acquisition component and is used to receive the weight signal fed back by the weight acquisition component and perform signal processing. The second wireless communication module is electrically connected to the signal processing module and is used to transmit the weight signal processed by the signal processing module to the first wireless communication module. The wireless power receiving module is used to receive the energy signal emitted by the wireless power transmitting module and to supply power to the weight acquisition component, the signal processing module and the second wireless communication module.
2. The distributed wireless weighing system of claim 1, wherein, The slave device also includes a mounting base plate installed within the housing; The weight acquisition component is mounted on the mounting base plate by fasteners, and the force-bearing part of the weight acquisition component is located on the outer wall of the housing.
3. The distributed wireless weighing system according to claim 1 or 2, characterized in that, The host and the slave are set at a preset distance through a magnetic attraction structure.
4. A control method of a distributed wireless weighing system, applied to a host in the distributed wireless weighing system according to any one of claims 1-3, characterized in that, The method includes: In response to the power-on command of the host; According to the power-on command, the wireless power supply transmitter module is controlled to transmit energy signals and enter the scanning pairing mode; According to the scanning pairing mode, multiple slave heartbeat data within the preset communication area of the host are obtained; wherein, the heartbeat data includes the device identifier of the corresponding slave; The target slave of the master is determined based on the signal strength of multiple slave heartbeat data; Send a pairing request to the target slave device, and switch to unicast signal communication connection after successful pairing with the target slave device; Under the state of the unicast signal communication connection, the weight signal periodically sent by the target slave is acquired.
5. The control method according to claim 4, characterized by The step of determining the target slave of the master based on the signal strength of multiple slave heartbeat data includes: Within a preset scanning duration, the signal strength of multiple heartbeat data points is determined; The signal strengths of multiple devices are compared and a comparison result is generated; wherein the comparison result represents the order of the signal strengths of the multiple slave devices. The target slave device of the host is determined based on the comparison results.
6. The control method according to claim 4, characterized by The method further includes: If no weight signal is received from the target slave device within a preset time period, the target slave device is determined to be offline. When the target slave device is offline, the process of controlling the wireless power supply transmitter module to transmit energy signals and enter the scanning pairing mode according to the power-on command is executed.
7. The control method according to claim 4, characterized by, The method further includes: Send control commands to the target slave device; wherein the control commands include at least one of slave device configuration commands, slave device calibration commands, and slave device tare commands; Obtain the response command from the target slave device within a preset response time; If no response command is received from the target slave within the preset response time, the control command is sent to the target slave again until the preset number of times threshold is reached.
8. A control device of a distributed wireless weighing system, applied to a host in the distributed wireless weighing system according to any one of claims 1-3, characterized in that, The device includes: A response module for responding to a power-on command from the host; The control module is used to control the wireless power supply transmitter module to transmit energy signals and enter the scanning pairing mode according to the power-on command; The acquisition module is used to acquire multiple slave heartbeat data within the preset communication area of the host according to the scanning pairing mode; The determination module is used to determine the target slave of the master based on the signal strength of the multiple slave heartbeat data; The pairing module is used to send a pairing request to the target slave device and switch to unicast signal communication connection after successfully pairing with the target slave device. The receiving module is used to acquire the weight signal periodically sent by the target slave device when the unicast signal communication connection is established.
9. A control device of a distributed wireless weighing system, characterized in that include: Controller; A memory for storing one or more programs, which, when executed by a controller, cause the controller to implement the control method of the distributed wireless weighing system according to any one of claims 4 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed on the control device / equipment of the distributed wireless weighing system, causes the control device / equipment of the distributed wireless weighing system to perform the steps of the control method of the distributed wireless weighing system as described in any one of claims 4 to 7.
