WiFi comprehensive test box for intelligent scale and test method thereof
By designing a comprehensive WiFi test box for smart scales, the combination of motherboard unit, WiFi module and Bluetooth module is used to solve the problem of long and low efficiency of WiFi function testing of smart scales, achieving a fast, stable and efficient testing process.
Patent Information
- Application Number
- CN202411756588.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-04
AI Technical Summary
When testing the WiFi function of smart scales, the existing technology has problems such as long-term testing, slow system response, inability to search for WiFi hotspots in real time, and the iOS system cannot obtain signal strength information, resulting in long test time, reduced production capacity and increased costs.
A comprehensive WiFi test box for smart scales is designed, including motherboard unit, WiFi module and Bluetooth module. Communication between modules is realized through the UART bus, the unique identification code of the smart scale and WiFi signal strength are obtained, and the test data is obtained through the system server, the signal strength and test data are compared with the preset threshold range, the test pass or fail signal is output, and the results are displayed through the color display screen.
The efficiency of WiFi function testing of smart scales has been greatly improved, from the original 60 seconds to about 10 seconds, avoiding the delay and resource competition problems of traditional operating systems, ensuring the stability and continuity of the test, and reducing production costs.
Smart Images

Figure CN119562297A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of test boxes, and more specifically to a WiFi comprehensive test box for a smart scale and a test method thereof. Background Art
[0002] At present, the WiFi function test of the general intelligent WiFi scale production line is as follows: using an old Android phone with Android 6.0 system to develop a special WiFi test APP to perform WiFi function test (including WiFi wireless radio frequency signal strength and WiFi data transmission test);
[0003] When using an Android 6.0 phone, after a long test of the APP calling the system WiFi, it is easy to fail to search for the AP hotspot sent by the WiFi smart scale, resulting in a situation where the test cannot be performed normally. In addition, the system response of an Android 6.0 phone is slow, resulting in a long test time of about 60 seconds for the WiFi function of a smart WiFi scale on the production line. When the product is testing the WiFi function, there is a serious backlog, resulting in reduced production capacity and increased costs. At the same time, for new phones with an Android system greater than 6.0, due to the low power consumption of the Android system, the WiFi list of the mobile phone system is cached, and it is impossible to search for the latest WiFi smart scale in real time, and it is impossible to install the corresponding test APP to test the WiFi function of the WiFi smart scale.
[0004] In addition, due to the limitations of the iOS system, the APP test program on the Apple phone cannot obtain the signal strength information in the WiFi list searched by the system, resulting in the inability to install the test APP to test the WiFi function of the smart scale. Summary of the invention
[0005] In order to overcome the shortcomings of the prior art, the present invention provides a WiFi comprehensive test box for a smart scale, which greatly improves the production efficiency of the smart scale. The WiFi function test of a smart scale can be completed in about 10 seconds instead of the original 60 seconds.
[0006] The technical solution of the present invention is as follows: A WiFi comprehensive test box for a smart scale, comprising a shell, a mainboard unit is arranged in the shell, a main control Bluetooth module and a WiFi module are arranged on the mainboard unit, and the main control Bluetooth module is connected to the WiFi module through a UART bus;
[0007] The WiFi module obtains the unique identification code of the smart scale and the WiFi signal strength, and transmits the obtained WiFi signal strength to the main control Bluetooth module through the UART bus;
[0008] The WiFi module obtains the test data of the smart scale from the system server through a unique identification code to transmit the data to the main control Bluetooth module. The main control Bluetooth module compares the obtained WiFi signal strength and the test data with a preset threshold range respectively. When the comparison result is within the threshold range, a smart scale test qualified signal is output; otherwise, a smart scale test unqualified signal is output.
[0009] Furthermore, it also includes a display unit, which includes a color display screen and a driver chip, the driver chip is electrically connected to the color display screen, and the driver chip is communicatively connected to the main control Bluetooth module via an SPI bus. When the WiFi signal strength and the test data are within a threshold range, the main control Bluetooth module outputs a smart scale test qualified signal, and the driver chip drives the color display screen to display a green icon; when the WiFi signal strength or the test data are not within the threshold range, the main control Bluetooth module outputs a smart scale test unqualified signal, and the driver chip drives the color display screen to display a red icon.
[0010] Furthermore, it also includes a power supply unit, which includes a battery, a step-down module and a charging management module. The step-down module and the charging management module are both connected to the battery. The step-down module is used to receive the voltage output by the battery and convert it into a 3.3V voltage output to power the main control Bluetooth module; the charging management module includes a charging management chip and a Type-c charging port. The charging management chip is used to detect the voltage and current status of the battery. The Type-c charging port is connected to an external power supply to charge the battery.
[0011] Furthermore, it also includes a front-end acquisition chip, which is connected to the main control Bluetooth module through a UART bus. The front-end acquisition chip receives analog signals collected by external sensors or signal sources and converts the analog signals into digital signals.
[0012] Further, the shell body includes a lower shell and an upper cover, the lower shell and the upper cover are detachably connected, the inner wall of the lower shell is provided with at least one card slot, the upper cover is correspondingly provided with a card protrusion, the card protrusion includes a first protrusion connected to the upper cover and a second protrusion connected to the first protrusion, the first protrusion and the second protrusion are perpendicular to each other, and the upper cover can be moved along the length direction of the lower shell so that the second protrusion is embedded in the card slot.
[0013] Furthermore, a charging hole is provided on one side wall of the lower shell, and the charging hole is used for allowing a charging cable to pass through.
[0014] Furthermore, a color screen connector is provided on the mainboard unit, and the mainboard unit is connected to the display unit via the color screen connector.
[0015] Furthermore, the WiFi module includes a WiFi chip in the 2.4 GHz frequency band.
[0016] In addition, the present invention also provides a testing method for the above WiFi comprehensive test box, including:
[0017] The WiFi module searches and connects to the smart scale to obtain the unique identification code of the smart scale and the WiFi signal strength;
[0018] The WiFi module transmits the acquired WiFi signal strength to the main control Bluetooth module through the UART bus;
[0019] The WiFi module is connected to a router with a specified WiFi name, and obtains test data of the corresponding smart scale from a system server through a unique identification code;
[0020] The WiFi module transmits the test data to the master control Bluetooth module through the UART bus. The master control Bluetooth module compares the acquired WiFi signal strength and the test data with the preset threshold range respectively. When the comparison result is within the threshold range, the smart scale test qualified signal is output, otherwise the smart scale test failed signal is output.
[0021] Furthermore, the test data includes the weight of the smart scale, the impedance value of the smart scale, and the WiFi data transmission rate.
[0022] The present invention according to the above scheme has the following beneficial effects:
[0023] (1) The present invention provides a WiFi comprehensive test box for a smart scale. The WiFi module obtains a unique identification code and WiFi signal strength of the smart scale, and obtains test data of the smart scale from a system server through the unique identification code to transmit the test data to the main control Bluetooth module. The main control Bluetooth module compares the obtained WiFi signal strength and test data with a preset threshold range respectively. When the comparison result is within the threshold range, the smart scale test qualified signal is output; otherwise, the smart scale test unqualified signal is output, thereby judging whether the WiFi function of the smart scale is normal. The processing task is independent and single, so that the WiFi comprehensive test box can be in a real-time processing state all the time, avoiding the delay and jamming problems that may occur when concurrently processing system-level tasks, and avoiding the resource competition and task delay problems that may occur in traditional operating systems, so that the test box can run continuously and stably, ensuring the stability and continuity of the test process, and greatly improving the test efficiency of the smart scale.
[0024] (2) The present invention provides a WiFi integrated test box for a smart scale. A mainboard unit is provided with a main control Bluetooth module and a WiFi module. The main control Bluetooth module is connected to the WiFi module via a UART bus, thereby enabling communication between modules under low power consumption conditions, so that the test box can operate quickly. Secondly, the WiFi module obtains a unique identification code of the smart scale and WiFi signal strength, and obtains test data of the smart scale from a system server through the unique identification code. This remote data acquisition method can reduce the demand for local storage, reduce power consumption, and can quickly update test data to keep the test box running quickly.
[0025] (3) The present invention provides a WiFi comprehensive test box for a smart scale. When the WiFi signal strength and test data are within a threshold range, the main control Bluetooth module outputs a smart scale test qualified signal, and the driver chip drives the color display screen to display a green icon; when the WiFi signal strength or test data are not within the threshold range, the main control Bluetooth module outputs a smart scale test unqualified signal, and the driver chip drives the color display screen to display a red icon. Production line personnel can quickly determine whether the WiFi function of the currently produced smart scale is normal based on the green icon and the red icon on the color display screen, without having to specifically check the display data on the test box, thereby greatly improving the test efficiency of the smart scale. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 It is a system block diagram of the WiFi comprehensive test box in an embodiment of the present invention;
[0028] Figure 2 It is a schematic diagram of the structural decomposition of the WiFi comprehensive test box in an embodiment of the present invention;
[0029] Figure 3 is a schematic structural diagram of an upper cover in an embodiment of the present invention;
[0030] Figure 4 Schematic diagram of the structure of the mainboard unit in an embodiment of the present invention.
[0031] In the figure, 1. shell; 11. lower shell; 111. charging port; 12. upper cover; 121. card convex; 1211. first protruding portion; 1212. second protruding portion; 2. mainboard unit; 21. main control Bluetooth module; 22. WiFi module; 23. front-end acquisition chip; 24. color screen connector; 25. step-down module; 26. charging management module; 27. Type-c charging port; 3. color display; 4. battery. DETAILED DESCRIPTION
[0032] The following detailed description of the embodiments of the present invention is provided in conjunction with the accompanying drawings and examples. The following detailed description of the embodiments and the accompanying drawings are used to illustrate the principles of the present invention, but cannot be used to limit the scope of the present invention, that is, the present invention is not limited to the described embodiments.
[0033] In order to better understand the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments:
[0034] See also Figure 1 As shown, a WiFi comprehensive test box for a smart scale provided by an embodiment of the present invention includes a housing 1, a mainboard unit 2 is arranged in the housing 1, a main control Bluetooth module 21 and a WiFi module 22 are arranged on the mainboard unit 2, and the main control Bluetooth module 21 is connected to the WiFi module 22 through a UART bus;
[0035] In this embodiment, the unique identification code is the SSID, MAC address or specific identifier issued by the WiFi chip built into the smart scale, which is used to ensure that the test box can accurately connect to and identify the target smart scale. The WiFi module 22 searches for and connects to the smart scale within a certain range, thereby obtaining the unique identification code and WiFi signal strength of the smart scale, and transmits the obtained WiFi signal strength to the main control Bluetooth module 21 through the UART bus.
[0036] The WiFi comprehensive test box provided in the embodiment of the present invention uses the acquired unique identification code, and the WiFi module 22 obtains the test data related to the smart scale from the system server through the network communication protocol (such as HTTP, MQTT, etc.), such as the weight of the smart scale, the impedance value of the smart scale, the WiFi data transmission rate, etc., and then the WiFi module 22 transmits the acquired test data to the main control Bluetooth module 21. The main control Bluetooth module 21 receives the WiFi signal strength and test data sent by the WiFi module 22, and compares the WiFi signal strength and the test data with the preset threshold range. According to the comparison result, the main control Bluetooth module 21 outputs a signal indicating that the smart scale test is qualified or unqualified; if the WiFi signal strength and the test data are both within the preset threshold range, a qualified signal is output; otherwise, an unqualified signal is output.
[0037] It should be noted that the threshold range is pre-set based on the design specifications and industry standards of the smart scale and is used to determine whether the performance of the smart scale meets the standards.
[0038] The present embodiment provides a WiFi comprehensive test box for a smart scale, which has independent and single processing tasks, so that the WiFi comprehensive test box can always be in a real-time processing state, avoiding delays and freezes that may occur when concurrently processing system-level tasks, and avoiding resource competition and task delay problems that may occur in traditional operating systems, so that the test box can run continuously and stably, ensuring the stability and continuity of the test process, and greatly improving the test efficiency of the smart scale.
[0039] In this embodiment, a main control Bluetooth module 21 and a WiFi module 22 are provided on the mainboard unit 2. The main control Bluetooth module 21 is connected to the WiFi module 22 via a UART bus, thereby enabling communication between modules under low power consumption conditions, so that the test box can operate quickly; secondly, the WiFi module 22 obtains the unique identification code of the smart scale and the WiFi signal strength, and obtains the test data of the smart scale from the system server through the unique identification code. This remote data acquisition method can reduce the demand for local storage, reduce power consumption, and can quickly update test data to keep the test box running quickly.
[0040] See also Figure 1 As shown, the WiFi comprehensive test box provided in the embodiment of the present invention also includes a display unit, the display unit includes a color display screen 3 and a driver chip, the driver chip and the color display screen 3 are electrically connected, and the driver chip is connected to the main control Bluetooth module 21 through an SPI (serial peripheral interface) bus. The SPI bus is a high-speed, full-duplex synchronous communication protocol suitable for short-distance, high-speed data transmission.
[0041] When the WiFi signal strength and the test data are within the threshold range, the main control Bluetooth module 21 outputs a smart scale test qualified signal, and the driver chip drives the color display screen 3 to display a green icon; when the WiFi signal strength or the test data are not within the threshold range, the main control Bluetooth module 21 outputs a smart scale test unqualified signal, and the driver chip drives the color display screen 3 to display a red icon. The production line personnel can quickly determine whether the WiFi function of the currently produced smart scale is normal based on the green icon and the red icon on the color display screen 3. Through the intuitive icon display, the production line personnel can make a quick judgment without specifically checking the displayed data on the test box, thereby shortening the test time and improving the test efficiency of the smart scale.
[0042] See also Figure 1 to Figure 4As shown, the WiFi comprehensive test box provided in the embodiment of the present invention also includes a power supply unit, which includes a battery 4, a step-down module 25 and a charging management module 26. The step-down module 25 and the charging management module 26 are both connected to the battery 4. The step-down module 25 is used to receive the voltage output by the battery 4 and convert it into a 3.3V voltage output to supply power to the main control Bluetooth module 21; the charging management module 26 includes a charging management chip and a Type-c charging port 27. The charging management chip is used to detect the voltage and current status of the battery 4. The Type-c charging port 27 is connected to an external power supply to charge the battery 4.
[0043] In another embodiment, the WiFi comprehensive test box also includes a front-end acquisition chip 23, which is connected to the main control Bluetooth module 21 through a UART bus. The front-end acquisition chip 23 receives analog signals collected by external sensors or signal sources and converts the analog signals into digital signals.
[0044] See also Figure 2-3 As shown, the housing 1 includes a lower shell 11 and an upper cover 12, the lower shell 11 and the upper cover 12 are detachably connected, the inner wall of the lower shell 11 is provided with at least one slot, the upper cover 12 is correspondingly provided with a protrusion 121, the protrusion 121 includes a first protrusion 1211 connected to the upper cover 12 and a second protrusion 1212 connected to the first protrusion 1211, the first protrusion 1211 and the second protrusion 1212 are perpendicular to each other, and the upper cover 12 can move along the length direction of the lower shell 11 so that the second protrusion 1212 is embedded in the slot. With this design, the second protrusion 1212 located on the upper cover 12 can be embedded in the slot of the lower shell 11 by sliding, thereby achieving the initial fixation of the upper cover 12 and the lower shell 11, ensuring that the mounting holes of the upper cover 12 and the lower shell 11 can be kept aligned, so as to facilitate the subsequent screwing in of fasteners such as screws and bolts.
[0045] In this embodiment, a charging hole 111 is provided on one side wall of the lower shell 11 , and the charging hole 111 is used for the charging cable to pass through.
[0046] Among them, a color screen connector 24 is provided on the mainboard unit 2, and the mainboard unit 2 is connected to the display unit through the color screen connector 24; the WiFi module 22 includes a WiFi chip of the 2.4 GHz frequency band.
[0047] For further explanation, the embodiment of the present invention also provides a test method of the above-mentioned WiFi comprehensive test box, which is as follows:
[0048] Step 1: Set the produced smart scale to factory test mode;
[0049] In this mode, the smart scale will send out WiFi signals in both server and client modes at the same time.
[0050] Step 2: The smart scale sends a WiFi signal to the surrounding space so that the WiFi module 22 of the WiFi comprehensive test box can search and measure the WiFi signal strength; the WiFi module 22 searches and connects to the WiFi signal of the smart scale, obtains its unique identification code (MAC address or custom ID) and WiFi signal strength, and the WiFi module 22 transmits the obtained WiFi signal strength to the main control Bluetooth module 21 through the UART bus;
[0051] Step 3: In Client mode, the smart scale actively connects to the router with the specified WiFi name (such as LEFUTest); then, the smart scale uploads the smart scale unique identification code, smart scale weight, smart scale impedance and other test data to the system server through the router;
[0052] Step 4: The WiFi module 22 of the WiFi comprehensive test box is also connected to the router with the specified WiFi name (such as LEFUTest), and the WiFi module 22 obtains the corresponding smart scale test data from the system server through the unique identification code;
[0053] Step 5: The WiFi module 22 transmits the test data to the main control Bluetooth module 21 through the UART bus, and the main control Bluetooth module 21 compares the acquired WiFi signal strength and the test data with the preset threshold range respectively;
[0054] Step 6. When the WiFi signal strength and the test data are within the threshold range, the main control Bluetooth module 21 outputs a smart scale test qualified signal, and the driver chip drives the color display screen 3 to display a green icon; when the WiFi signal strength or the test data is not within the threshold range, the main control Bluetooth module 21 outputs a smart scale test unqualified signal, and the driver chip drives the color display screen 3 to display a red icon. The production line personnel can quickly determine whether the WiFi function of the currently produced smart scale is normal based on the green icon and the red icon on the color display screen 3.
[0055] The test data includes but is not limited to the weight of the smart scale, the impedance value of the smart scale, and the WiFi data transmission rate.
[0056] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.
[0057] The above is an exemplary description of the present invention in conjunction with the accompanying drawings. It is obvious that the implementation of the present invention is not limited to the above-mentioned method. As long as various improvements are made by adopting the method concept and technical solution of the present invention, or the concept and technical solution of the present invention are directly applied to other occasions without improvement, they are all within the protection scope of the present invention.
Claims
1. A WiFi comprehensive test box for smart scales, characterized in that: It comprises a housing, a mainboard unit is arranged in the housing, a main control Bluetooth module and a WiFi module are arranged on the mainboard unit, and the main control Bluetooth module is connected to the WiFi module through a UART bus; The WiFi module obtains the unique identification code of the smart scale and the WiFi signal strength, and transmits the obtained WiFi signal strength to the main control Bluetooth module through the UART bus; The WiFi module obtains the test data of the smart scale from the system server through a unique identification code to transmit the data to the main control Bluetooth module. The main control Bluetooth module compares the obtained WiFi signal strength and the test data with a preset threshold range respectively. When the comparison result is within the threshold range, a smart scale test qualified signal is output; otherwise, a smart scale test unqualified signal is output.
2. A WiFi comprehensive test box for a smart scale as claimed in claim 1, characterized in that: It also includes a display unit, which includes a color display screen and a driver chip. The driver chip is electrically connected to the color display screen. The driver chip is communicatively connected to the main control Bluetooth module via an SPI bus. When the WiFi signal strength and the test data are within a threshold range, the main control Bluetooth module outputs a smart scale test qualified signal, and the driver chip drives the color display screen to display a green icon; when the WiFi signal strength or the test data are not within the threshold range, the main control Bluetooth module outputs a smart scale test unqualified signal, and the driver chip drives the color display screen to display a red icon.
3. A WiFi comprehensive test box for a smart scale as claimed in claim 2, characterized in that: It also includes a power supply unit, which includes a battery, a step-down module and a charging management module. The step-down module and the charging management module are both connected to the battery. The step-down module is used to receive the voltage output by the battery and convert it into a 3.3V voltage output to power the main control Bluetooth module; the charging management module includes a charging management chip and a Type-c charging port. The charging management chip is used to detect the voltage and current status of the battery. The Type-c charging port is connected to an external power supply to charge the battery.
4. A WiFi comprehensive test box for a smart scale as claimed in claim 3, characterized in that: It also includes a front-end acquisition chip, which is connected to the main control Bluetooth module through a UART bus. The front-end acquisition chip receives analog signals collected by external sensors or signal sources and converts the analog signals into digital signals.
5. A WiFi comprehensive test box for a smart scale as claimed in claim 3, characterized in that: The shell body includes a lower shell and an upper cover, the lower shell and the upper cover are detachably connected, the inner wall of the lower shell is provided with at least one card slot, the upper cover is correspondingly provided with a card protrusion, the card protrusion includes a first protrusion connected to the upper cover and a second protrusion connected to the first protrusion, the first protrusion and the second protrusion are perpendicular to each other, and the upper cover can be moved along the length direction of the lower shell so that the second protrusion is embedded in the card slot.
6. A WiFi comprehensive test box for a smart scale as claimed in claim 5, characterized in that: A charging hole is provided on one side wall of the lower shell, and the charging hole is used for the charging cable to pass through.
7. A WiFi comprehensive test box for a smart scale as claimed in claim 2, characterized in that: The mainboard unit is provided with a color screen connector, and the mainboard unit is connected to the display unit via the color screen connector.
8. A WiFi comprehensive test box for a smart scale as claimed in claim 4, characterized in that: The WiFi module includes a WiFi chip in the 2.4 GHz frequency band.
9. A method for testing a WiFi comprehensive test box, using the WiFi comprehensive test box according to any one of claims 1 to 8, characterized in that: include: The WiFi module searches and connects to the smart scale to obtain the unique identification code of the smart scale and the WiFi signal strength; The WiFi module transmits the acquired WiFi signal strength to the main control Bluetooth module through the UART bus; The WiFi module is connected to a router with a specified WiFi name, and obtains test data of the corresponding smart scale from a system server through a unique identification code; The WiFi module transmits the test data to the master control Bluetooth module through the UART bus. The master control Bluetooth module compares the acquired WiFi signal strength and the test data with the preset threshold range respectively. When the comparison result is within the threshold range, the smart scale test qualified signal is output; otherwise, the smart scale test unqualified signal is output.
10. A test method for a WiFi comprehensive test box as claimed in claim 9, characterized in that: The test data includes the weight of the smart scale, the impedance value of the smart scale, and the WiFi data transmission rate.