Router and detection method thereof, smart home system
By using magnetic devices in the router to detect and adjust the position of the antenna component, the problem of reduced data throughput caused by inaccurate movement of the router's antenna component is solved, achieving higher detection accuracy and throughput improvement.
Patent Information
- Application Number
- CN202310791378.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-06-29
AI Technical Summary
Inaccurate positional movement of router antenna components results in reduced data throughput.
A router design including an antenna component, a driving mechanism, a first magnetic device and a second magnetic device is used to detect the movement of the antenna component through magnetic field detection data, and the driving mechanism is used to adjust the orientation of the antenna component to ensure its accurate position.
It improves the accuracy of detecting abnormal movement of antenna components, repairs abnormalities in a timely manner, and improves the data throughput and performance of the router.
Smart Images

Figure CN117041145B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication equipment, and in particular to a router and a detection method thereof, and a smart home system. Background Art
[0002] A router is a hardware device that connects at least two networks and acts as a gateway between networks. It is a dedicated intelligent network device that reads the address in each data packet and then decides how to transmit it. The router includes an antenna component, which is used by the router to forward broadband network signals to nearby wireless communication devices (such as laptops, mobile phones and other devices with wireless communication functions). At the same time, the router can also use the antenna component to receive wireless signals transmitted by wireless communication devices.
[0003] Currently, the position of the router antenna assembly is not accurately moved, which reduces the data throughput of the router. Summary of the invention
[0004] The purpose of the present application is to provide a router and a detection method thereof, and a smart home system to solve the problem of inaccurate movement of the position of the router antenna component, which leads to reduced data throughput of the router.
[0005] To achieve the above objectives, some embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, a router is provided. The router includes: an antenna assembly, a driving mechanism, a first magnetic device, and a second magnetic device. The driving mechanism is connected to the antenna assembly, and drives the antenna assembly to move to adjust the orientation of the antenna assembly. The first magnetic device is connected to the antenna assembly and / or the driving mechanism, and moves together with the antenna assembly. The second magnetic device is arranged opposite to the first magnetic device and at intervals. Among them, one of the first magnetic device and the second magnetic device generates a magnetic field, and the other dynamically senses the magnetic field and outputs magnetic field detection data.
[0007] The antenna assembly may include a directional antenna, a sector antenna, a flat antenna, or other suitable antennas, which are not limited here. For ease of understanding, the antenna assembly including a directional antenna is used as an example for explanation. A directional antenna refers to an antenna that transmits and receives electromagnetic waves particularly strongly in one or several specific directions, while transmitting and receiving electromagnetic waves in other directions is zero or extremely small.
[0008] The number of directional antennas may be one or more, which is not limited in the present application. The directional antenna may be fixedly connected to a driving mechanism, and the driving mechanism drives the directional antenna to move by moving its position, thereby changing the orientation of the directional antenna.
[0009] The first magnetic device generates a magnetic field, the second magnetic device dynamically senses the magnetic field and outputs magnetic field detection data; or the second magnetic device generates a magnetic field, the first magnetic device dynamically senses the magnetic field and outputs magnetic field detection data.
[0010] Since the first magnetic device moves together with the antenna assembly, the magnetic field detection data can truly reflect the movement of the antenna assembly. By using the magnetic field detection data obtained by cooperating with the second magnetic device to detect the first magnetic device, it is possible to detect whether the movement of the antenna assembly on the router is abnormal. This can improve the accuracy of detecting whether the movement of the antenna assembly is abnormal, thereby facilitating timely repair of the problem of abnormal movement of the antenna assembly and improving the throughput of normal use of the router.
[0011] In some feasible implementations of the first aspect, the driving mechanism includes a motor and a bracket. The motor has an output shaft. The bracket is connected to the output shaft of the motor and is also connected to the antenna assembly. The output shaft of the motor drives the bracket to rotate, and the bracket drives the antenna assembly to rotate.
[0012] The bracket is connected to the output shaft of the motor, and the rotation of the output shaft of the motor drives the bracket to rotate. The directional antenna can be set on the bracket, so that the bracket can drive the directional antenna to move together during the rotation process, so as to achieve the position movement of the directional antenna, thereby changing the direction of the directional antenna.
[0013] The router may further include a housing. The housing has a storage space inside, and the motor may be arranged in the storage space of the housing. The bracket may extend into the housing and be connected to the output shaft of the motor. The directional antenna and the first magnetic device may be located outside the housing, and the portion of the bracket exposed outside the housing may be connected to the directional antenna and the first magnetic device at the same time.
[0014] The second magnetic device may be located outside the shell or inside the shell, which is not limited in the present application.
[0015] In some feasible implementations of the first aspect, the first magnetic device includes a magnet, and the second magnetic device includes a Hall sensor. The first magnetic device includes a magnet, which generates a magnetic field and rotates synchronously with the directional antenna. The second magnetic device includes a Hall sensor, which is fixed to the housing. The fixed Hall sensor is used to dynamically sense the magnetic field generated by the dynamic magnet and output magnetic field detection data.
[0016] The magnet may be disposed on the bracket, and / or the magnet may be connected to the antenna assembly. It is understandable that the bracket may simultaneously drive the magnet and the directional antenna to rotate synchronously during rotation. Since the magnet and the directional antenna rotate synchronously, the movement of the magnet may be detected by the magnetic field detection data of the moving magnetic field by the fixed Hall sensor, thereby detecting the movement of the directional antenna.
[0017] At each position of the magnet during its movement, the Hall sensor can detect the magnetic field detection data of the magnetic field formed by the magnet.
[0018] In some feasible implementations of the first aspect, the first magnetic device includes a Hall sensor, and the second magnetic device includes a magnet.
[0019] The first magnetic device includes a Hall sensor, which rotates synchronously with the directional antenna. The second magnetic device includes a magnet, which is fixed on the shell. The moving Hall sensor is used to dynamically sense the fixed magnet and output magnetic field detection data.
[0020] The Hall sensor may be disposed on the bracket, and / or the Hall sensor may be connected to the antenna assembly. It is understandable that the bracket may simultaneously drive the Hall sensor and the directional antenna to rotate synchronously during rotation. Since the Hall sensor and the directional antenna rotate synchronously, the movement of the Hall sensor may be detected by the magnetic field detection data of the moving Hall sensor on the fixed magnetic field, thereby detecting the movement of the directional antenna.
[0021] At each position of the Hall sensor during the movement, the Hall sensor can detect the magnetic field detection data of the magnetic field formed by the magnet.
[0022] In some feasible implementations of the first aspect, an orthographic projection of the movement trajectory of the first magnetic device on the plane where the second magnetic device is located at least partially overlaps with the second magnetic device.
[0023] When the second magnetic device is fixed to the shell, the plane where the second magnetic device is located can be understood as the surface of the shell.
[0024] When the first magnetic device moves along the moving track to be directly above the second magnetic device, the orthographic projection of the first magnetic device on the shell surface may at least partially overlap with the orthographic projection of the second magnetic device on the shell surface.
[0025] By at least partially overlapping the orthographic projection of the movement track of the first magnetic device on the shell surface with the orthographic projection of the second magnetic device on the shell surface, the second magnetic device can be brought closer to the movement track of the first magnetic device, thereby improving the accuracy of the magnetic field detection data.
[0026] In some feasible implementations of the first aspect, the movement trajectory of the first magnetic device may include at least one of a circular trajectory, an elliptical trajectory, a rectangular trajectory, a regular polygonal trajectory, and a diamond trajectory.
[0027] In some feasible implementations of the first aspect, the router further includes a controller. The controller is coupled to the driving mechanism to control the driving mechanism to drive the antenna assembly to move. The controller is also coupled to the first magnetic device or the second magnetic device to obtain magnetic field detection data.
[0028] When the first magnetic device includes a magnet and the second magnetic device includes a Hall sensor, the controller may be connected to the second magnetic device, that is, the controller is connected to the Hall sensor, so that magnetic field detection data can be acquired.
[0029] When the first magnetic device includes a Hall sensor and the second magnetic device includes a magnet, the controller can be connected to the first magnetic device, that is, the controller is connected to the Hall sensor, so that magnetic field detection data can be obtained.
[0030] The controller can detect whether the movement of the antenna assembly of the router is normal through the acquired magnetic field detection data, and control the driving mechanism to drive the antenna assembly to move or stop moving based on the magnetic field detection data.
[0031] In a second aspect, a detection method for a router is provided. The method is applied to a router as in any one of the first aspect. The method includes: in the process of the driving mechanism of the router driving the antenna assembly to move, obtaining first magnetic field detection data at a first moment, and obtaining second magnetic field detection data at a second moment. The first moment and the second moment are two different moments in the process of the movement of the antenna assembly. Based on the first magnetic field detection data and the second magnetic field detection data, determine the change in the magnetic field detection data corresponding to the first time length. The first time length is the interval time length between the first moment and the second moment. Based on the change in the magnetic field detection data, output a detection result indicating whether the movement of the antenna assembly of the router is abnormal.
[0032] In the process of the normal operation of the driving mechanism driving the normal movement of the antenna assembly, the magnetic field detection data obtained by the cooperation of the second magnetic device and the first magnetic device is used to detect whether the movement of the antenna assembly on the router is abnormal. Since the first magnetic device moves synchronously with the antenna assembly, the magnetic field detection data can truly reflect the movement of the antenna assembly, thereby improving the accuracy of detecting whether the movement of the antenna assembly is abnormal, and thus facilitating timely repair of the abnormal movement of the antenna assembly, thereby improving the throughput of normal use of the router.
[0033] In some feasible implementations of the second aspect, outputting a detection result indicating whether the movement of the antenna assembly of the router is abnormal includes: when the change amount of the magnetic field detection data is less than a preset threshold, outputting a detection result indicating that the movement of the antenna assembly of the router is abnormal. When the change amount of the magnetic field detection data is greater than or equal to the preset threshold, outputting a detection result indicating that the movement of the antenna assembly of the router is normal.
[0034] In some feasible implementations of the second aspect, before the driving mechanism of the router drives the antenna assembly to move, the method further includes: sending a homing signal to the driving mechanism of the router to control the driving mechanism to drive the antenna assembly to move to a preset zero position within a second time period. The first moment and the second moment are two moments in the second time period.
[0035] After the above routers are assembled, the initial positions of the antenna assemblies on different routers may be different due to installation errors and other reasons. Therefore, after the routers are assembled, the positions of the antenna assemblies can be reset once so that the antennas on all routers are moved to the preset zero position. The routers can be provided with a blocking member at the zero position to prevent the antenna assembly from continuing to move after reaching the zero position, so that the antenna assembly remains at the zero position.
[0036] It can be understood that in the present implementation, the driving mechanism drives the antenna assembly to move, and the driving mechanism drives the antenna assembly to move toward the zero point position based on the homing signal.
[0037] The movement range of the antenna assembly corresponding to the homing signal may be greater than the maximum movement range of the antenna assembly in a single movement. For example, the movement range of the antenna assembly corresponding to the homing signal may be 120% of the maximum movement range of the antenna assembly in a single movement. The maximum movement range of the antenna assembly in a single movement may refer to the movement range of the antenna assembly after moving in one direction at a certain position and then returning to the position.
[0038] In this implementation, the controller compares the first change amount of the magnetic field detection data with the first preset threshold value to obtain a first detection sub-result of whether the movement amount of the antenna component meets the standard.
[0039] In some feasible implementations of the second aspect, the method further includes: acquiring third magnetic field detection data at the end of the second time period, and outputting a detection sub-result indicating whether the antenna assembly of the router reaches the zero point position based on the third magnetic field detection data and the preset zero point magnetic field data.
[0040] When the first detection sub-result indicates that the movement amount of the antenna assembly does not meet the standard, the controller sends a stop signal to the drive mechanism. When the first detection sub-result indicates that the movement amount of the antenna assembly does not meet the standard, the controller may deem that the rotation of the drive mechanism is blocked, causing the antenna assembly to stop moving. However, it is not currently possible to determine whether the antenna assembly stops moving because of an abnormality in the drive mechanism, or because the antenna assembly stops moving after reaching the zero position and is blocked by a blocking member.
[0041] Therefore, in order to distinguish the above two situations, it is also necessary to determine whether the antenna assembly has reached the zero position. If it is subsequently determined that the antenna assembly has not reached the zero position, it can be determined that the antenna assembly has stopped moving because of an abnormality in the drive mechanism. If it is subsequently determined that the antenna assembly has reached the zero position, it can be determined that the antenna assembly has stopped moving because it was blocked by the blocking member after reaching the zero position.
[0042] The controller determines a second variation of the magnetic field detection data based on the third magnetic field detection data and the preset zero-point magnetic field detection data. The controller compares the variation of the magnetic field detection data with a second preset threshold value to obtain a second detection sub-result of whether the antenna assembly reaches the zero-point position.
[0043] In some feasible implementations of the second aspect, outputting a detection result indicating whether the movement of the antenna assembly of the router is abnormal includes: when the change in the magnetic field detection data is less than a preset threshold and the detection sub-result indicates that the antenna assembly of the router has not reached the zero position, outputting a detection result indicating that the movement of the antenna assembly of the router is abnormal. Alternatively, when the change in the magnetic field detection data is less than a preset threshold and the detection sub-result indicates that the antenna assembly of the router has reached the zero position, outputting a detection result indicating that the movement of the antenna assembly of the router is normal. Alternatively, when the change in the magnetic field detection data is greater than or equal to the preset threshold, outputting a detection result indicating that the movement of the antenna assembly of the router is normal.
[0044] In some feasible implementations of the second aspect, the magnetic field detection data includes a first magnetic field component of the magnetic field in the first direction, a second magnetic field component of the magnetic field in the second direction, and a third magnetic field component of the magnetic field in the third direction. The first direction intersects with the second direction, and the third direction intersects with the plane in which the first direction and the second direction are located. Determining the change amount of the magnetic field detection data corresponding to the first duration includes: determining the change amount of the first magnetic field component of the magnetic field based on the first magnetic field component in the first magnetic field detection data and the first magnetic field component in the second magnetic field detection data. Determining the change amount of the second magnetic field component of the magnetic field based on the second magnetic field component in the first magnetic field detection data and the second magnetic field component in the second magnetic field detection data. Determining the change amount of the third magnetic field component of the magnetic field based on the third magnetic field component in the first magnetic field detection data and the third magnetic field component in the second magnetic field detection data. Outputting a detection result indicating whether the movement of the antenna component in the router is abnormal includes: when at least one of the change amount of the first magnetic field component is less than the first threshold value, the change amount of the second magnetic field component is less than the second threshold value, and the change amount of the third magnetic field component is less than the third threshold value, outputting a detection result indicating that the movement of the antenna component in the router is abnormal. In the case where none of the above three items are true, outputting a detection result indicating that the movement of the antenna component in the router is normal.
[0045] In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes computer instructions, and when the computer instructions are executed on a router, the router executes any method in the second aspect.
[0046] According to a fourth aspect, a computer program product comprising instructions is provided, which, when executed on a router, enables the router to execute any one of the methods according to the second aspect.
[0047] In a fifth aspect, an embodiment of the present application provides a chip, wherein the chip includes a processor, and the processor is used to call a computer program in a memory to execute any method in the second aspect.
[0048] It can be understood that the beneficial effects that can be achieved by the computer-readable storage medium of the third aspect, the computer program product of the fourth aspect, and the chip of the fifth aspect provided above can be referred to the beneficial effects in the second aspect above and any feasible implementation method thereof, and will not be repeated here.
[0049] In a sixth aspect, an embodiment of the present application provides a smart home system. The smart home system includes a wireless communication device and a router. The router is a router as described in any one of the first aspects. The wireless communication device includes at least one of a mobile phone, a laptop, a tablet computer, and a television, and the wireless communication device communicates wirelessly with the router.
[0050] It can be understood that the smart home system of the sixth aspect provided above can refer to the beneficial effects of the router of the first aspect and any feasible implementation method thereof, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of the composition of a smart home system provided for some embodiments of the present application;
[0052] Figure 2 A schematic diagram of the structure of a router provided for some embodiments of the present application;
[0053] Figure 3 A schematic diagram of a magnetic field formed by a magnet in a router provided for some embodiments of the present application;
[0054] Figure 4 A flowchart of a method for detecting a router provided in some embodiments of the present application;
[0055] Figure 5 A schematic diagram of a second duration in a method for detecting a router provided in some embodiments of the present application;
[0056] Figure 6A schematic diagram of another second duration in a detection method for a router provided in some embodiments of the present application;
[0057] Figure 7 A flowchart of a method for detecting a router provided in some other embodiments of the present application;
[0058] Figure 8 A possible structural diagram of a router involved in some embodiments of the present application;
[0059] Fig. 9 A possible structural diagram of a controller involved in some embodiments of the present application. DETAILED DESCRIPTION
[0060] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions in some embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments provided by the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present application.
[0061] Unless the context requires otherwise, throughout the specification and claims, the term "including" is to be interpreted as an open, inclusive meaning, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiment", "example", "specific example" or "some examples" and the like are intended to indicate that specific features, structures, materials or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present application. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials or characteristics may be included in any one or more embodiments or examples in any appropriate manner.
[0062] In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.
[0063] In the following, the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0064] In addition, in the present application, directional terms such as "upper" and "lower" are defined relative to the orientation of the components in the drawings. It should be understood that these directional terms are relative concepts. They are used for relative description and clarification, and they can change accordingly according to the changes in the orientation of the components in the drawings.
[0065] As used herein, "approximately" includes the stated values and averages that are within an acceptable range of deviation from the particular value, where the acceptable range of deviation is determined by one of ordinary skill in the art taking into account the measurements in question and the errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).
[0066] See also Figure 1 , Figure 1 A schematic diagram of the structure of a smart home system provided in some embodiments of the present application: The smart home system 1000 includes a router 100 and a wireless communication device 200 .
[0067] The wireless communication device 200 may be a terminal device with wireless communication capability. For example, the wireless communication device 200 may be a mobile phone, a laptop computer, a tablet computer, a television, a wearable electronic device (such as a smart watch), an augmented reality (AR) or virtual reality (VR) device, etc., which is not limited in the embodiments of the present application.
[0068] When multiple wireless communication devices 200 share the network through a router 100, the multiple wireless communication devices 200 are in the same local area network (LAN). In this way, multiple wireless communication devices 200 in the same LAN can communicate with each other and share network resources, thereby realizing multiple convenient functions of the smart home system.
[0069] See also Figure 2 , Figure 2 A schematic diagram of the structure of a router provided for some embodiments of the present application. The router 100 may include an antenna assembly 10, a driving mechanism 20, and a controller (not shown). The driving mechanism 20 is connected to the controller and the antenna assembly 10, respectively. The controller may send a control signal to the driving mechanism so that the driving mechanism drives the antenna assembly 10 to move or stop moving. Exemplarily, the controller may send a control signal to the driving mechanism so that the driving mechanism drives the antenna assembly 10 to always be at an optimal signal receiving angle and / or signal transmitting angle, thereby improving the throughput and performance of the router signal.
[0070] Exemplarily, the router has different optimal placement angles (e.g., optimal signal receiving angle and / or signal transmitting angle) at different time points. Therefore, the driving mechanism 20 in the router drives the antenna assembly 10 to rotate, so that the antenna assembly 10 is always at the optimal placement angle, thereby improving the signal throughput and performance of the router.
[0071] However, when the driving mechanism 20 drives the antenna assembly 10 to move, the antenna assembly 10 may move abnormally, causing the actual angle of the antenna assembly 10 to be inconsistent with the optimal placement angle, resulting in a decrease in the signal throughput and practical performance of the router.
[0072] Based on this, Figure 2 As shown, the router 100 provided in the embodiment of the present application may further include a first magnetic device 30 and a second magnetic device 40. The first magnetic device 30 generates a magnetic field, and the second magnetic device 40 dynamically senses the magnetic field and outputs magnetic field detection data; or the second magnetic device 40 generates a magnetic field, and the first magnetic device 30 dynamically senses the magnetic field and outputs magnetic field detection data.
[0073] like Figure 2 As shown, the antenna assembly 10 may include a directional antenna, a sector antenna, a flat antenna, or other suitable antennas, which are not limited here. For ease of understanding, the antenna assembly 10 including a directional antenna is used as an example for explanation. A directional antenna refers to an antenna that transmits and receives electromagnetic waves particularly strongly in one or several specific directions, while transmitting and receiving electromagnetic waves in other directions is zero or extremely small.
[0074] The number of directional antennas 11 can be one or more, which is not limited in the embodiments of the present application. The directional antenna 11 can be fixedly connected to the driving mechanism 20, and the driving mechanism 20 drives the directional antenna 11 to move by moving its position, thereby changing the orientation of the directional antenna 11.
[0075] The driving mechanism 20 may include a motor 21. The motor 21 may be a servo motor, a stepper motor, or other suitable motors, which is not limited in the embodiments of the present application. The driving mechanism 20 may also include a bracket 22 connected to the motor 21. The bracket 22 is connected to the output shaft of the motor 21, and the bracket 22 is driven to rotate under the rotation of the output shaft of the motor 21. The directional antenna 11 can be set on the bracket 22, so that the bracket 22 can drive the directional antenna 11 to move together during the rotation process, so as to realize the position movement of the directional antenna 11, thereby changing the orientation of the directional antenna 11.
[0076] like Figure 2 As shown, the router may further include a housing 50. The housing 50 has a storage space inside, and the motor 21 may be disposed in the storage space of the housing 50. The bracket 22 may extend into the housing 50 and be connected to the output shaft of the motor 21. The directional antenna 11 and the first magnetic device 30 may be located outside the housing 50, and the portion of the bracket 22 exposed outside the housing 50 may be connected to the directional antenna 11 and the first magnetic device 30 at the same time.
[0077] The second magnetic device 40 may be located outside the shell 50 or inside the shell 50 , which is not limited in the embodiments of the present application.
[0078] Figure 3 A schematic diagram of a magnetic field formed by a magnet in a router provided in some embodiments of the present application is shown. The magnetic field generated by the magnet is a three-dimensional magnetic field. Each magnetic field detection data may include a first magnetic field component Vx of the magnetic field in a first direction, a second magnetic field component Vy of the magnetic field in a second direction, and a third magnetic field component Vz of the magnetic field in a third direction.
[0079] In some feasible implementations, the first magnetic device 30 includes a magnet that generates a magnetic field and rotates synchronously with the directional antenna 11. The second magnetic device 40 includes a Hall sensor that is fixed to the housing 50. The fixed Hall sensor is used to dynamically sense the magnetic field generated by the dynamic magnet and output magnetic field detection data.
[0080] like Figure 2 As shown, the magnet can be arranged on the bracket 22, and / or the magnet can be connected to the antenna assembly 10. It can be understood that the bracket 22 can simultaneously drive the magnet and the directional antenna 11 to rotate synchronously during the rotation process. Since the magnet and the directional antenna 11 rotate synchronously, the movement of the magnet can be detected by the magnetic field detection data of the moving magnetic field by the fixed Hall sensor, and then the movement of the directional antenna 11 can be detected.
[0081] At each position of the magnet during its movement, the Hall sensor can detect the magnetic field detection data of the magnetic field formed by the magnet.
[0082] In this implementation, the controller may be connected to the second magnetic device 40 , that is, the controller is connected to the Hall sensor, so that the magnetic field detection data can be acquired.
[0083] In other feasible implementations, the first magnetic device 30 includes a Hall sensor, which rotates synchronously with the directional antenna 11. The second magnetic device 40 includes a magnet, which is fixed on the housing 50. The moving Hall sensor is used to dynamically sense the fixed magnet and output magnetic field detection data.
[0084] The Hall sensor may be disposed on the bracket 22, and / or the Hall sensor may be connected to the antenna assembly 10. It is understandable that the bracket 22 may simultaneously drive the Hall sensor and the directional antenna 11 to rotate synchronously during rotation. Since the Hall sensor and the directional antenna 11 rotate synchronously, the movement of the Hall sensor may be detected by the magnetic field detection data of the moving Hall sensor on the fixed magnetic field, thereby detecting the movement of the directional antenna 11.
[0085] At each position of the Hall sensor during the movement, the Hall sensor can detect the magnetic field detection data of the magnetic field formed by the magnet.
[0086] In this implementation, the controller may be connected to the first magnetic device 30 , that is, the controller is connected to the Hall sensor, so that the magnetic field detection data can be acquired.
[0087] In other feasible implementations, the first magnetic device 30 and the second magnetic device 40 can move together. It can be understood that the first magnetic device 30 can move with the bracket 22, and the second magnetic device 40 can move on the shell 50. The first magnetic device 30 can move at a predetermined speed, and the second magnetic device 40 moves at the same speed and direction as the first magnetic device 30. Under normal circumstances, it should be understood that the magnetic field detection data of the first magnetic device 30 and the second magnetic device 40 for detecting the magnetic field remains unchanged. In the case of abnormal movement of the antenna assembly, the magnetic field detection data of the first magnetic device 30 and the second magnetic device 40 for detecting the magnetic field changes. Among them, the principle of the magnetic field detection data of the first magnetic device 30 and the second magnetic device 40 for detecting the magnetic field can refer to the above implementation method, which will not be repeated here.
[0088] It should be noted that, in the case where the first magnetic device 30 or the second magnetic device 40 includes a Hall sensor, it may include one or more Hall sensors. Exemplarily, the number of Hall sensors may be three, including a first Hall sensor, a second Hall sensor, and a third Hall sensor. The sensing surface of the first Hall sensor may be set perpendicular to the direction of the first magnetic field component Vx, for detecting the first magnetic field component Vx of the magnetic field; similarly, the sensing surface of the second Hall sensor may be set perpendicular to the direction of the second magnetic field component Vy, for detecting the second magnetic field component Vy of the magnetic field; similarly, the sensing surface of the third Hall sensor may be set perpendicular to the direction of the third magnetic field component Vz, for detecting the third magnetic field component Vz of the magnetic field. Of course, this is only a feasible example and is not intended to be a limitation of the solution.
[0089] In some embodiments, the moving track of the first magnetic device 30 may include at least one of a circular track, an elliptical track, a rectangular track, a regular polygon track, and a diamond track. For example, the moving track of the first magnetic device 30 is a circle.
[0090] The moving track of the first magnetic device 30 may be the same as the shape of a surface of one side of the housing 50 of the router, which is not limited in the embodiments of the present application.
[0091] In some embodiments, the orthographic projection of the moving track of the first magnetic device 30 on the plane where the second magnetic device 40 is located at least partially overlaps with the second magnetic device 40. Wherein, when the second magnetic device 40 is fixed to the housing 50, the plane where the second magnetic device 40 is located can be understood as the surface of the housing 50.
[0092] When the first magnetic device 30 moves along the moving track to be directly above the second magnetic device 40 , the orthographic projection of the first magnetic device 30 on the surface of the shell 50 may at least partially overlap with the orthographic projection of the second magnetic device 40 on the surface of the shell 50 .
[0093] By at least partially overlapping the orthographic projection of the moving track of the first magnetic device 30 on the surface of the housing 50 with the orthographic projection of the second magnetic device 40 on the surface of the housing 50, the second magnetic device 40 can be brought closer to the moving track of the first magnetic device 30, thereby improving the accuracy of the magnetic field detection data.
[0094] Figure 4 A flowchart of a method for detecting a router provided in some embodiments of the present application is shown; Figure 5 A schematic diagram showing a second duration in a detection method for a router provided in some embodiments of the present application is shown; Figure 6 A schematic diagram showing another second duration in the detection method of a router provided in some embodiments of the present application is shown; Figure 7 A flowchart of a router detection method provided by other embodiments of the present application is shown.
[0095] The embodiment of the present application also provides a detection method for a router. The method is applied to the router as described above. The magnetic field detection data obtained by cooperating with the first magnetic device and the second magnetic device is used to detect whether the movement of the antenna assembly on the router is abnormal. Since the first magnetic device moves synchronously with the antenna assembly, the magnetic field detection data can truly reflect the movement of the antenna assembly, thereby improving the accuracy of detecting whether the movement of the antenna assembly is abnormal, thereby facilitating timely repair of the problem of abnormal movement of the antenna assembly and improving the throughput of normal use of the router.
[0096] After the above routers are assembled, the initial positions of the antenna assemblies on different routers may be different due to installation errors and other reasons. Therefore, after the routers are assembled, the positions of the antenna assemblies can be reset once so that the antennas on all routers are moved to the preset zero position. The routers can be provided with a blocking member at the zero position to prevent the antenna assembly from continuing to move after reaching the zero position, so that the antenna assembly remains at the zero position.
[0097] During the process of returning the antenna assembly to its original position, it is possible to detect whether the movement of the antenna assembly is abnormal.
[0098] like Figure 4 As shown, the specific process is as follows:
[0099] Step S210: The controller sends a homing signal to the driving mechanism.
[0100] The homing signal may be a signal indicating that the driving mechanism drives the antenna assembly to move toward the zero position. Exemplarily, the homing signal may be a signal indicating that the driving mechanism rotates in a clockwise direction or a counterclockwise direction. The movement range of the antenna assembly corresponding to the homing signal may be greater than the maximum movement range of a single movement of the antenna assembly. For example, the movement range of the antenna assembly corresponding to the homing signal may be 120% of the maximum movement range of a single movement of the antenna assembly. The maximum movement range of a single movement of the antenna assembly may refer to the movement range of the antenna assembly after it moves in one direction at a certain position and then returns to that position.
[0101] By making the movement range of the antenna assembly corresponding to the homing signal greater than the maximum movement range of the antenna assembly for a single movement, the influence of other factors on the movement of the antenna assembly during the movement process can be overcome, ensuring that the normally moving antenna assembly can reach the zero position after the homing operation.
[0102] Step S220: The driving mechanism drives the antenna assembly to move toward the zero position within a second time period based on the homing signal.
[0103] After the driving mechanism receives the homing signal, the output shaft of the motor rotates to drive the bracket and the antenna assembly on the bracket to move toward the zero point position. At the same time, the first magnetic device on the bracket also moves synchronously with the antenna assembly.
[0104] The time taken to execute step S220 is the second time.
[0105] Step S230: the controller obtains first magnetic field detection data at a first moment.
[0106] The first moment is a moment during the execution of step S220.
[0107] The following description will be made by taking the example that the first magnetic device includes a magnet and the second magnetic device includes a Hall sensor. When the magnetic field generated by the magnet moves synchronously with the antenna assembly, the Hall sensor dynamically senses the magnetic field and dynamically outputs magnetic field detection data. Therefore, the magnetic field detection data output by the Hall sensor can be obtained at the first moment as the first magnetic field detection data.
[0108] The first magnetic field detection data may include a first magnetic field component Vx1 , a second magnetic field component Vy1 , and a third magnetic field component Vz1 .
[0109] Step S240: the controller obtains second magnetic field detection data at the second moment.
[0110] The second moment is a moment during the execution of step S220.
[0111] When the magnetic field generated by the magnet moves synchronously with the antenna assembly, the Hall sensor dynamically senses the magnetic field and dynamically outputs magnetic field detection data. Therefore, the magnetic field detection data output by the Hall sensor can be obtained at the second moment as the second magnetic field detection data.
[0112] The second magnetic field detection data may include a first magnetic field component Vx2, a second magnetic field component Vy2, and a third magnetic field component Vz2.
[0113] Step S250: The controller determines a first change amount of the magnetic field detection data corresponding to a first duration based on the first magnetic field detection data and the second magnetic field detection data. The first duration is the duration between the first moment and the second moment.
[0114] The first variation of the magnetic field detection data may include a variation of the first magnetic field component △Vx1, a variation of the second magnetic field component △Vy1, and a variation of the third magnetic field component △Vz1. Among them, △Vx1 is equal to the difference between the first magnetic field component Vx1 and the first magnetic field component Vx2, △Vy1 is equal to the difference between the second magnetic field component Vy1 and the second magnetic field component Vy2, and △Vz1 is equal to the difference between the third magnetic field component Vz1 and the third magnetic field component Vz2.
[0115] Step S260: The controller obtains a first detection sub-result of whether the movement amount of the antenna component meets the standard based on the first change amount of the magnetic field detection data.
[0116] The controller compares the first change amount of the magnetic field detection data with the first preset threshold value to obtain a first detection sub-result of whether the movement amount of the antenna component meets the standard. The first preset threshold value may include a first preset threshold value, a second preset threshold value, and a third preset threshold value.
[0117] By comparing the variation ΔVx1 of the first magnetic field component in the first variation of the magnetic field detection data with the first preset threshold value, a first comparison result indicating that the variation ΔVx1 of the first magnetic field component is greater than / equal to / less than the first preset threshold value is obtained.
[0118] Similarly, by comparing the variation ΔVy1 of the second magnetic field component in the first variation of the magnetic field detection data with the second preset threshold value, a second comparison result indicating that the variation ΔVy1 of the second magnetic field component is greater than / equal to / less than the second preset threshold value is obtained.
[0119] Similarly, by comparing the variation ΔVz1 of the third magnetic field component in the first variation of the magnetic field detection data with the third preset threshold value, a third comparison result indicating that the variation ΔVz1 of the third magnetic field component is greater than / equal to / less than the third preset threshold value is obtained.
[0120] Exemplarily, the first comparison result indicates that the change amount △Vx1 of the first magnetic field component is less than the first preset threshold value, the second comparison result indicates that the change amount △Vy1 of the second magnetic field component is less than the second preset threshold value, and the third comparison result indicates that the change amount △Vz1 of the third magnetic field component is less than the third preset threshold value. When at least one of the above three situations occurs, it can be considered that the first change amount of the magnetic field detection data is less than the preset threshold value, and a first detection sub-result indicating that the movement amount of the antenna component does not meet the standard is obtained. Exemplarily, when all three situations occur, it can be considered that the first change amount of the magnetic field detection data is less than the first preset threshold value, and a first detection sub-result indicating that the movement amount of the antenna component does not meet the standard is obtained.
[0121] When none of the above three situations occurs, it can be considered that the first change amount of the magnetic field detection data is greater than or equal to the first preset threshold, and a first detection sub-result indicating that the movement amount of the antenna component meets the standard is obtained.
[0122] It should be noted that the antenna assembly can move in a circular direction. Taking the preset time required for the antenna assembly to rotate half a circle as an example, when the first time is less than the preset time, theoretically, the value of the first preset threshold value should be positively correlated with the first time. It can be understood that the longer the first time is, the larger the value of the first preset threshold value is. Similarly, the relationship between the value of the second preset threshold value and the first time, and the relationship between the value of the third preset threshold value and the first time can refer to the relationship between the value of the first preset threshold value and the first time.
[0123] When the first detection sub-result indicates that the movement amount of the antenna assembly meets the standard, the controller can output a detection result that the movement of the antenna assembly of the router is normal. After the second time period ends, the antenna assembly moves to the zero position and successfully completes the homing operation.
[0124] Step S270: When the first detection sub-result indicates that the movement amount of the antenna assembly does not meet the standard, the controller sends a stop signal to the driving mechanism.
[0125] When the first detection sub-result indicates that the movement amount of the antenna assembly does not meet the standard, the controller may consider that the rotation of the drive mechanism is blocked, causing the antenna assembly to stop moving. However, it is not currently possible to determine whether the antenna assembly stops moving because of an abnormality in the drive mechanism or because the antenna assembly stops moving after reaching the zero position and is blocked by a blocking member.
[0126] Therefore, in order to distinguish the above two situations, it is also necessary to determine whether the antenna assembly has reached the zero position. If it is subsequently determined that the antenna assembly has not reached the zero position, it can be determined that the antenna assembly has stopped moving because of an abnormality in the drive mechanism. If it is subsequently determined that the antenna assembly has reached the zero position, it can be determined that the antenna assembly has stopped moving because it was blocked by the blocking member after reaching the zero position.
[0127] In this way, in order to facilitate the subsequent determination of whether the antenna assembly has reached the zero position, the controller sends a stop signal to the drive mechanism. The stop signal can be a signal instructing the drive mechanism to stop driving the antenna assembly to move toward the zero position. Exemplarily, the stop signal can be a signal instructing the motor to stop rotating.
[0128] Step S280: When receiving the stop signal, the driving mechanism stops driving the antenna assembly to move.
[0129] When the driving mechanism receives the stop signal, the driving mechanism stops driving the antenna assembly to move toward the zero point position. Exemplarily, the motor stops rotating so that the antenna assembly stops moving toward the zero point position.
[0130] Among them, Figure 5 As shown, when the driving mechanism does not receive the stop signal, the end time of the second time period is the end time when the driving mechanism drives the antenna assembly to move to the zero point based on the homing signal. Figure 6 As shown, when the driving mechanism receives the stop signal, the end time of the second time period is the time when the driving mechanism stops driving the antenna assembly to move toward the zero position after receiving the stop signal.
[0131] Step S290: The controller obtains third magnetic field detection data after the antenna assembly stops moving.
[0132] The controller can obtain the magnetic field detection data output by the Hall sensor at the third moment as the third magnetic field detection data. The third moment refers to the moment when the driving mechanism stops driving the antenna assembly to move based on the stop signal.
[0133] The third magnetic field detection data may include a first magnetic field component Vx3, a second magnetic field component Vy3, and a third magnetic field component Vz3.
[0134] Step S291: The controller determines a second change in the magnetic field detection data based on the third magnetic field detection data and the preset zero-point magnetic field detection data.
[0135] The preset zero-point magnetic field detection data may include a first magnetic field component Vx0, a second magnetic field component Vy0, and a third magnetic field component Vz0.
[0136] The second variation of the magnetic field detection data may include a variation of the first magnetic field component △Vx2, a variation of the second magnetic field component △Vy2, and a variation of the third magnetic field component △Vz2. Among them, △Vx2 is equal to the difference between the first magnetic field component Vx3 and the first magnetic field component Vx0, △Vy2 is equal to the difference between the second magnetic field component Vy3 and the second magnetic field component Vy0, and △Vz2 is equal to the difference between the third magnetic field component Vz3 and the third magnetic field component Vz0.
[0137] Step S292: The controller obtains a second detection sub-result of whether the antenna assembly has reached the zero position based on the change in the magnetic field detection data.
[0138] The controller compares the change in the magnetic field detection data with the second preset threshold value to obtain a second detection sub-result of whether the antenna assembly has reached the zero position. The second preset threshold value includes a fourth preset threshold value, a fifth preset threshold value, and a sixth preset threshold value.
[0139] By comparing the variation ΔVx2 of the first magnetic field component in the second variation of the magnetic field detection data with the fourth preset threshold value, a fourth comparison result indicating that the variation ΔVx2 of the first magnetic field component is less than / equal to / greater than the fourth preset threshold value is obtained.
[0140] Similarly, by comparing the change ΔVy2 of the second magnetic field component in the second change of the magnetic field detection data with the fifth preset threshold value, a fifth comparison result indicating that the change ΔVy2 of the second magnetic field component is less than / equal to / greater than the fifth preset threshold value is obtained.
[0141] Similarly, by comparing the change ΔVz3 of the third magnetic field component in the second change of the magnetic field detection data with the sixth preset threshold value, a sixth comparison result indicating that the change ΔVz3 of the third magnetic field component is less than / equal to / greater than the sixth preset threshold value is obtained.
[0142] Exemplarily, the fourth comparison result indicates that the change amount △Vx2 of the first magnetic field component is greater than the fourth preset threshold value, the fifth comparison result indicates that the change amount △Vy2 of the second magnetic field component is greater than the fifth preset threshold value, and the sixth comparison result indicates that the change amount △Vz2 of the third magnetic field component is greater than the sixth preset threshold value. When at least one of the above three situations occurs, a second detection sub-result indicating that the antenna component has not reached the zero point position can be obtained. Exemplarily, when all three situations occur, it can be considered that the second change amount of the magnetic field detection data is greater than the second preset threshold value, and a second detection sub-result indicating that the antenna component has not reached the zero point position is obtained.
[0143] When none of the above three situations occurs, it can be considered that the second change in the magnetic field detection data is less than or equal to the second preset threshold, and a second detection sub-result indicating that the antenna component reaches the zero position is obtained.
[0144] Step S293: The controller outputs a detection result indicating whether the movement of the antenna assembly is abnormal based on the first detection sub-result and the second detection sub-result.
[0145] When the first detection sub-result indicates that the movement amount of the antenna assembly meets the standard, the controller may output a detection result indicating that the movement of the antenna assembly is normal.
[0146] When the first detection sub-result indicates that the movement amount of the antenna assembly does not meet the standard and the second detection sub-result indicates that the antenna assembly has reached the zero position, the controller can output a detection result indicating that the movement of the antenna assembly is normal. Because in this case, it can be considered that the movement amount of the antenna assembly does not meet the standard because the antenna assembly is blocked by the blocking member after reaching the zero position, which is a normal situation. In this case, the antenna assembly successfully completes the homing operation.
[0147] When the first detection sub-result indicates that the movement amount of the antenna assembly does not meet the standard and the second detection sub-result indicates that the antenna assembly has not reached the zero position, the controller can output a detection result indicating that the movement of the antenna assembly is abnormal. Because in this case, the movement amount of the antenna assembly does not meet the standard when there is no blocking member to block the movement of the antenna assembly, it can be considered that the antenna has moved abnormally. In this case, the antenna assembly homing operation fails.
[0148] like Figure 4 The detection method of the router shown, in the process of homing the position of the antenna assembly, detects whether the movement of the antenna assembly on the router is abnormal by using the magnetic field detection data obtained by cooperating the second magnetic device with the first magnetic device. Since the first magnetic device moves synchronously with the antenna assembly, the magnetic field detection data can truly reflect the movement of the antenna assembly, thereby improving the accuracy of detecting whether the movement of the antenna assembly is abnormal, and thus facilitating timely repair of the problem of abnormal movement of the antenna assembly, and improving the throughput of normal use of the router.
[0149] When the antenna assembly is reset, the drive mechanism can operate normally so that the antenna assembly moves normally. However, the drive mechanism may be abnormal after the reset operation. Therefore, the detection method of the router provided in the present application can also detect whether the movement of the antenna assembly is abnormal during the normal operation after the reset operation. Figure 7 As shown, the specific process is as follows:
[0150] Step S300: the controller controls the driving mechanism to drive the antenna assembly to move.
[0151] Step S310: When the controller detects that the driving mechanism operates normally, the controller acquires first magnetic field detection data at a first moment.
[0152] In some examples, the controller can determine whether the driving mechanism is operating normally by using dynamic magnetic detection data output by the Hall sensors in the first magnetic device and the second magnetic device. If the magnetic detection data output by the Hall sensors is constantly changing, it can be determined that the driving mechanism is operating normally.
[0153] In other examples, the controller can determine whether the drive mechanism is operating normally by whether the system on chip (SOC) continues to send a control signal to the drive mechanism. Exemplarily, the controller determines that the drive mechanism is operating normally when monitoring that the SOC continues to send a control signal to the drive mechanism.
[0154] The first moment is a moment during normal operation after the antenna assembly is reset.
[0155] When the magnetic field generated by the magnet moves synchronously with the antenna assembly, the Hall sensor dynamically senses the magnetic field and dynamically outputs magnetic field detection data. Therefore, the magnetic field detection data output by the Hall sensor can be obtained at the first moment as the first magnetic field detection data.
[0156] The first magnetic field detection data may include a first magnetic field component Vx1 , a second magnetic field component Vy1 , and a third magnetic field component Vz1 .
[0157] Step S320: the controller obtains second magnetic field detection data at the second moment.
[0158] The second moment is also a moment during normal operation after the antenna assembly is reset.
[0159] When the magnetic field generated by the magnet moves synchronously with the antenna assembly, the Hall sensor dynamically senses the magnetic field and dynamically outputs magnetic field detection data. Therefore, the magnetic field detection data output by the Hall sensor can be obtained at the second moment as the second magnetic field detection data.
[0160] The second magnetic field detection data may include a first magnetic field component Vx2, a second magnetic field component Vy2, and a third magnetic field component Vz2.
[0161] Step S330: The controller determines a first change amount of the magnetic field detection data corresponding to a first duration based on the first magnetic field detection data and the second magnetic field detection data. The first duration is the duration between the first moment and the second moment.
[0162] The first variation of the magnetic field detection data may include a variation of the first magnetic field component △Vx1, a variation of the second magnetic field component △Vy1, and a variation of the third magnetic field component △Vz1. Among them, △Vx1 is equal to the difference between the first magnetic field component Vx1 and the first magnetic field component Vx2, △Vy1 is equal to the difference between the second magnetic field component Vy1 and the second magnetic field component Vy2, and △Vz1 is equal to the difference between the third magnetic field component Vz1 and the third magnetic field component Vz2.
[0163] Step S340: The controller outputs a detection result indicating whether the movement of the antenna component in the router is abnormal based on the first change in the magnetic field detection data.
[0164] The controller compares the first change amount of the magnetic field detection data with the third preset threshold value to obtain a first detection sub-result of whether the movement amount of the antenna component meets the standard. The third preset threshold value may include a seventh preset threshold value, an eighth preset threshold value, and a ninth preset threshold value.
[0165] By comparing the variation ΔVx1 of the first magnetic field component in the first variation of the magnetic field detection data with the seventh preset threshold value, a seventh comparison result indicating that the variation ΔVx1 of the first magnetic field component is greater than / equal to / less than the seventh preset threshold value is obtained.
[0166] Similarly, by comparing the variation ΔVy1 of the second magnetic field component in the first variation of the magnetic field detection data with the eighth preset threshold value, an eighth comparison result indicating that the variation ΔVy1 of the second magnetic field component is greater than / equal to / less than the eighth preset threshold value is obtained.
[0167] Similarly, by comparing the change ΔVz1 of the third magnetic field component in the first change of the magnetic field detection data with the ninth preset threshold value, a ninth comparison result indicating that the change ΔVz1 of the third magnetic field component is greater than / equal to / less than the ninth preset threshold value is obtained.
[0168] The seventh preset threshold value may be substantially equal to the first preset threshold value, the eighth preset threshold value may be substantially equal to the second preset threshold value, and the ninth preset threshold value may be substantially equal to the third preset threshold value. It can be understood that the third preset threshold value may be interchangeable with the first preset threshold value.
[0169] Exemplarily, the seventh comparison result indicates that the change amount △Vx1 of the first magnetic field component is less than the seventh preset threshold value, the eighth comparison result indicates that the change amount △Vy1 of the second magnetic field component is less than the eighth preset threshold value, and the ninth comparison result indicates that the change amount △Vz1 of the third magnetic field component is less than the ninth preset threshold value. When at least one of the above three situations occurs, it can be considered that the first change amount of the magnetic field detection data is less than the third preset threshold value, and a detection result indicating abnormal movement of the antenna component is obtained. For example, when all three of the above situations occur, it can be considered that the first change amount of the magnetic field detection data is less than the third preset threshold value, and a detection result indicating abnormal movement of the antenna component is obtained.
[0170] When none of the above three situations occurs, it can be considered that the first change amount of the magnetic field detection data is greater than or equal to the third preset threshold, and a detection result indicating that the movement of the antenna component is normal is obtained.
[0171] Step S350: When the controller determines that the antenna assembly in the router moves abnormally, it sends a stop signal to the driving mechanism and reports fault information to the host computer.
[0172] When it is determined that the antenna assembly in the router moves abnormally, in order to avoid further damage caused by the continued abnormality of the driving mechanism, the controller sends a stop signal to the driving mechanism. The stop signal can be a signal instructing the driving mechanism to stop driving the antenna assembly to move. Exemplarily, the stop signal can be a signal instructing the motor to stop rotating.
[0173] In addition, the controller can report fault information to the host computer to inform the user of the router that the antenna assembly of the router moves abnormally, so as to remind the user to repair the router in time. The host computer can be a terminal device that controls the router, such as a mobile phone, a laptop computer, a tablet computer, etc. that controls the router, and the embodiments of the present application do not limit this.
[0174] like Figure 7 The detection method of the router shown, when the driving mechanism is operating normally and the antenna assembly is moving normally, detects whether the movement of the antenna assembly on the router is abnormal by using the magnetic field detection data obtained by the cooperation of the second magnetic device and the first magnetic device. Since the first magnetic device moves synchronously with the antenna assembly, the magnetic field detection data can truly reflect the movement of the antenna assembly, thereby improving the accuracy of detecting whether the movement of the antenna assembly is abnormal, and thus facilitating timely repair of the abnormal movement of the antenna assembly, thereby improving the throughput of the normal use of the router.
[0175] It should be noted that the abnormal movement of the antenna assembly may be caused by reasons such as motor stalling, so detecting whether the movement of the antenna assembly is abnormal can also be understood as detecting whether the motor in the driving mechanism is stalled.
[0176] In some schemes, the controller can determine whether the movement of the antenna assembly is abnormal by detecting the voltage change characteristic signal, the current change characteristic signal, etc. when the motor is running abnormally. However, the detection accuracy of whether the movement of the antenna assembly is abnormal is low. Moreover, in order to parse the voltage change characteristic signal and / or the current change characteristic signal, etc., the hardware circuit of the router needs to add hardware devices such as filtering circuits and analog to digital converter (ADC) chips, which are more expensive than the magnets and Hall sensors added in the embodiments of the present application.
[0177] The router and its detection method, and smart home system provided by the embodiments of the present application use low-cost magnets and Hall sensors. When the driving mechanism operates normally and drives the antenna assembly to move normally, the magnetic field detection data obtained by dynamically sensing the magnetic field generated by the magnet of the Hall sensor can be used to detect whether the movement of the antenna assembly on the router is abnormal. This can improve the accuracy of detecting whether the movement of the antenna assembly is abnormal at a relatively low cost, thereby facilitating timely repair of the problem of abnormal movement of the antenna assembly and improving the throughput of normal use of the router.
[0178] It should be noted that even the above-mentioned solutions used for comparison with the embodiments of the present application may be solutions that the applicant is aware of but has not disclosed.
[0179] Figure 8 A possible structural diagram of the router involved in the above embodiment is shown. Figure 8 The router 100 shown includes a controller 101 and a storage module 103 .
[0180] Among them, the controller 101 can be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The controller may include an application processor and a baseband processor. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The controller can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The storage module 103 can be a memory, such as a register.
[0181] Fig. 9 A possible structural schematic diagram of the controller involved in the above embodiment is shown.
[0182] The present application also provides a controller (eg, a system on a chip (SoC)), such as Fig. 9 As shown, the controller may include at least one processor 701 and at least one interface circuit 702. The processor 701 and the interface circuit 702 may be interconnected via a line. For example, the interface circuit 702 may be used to receive signals from other devices (e.g., a storage module of a router). For another example, the interface circuit 702 may be used to send signals to other devices (e.g., a processor 701 or an antenna assembly). Exemplarily, the interface circuit 702 may read instructions stored in a memory and send the instructions to the processor 701. When the instructions are executed by the processor 701, the router may execute the various steps in the above embodiments. Of course, the controller may also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0183] The embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above router, the router executes each function or step executed by the router in the above method embodiment.
[0184] The embodiment of the present application also provides a computer program product, when the computer program product is run on a computer, the computer executes each function or step executed by the router in the above method embodiment. For example, the computer may be the above router.
[0185] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0186] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0187] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0188] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0189] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0190] In the description of this specification, specific features, structures, materials or characteristics may be combined in an appropriate manner in any one or more embodiments or examples.
[0191] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A router, characterized in that: include: Antenna assembly; A driving mechanism, connected to the antenna assembly, driving the antenna assembly to move so as to adjust the orientation of the antenna assembly; A first magnetic device, connected to the antenna assembly and / or the driving mechanism, and moving together with the antenna assembly; A second magnetic device is arranged opposite to and spaced from the first magnetic device; wherein one of the first magnetic device and the second magnetic device generates a magnetic field, and the other dynamically senses the magnetic field and outputs magnetic field detection data; A controller is coupled to the first magnetic device or the second magnetic device to obtain first magnetic field detection data at a first moment and obtain second magnetic field detection data at a second moment; based on the first magnetic field detection data and the second magnetic field detection data, a change in the magnetic field detection data corresponding to a first time length is determined; based on the change in the magnetic field detection data, a detection result indicating whether the movement of the antenna component of the router is abnormal is output; wherein the first moment and the second moment are two different moments in the movement process of the antenna component, and the first time length is the interval between the first moment and the second moment.
2. The router according to claim 1, characterized in that: The driving mechanism comprises: a motor having an output shaft; A bracket connected to the output shaft of the motor and also connected to the antenna assembly respectively; The output shaft of the motor drives the bracket to rotate, and the bracket drives the antenna assembly to rotate.
3. The router according to claim 1, characterized in that: The first magnetic device includes a magnet, and the second magnetic device includes a Hall sensor; or, The first magnetic device includes a Hall sensor, and the second magnetic device includes a magnet.
4. The router according to any one of claims 1 to 3, characterized in that: The orthographic projection of the moving track of the first magnetic device on the plane where the second magnetic device is located at least partially overlaps with the second magnetic device.
5. The router according to any one of claims 1 to 3, characterized in that: The moving trajectory of the first magnetic device may include at least one of a circular trajectory, an elliptical trajectory, a rectangular trajectory, a regular polygonal trajectory, and a diamond trajectory.
6. The router according to any one of claims 1 to 3, characterized in that: The controller is also coupled to the driving mechanism to control the driving mechanism to drive the antenna assembly to move.
7. A method for detecting a router, characterized in that: Applied to the router according to any one of claims 1 to 6, the method comprises: In the process of the driving mechanism of the router driving the antenna assembly to move, first magnetic field detection data is acquired at a first moment, and second magnetic field detection data is acquired at a second moment; the first moment and the second moment are two different moments in the process of the antenna assembly moving; Based on the first magnetic field detection data and the second magnetic field detection data, determining a change amount of the magnetic field detection data corresponding to a first duration, wherein the first duration is an interval duration between the first moment and the second moment; Based on the amount of change in the magnetic field detection data, a detection result indicating whether the movement of the antenna component of the router is abnormal is output.
8. The method according to claim 7, characterized in that The output indicates a detection result of whether the movement of the antenna assembly of the router is abnormal, including: When the change amount of the magnetic field detection data is less than a preset threshold, outputting a detection result indicating that the antenna assembly of the router moves abnormally; When the variation of the magnetic field detection data is greater than or equal to the preset threshold, a detection result indicating that the antenna assembly of the router moves normally is output.
9. The method according to claim 7, characterized in that: Before the driving mechanism of the router drives the antenna assembly to move, the method further includes: Sending a homing signal to a driving mechanism of the router to control the driving mechanism to drive the antenna assembly to move to a preset zero position within a second time period; The first moment and the second moment are two moments in the second time period respectively.
10. The method according to claim 9, characterized in that The method further comprises: Acquire third magnetic field detection data at the end of the second time period; Based on the third magnetic field detection data and the preset zero-point magnetic field data, a detection sub-result indicating whether the antenna assembly of the router reaches the zero-point position is output.
11. The method according to claim 10, characterized in that The output indicates a detection result of whether the movement of the antenna assembly of the router is abnormal, including: When the change in the magnetic field detection data is less than a preset threshold and the detection sub-result indicates that the antenna assembly of the router has not reached the zero position, outputting a detection result indicating that the antenna assembly of the router moves abnormally; or, When the change in the magnetic field detection data is less than the preset threshold and the detection sub-result indicates that the antenna assembly of the router has reached the zero position, outputting a detection result indicating that the antenna assembly of the router moves normally; or, When the variation of the magnetic field detection data is greater than or equal to the preset threshold, a detection result indicating that the antenna assembly of the router moves normally is output.
12. The method according to any one of claims 7 to 11, characterized in that: The magnetic field detection data includes a first magnetic field component of the magnetic field in a first direction, a second magnetic field component of the magnetic field in a second direction, and a third magnetic field component of the magnetic field in a third direction, the first direction intersects the two directions, and the third direction intersects a plane where the first direction and the second direction are located; The determining the change amount of the magnetic field detection data corresponding to the first duration includes: Determine a change amount of the first magnetic field component of the magnetic field based on the first magnetic field component in the first magnetic field detection data and the first magnetic field component in the second magnetic field detection data; determining a change amount of the second magnetic field component of the magnetic field based on the second magnetic field component in the first magnetic field detection data and the second magnetic field component in the second magnetic field detection data; determining a change amount of the third magnetic field component of the magnetic field based on the third magnetic field component in the first magnetic field detection data and the third magnetic field component in the second magnetic field detection data; The output indicates a detection result of whether the movement of the antenna assembly in the router is abnormal, including: When at least one of the following conditions holds true: the change in the first magnetic field component is less than a first threshold value, the change in the second magnetic field component is less than a second threshold value, and the change in the third magnetic field component is less than a third threshold value, a detection result indicating abnormal movement of the antenna component in the router is output.
13. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on a router, cause the router to execute the method according to any one of claims 7 to 12.
14. A smart home system, characterized in that: comprising a wireless communication device and a router as claimed in any one of claims 1 to 6; The wireless communication device includes at least one of a mobile phone, a laptop computer, a tablet computer, and a television, and the wireless communication device performs wireless communication with the router.
Citation Information
Patent Citations
Router assembly and wireless network signal strength adjusting method thereof
CN109450802A
Magnetic encoder and detection method thereof
CN114216486A
Monitoring method, device, equipment and system of base station antenna and storage medium
CN114710803A
OTG function control method and device, computer equipment and storage medium
CN114996187A
Network device
US20220328959A1
