Antenna channel test method and device, electronic equipment and storage medium
By monitoring the connection events between the antenna harness and the port of the test device, the antenna channel is automatically switched and tested, which solves the problems of improper installation and interface wear caused by manual switching in the existing technology, and improves test efficiency and device life.
Patent Information
- Application Number
- CN202511210340.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-27
- Publication Date
- 2025-10-17
AI Technical Summary
The existing antenna channel test device needs to test the performance indicators of four groups of antennas one by one. Manual switching can easily lead to improper installation and interface wear, and the operation is complicated and inefficient.
By monitoring the port connection events between the antenna harness and the test device, the antenna channel switching instruction is determined according to the channel switching truth table, the antenna channel to be tested is automatically turned on and connection detection and port status detection are performed to ensure that the test start instruction is issued after the connection is successful.
It reduces the number of manual plugging and unplugging times, reduces the risk of interface wear, improves operational convenience and test efficiency, and extends the service life of the test device.
Smart Images

Figure CN120811508A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application generally relates to the technical field of device testing. More particularly, the present application relates to an antenna channel testing method, apparatus, electronic device and storage medium. BACKGROUND
[0002] A DTV (Digital Television) generally has four groups of antenna channel interfaces for covering different frequency bands / directions, and facilitating antenna performance testing. However, in actual testing, the existing testing apparatus needs to test the performance indicators of the four groups of antennas in sequence, and during this period, the testing apparatus needs to be moved constantly, and manual switching is prone to cause the antennas to be not installed in place, and manual plugging and unplugging of the antennas multiple times is prone to cause the pins to be offset, and thus the interfaces of the testing apparatus are prone to be rapidly worn out.
[0003] Therefore, there is an urgent need to provide an antenna channel testing method to improve the operation convenience of the tester, improve the testing efficiency, and prolong the service life of the interfaces of the testing apparatus. SUMMARY
[0004] To at least solve one or more of the above-mentioned technical problems, the present application provides an antenna channel testing method, apparatus, electronic device and storage medium in various aspects. The antenna channel testing method can improve the operation convenience of the tester, improve the testing efficiency, and prolong the service life of the interfaces of the testing apparatus.
[0005] In a first aspect, the present application provides an antenna channel testing method, comprising: monitoring a port connection event between an antenna harness and a testing apparatus; if the port connection event is monitored, determining an antenna channel switching instruction according to a channel switching truth table; in response to the antenna channel switching instruction, turning on a to-be-tested antenna channel corresponding to the antenna channel switching instruction, and performing antenna on detection and testing port state detection on the to-be-tested antenna channel; and in response to detection pass information of the antenna on detection and the port state detection, issuing a testing start instruction to the testing apparatus.
[0006] In some embodiments, the antenna on detection on the to-be-tested antenna channel comprises: acquiring an antenna carrier-to-noise ratio of the to-be-tested antenna channel; and determining whether the antenna on detection passes based on the antenna carrier-to-noise ratio and a preset carrier-to-noise ratio threshold.
[0007] In some embodiments, determining whether the antenna on detection passes based on the antenna carrier-to-noise ratio and the preset carrier-to-noise ratio threshold comprises: if the antenna carrier-to-noise ratio is greater than the preset carrier-to-noise ratio threshold, determining that the antenna on detection passes.
[0008] In some embodiments, the test port state detection on the antenna channel to be detected comprises: obtaining an actual channel number of the antenna channel to be detected; determining a preset channel number corresponding to the antenna channel switching instruction according to the switching instruction truth table; determining whether the test port state detection passes based on the actual channel number and the preset channel number corresponding to the antenna channel switching instruction.
[0009] In some embodiments, the determination of whether the test port state detection passes based on the actual channel number and the preset channel number corresponding to the antenna channel switching instruction comprises: if the actual channel number is consistent with the preset channel number corresponding to the antenna channel switching instruction, it is determined that the test port state detection passes.
[0010] In some embodiments, before the test start instruction is sent to the test device, the method further comprises: in response to the detection pass information of the antenna on detection and the port state detection, performing again the steps of performing the antenna on detection and the test port state detection on the antenna channel to be detected.
[0011] In some embodiments, after the test start instruction is sent to the test device, the method further comprises: in response to the test success information fed back by the test device, updating the antenna channel switching instruction according to the channel switching truth table to obtain an updated switching instruction; in response to the updated switching instruction, performing the antenna on detection and the test port state detection on the antenna channel to be detected corresponding to the updated switching instruction; and in response to the detection pass information of the antenna on detection and the port state detection, sending the test start instruction to the test device.
[0012] In some embodiments, after the test start instruction is sent to the test device, the method further comprises: in response to the test failure information fed back by the test device, generating antenna channel fault warning information.
[0013] In a second aspect, the present application provides an antenna channel test device, comprising: a tool jig body 1 and a limiting baffle 2; the limiting baffle 2 is fixed on the side wall of the tool jig body 1; the limiting baffle 2 is provided with a wire harness interface 3 of an antenna wire harness, and the wire harness interface 3 is used for connecting with a port of a test device 6; the tool jig body 1 is provided with a control board 4 and a channel switching switch 5 in the inner cavity; the channel switching switch 5 is provided with a signal input end, and is provided with a first signal output end, a second signal output end, a third signal output end and a fourth signal output end connected with the wire harness interface; the control board 4 is connected with a first control end and a second control end on the channel switching switch 5.
[0014] In some embodiments, the channel switching switch is further provided with a power terminal; the first control terminal and the power terminal are connected in series with a first voltage stabilizing resistor and a second voltage stabilizing resistor; a first node between the first voltage stabilizing resistor and the second voltage stabilizing resistor is connected with the control panel; the second control terminal and the power terminal are connected in series with a third voltage stabilizing resistor and a fourth voltage stabilizing resistor; a second node between the third voltage stabilizing resistor and the fourth voltage stabilizing resistor is connected with the control panel.
[0015] In a third aspect, the present application provides an electronic device, comprising: a processor; and a memory having program code for antenna channel switching stored thereon, which, when executed by the processor, causes the electronic device to implement the method as described above.
[0016] In a fourth aspect, the present application provides a non-transitory machine-readable storage medium having program code for antenna channel switching stored thereon, which, when executed by a processor, can implement the method as described above.
[0017] The technical solutions provided by the present application can include the following beneficial effects: The antenna channel test method provided by the present application can monitor the port connection event between the antenna harness and the test device, and if the port connection event is monitored, the antenna channel switching instruction can be determined according to the channel switching truth table, and then the antenna channel to be detected corresponding to the antenna channel switching instruction can be turned on in response to the antenna channel switching instruction, and the antenna channel to be detected can be subjected to antenna on detection and test port state detection, so as to ensure the successful connection of the antenna channel.
[0018] Further, the present application can send a test start instruction to the test device in response to the detection pass information of the antenna on detection and the port state detection, so as to avoid the need for manual switching when testing the performance indicators of each antenna channel of the antenna harness in sequence, reduce the plugging frequency of the test device, reduce the risk of rapid wear of the test device interface, and prolong the service life. At the same time, the operation complexity of the test personnel is reduced, and the performance test efficiency is improved.
[0019] In general, the present application can improve the operation convenience of the test personnel, improve the test efficiency, and prolong the service life of the test device interface. BRIEF DESCRIPTION OF DRAWINGS
[0020] The above and other objects, features and advantages of the exemplary embodiments of the present application will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which several embodiments of the present application are shown by way of example, and wherein like or corresponding elements show like or corresponding parts, by referring to which; and in which: Figure 1An exemplary flowchart of an antenna channel test method is shown according to some embodiments of the present application. Figure 2 An exemplary flowchart of an antenna channel test method is shown according to some embodiments of the present application. Figure 3 A structural schematic diagram of an antenna channel test device is shown according to embodiments of the present application. Figure 4 An electrical block diagram of an antenna channel test device is shown according to embodiments of the present application. Figure 5 A structural schematic diagram of an electronic device is shown according to embodiments of the present application. DETAILED DESCRIPTION
[0021] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. In order to make the description simple and clear, the same reference signs can be repeated in the drawings to indicate the corresponding or similar elements, if appropriate. In addition, many specific details are described in the present application in order to provide a thorough understanding of the embodiments described herein. However, those skilled in the art will understand that the embodiments described herein can be practiced without these specific details. In other cases, well-known methods, procedures and components are not described in detail so as not to obscure the embodiments described herein. Moreover, the description should not be regarded as limiting the scope of the embodiments described herein. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts fall within the scope of protection of the present application.
[0022] It should be understood that the possible terms "first" or "second" and the like in the claims, the specification and the drawings of the present application are used to distinguish different objects, but are not used to describe a specific order. The terms "comprise" and "include" used in the specification and claims of the present application indicate the presence of the described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or sets thereof.
[0023] It should also be understood that the terms used in the specification of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and claims of the present application, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms. It should be further understood that the term "and / or" used in the specification and claims of the present application means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0024] As used in the specification and claims, the term "if' can be interpreted as meaning "when," or "upon," or "in response to a determination," or "in response to a detection" depending on the context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" can be interpreted as meaning "upon determining," or "in response to a determining," or "upon detecting [the described condition or event]," or "in response to a detecting [the described condition or event]," depending on the context.
[0025] DTV (Digital Television) generally has 4 groups of antenna channel interfaces for covering different frequency bands / directions, and facilitating antenna performance testing. However, in actual testing process, the existing testing device needs to test the performance indicators of the 4 groups of antennas in sequence, and during this period, the testing device with large volume needs to be moved constantly, and manual switching is prone to the phenomenon that the antenna and the testing device are not installed in place, and manual multiple plugging and unplugging of the antenna is also prone to the phenomenon that the pins are offset, which is prone to cause rapid wear of the interface of the testing device.
[0026] Therefore, the present application provides an antenna channel testing method, so as to improve the operation convenience of the tester, improve the testing efficiency, and prolong the service life of the interface of the testing device.
[0027] The specific embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0028] Figure 1 An exemplary flowchart of the antenna channel testing method of some embodiments of the present application is shown, please refer to Figure 1 The antenna channel testing method shown in the embodiments of the present application can include: In step S101, a port connection event between the antenna harness and the testing device is monitored. In the embodiments of the present application, the port connection event refers to the event that the harness interface of the antenna harness is connected with the port of the testing device. Wherein, the antenna can be a DTV (Digital Television) antenna, and the 4 groups of antenna channels thereof are VHF-L (47~88MHz), VHF-H (174~230 MHz), UHF (470~862 MHz) and L-Band (1.45~1.49 GHz). VHF-L is used to receive VHF (Very high frequency) low frequency band digital television signal, VHF-H is used to receive VHF high frequency band digital television signal, UHF is used to receive UHF (Ultra High Frequency) digital television signal, and L-Band is used for satellite ground point, mobile television, and second UHF diversity.
[0029] In the embodiments of the present application, the four groups of DVT antennas can be fixed together with a male connector (a connector with a center pin or a latch used to plug into a corresponding female connector to complete mechanical locking and electrical conduction) to avoid the dispersion of the antennas, thereby forming an antenna harness. Further, a FAKRA (Fachkreis Automobil, a standardized coaxial connector system designed specifically for automotive and high-frequency radio frequency scenarios) / SMB (SubMiniature version B Plug, a push-in (snap-on) miniature coaxial radio frequency connector) plug can be exemplarily used to realize the connection between the antenna harness and the test device, wherein a micro switch can be arranged in the plug, when the plug is fully inserted, the micro switch is closed, and the DIO (Digital I / O, digital input / output) reads "0"; when the plug is loose or the antenna harness is not connected to the test device, the DIO reads "1", thereby realizing the monitoring of the port connection event between the antenna harness and the test device.
[0030] In step S102, if the port connection event is monitored, the antenna channel switching instruction is determined according to the channel switching truth table. In the embodiments of the present application, a channel switching truth table can be preset, so that the controller can determine the antenna channel switching instruction according to the truth value corresponding to each antenna channel in the channel switching truth table. Exemplarily, assuming that the channel switching truth table is "00" corresponding to ANT1, "01" corresponding to ANT2, "10" corresponding to ANT3, and "11" corresponding to ANT4 in turn, when the port connection event is monitored, the first truth value in the channel switching truth table can be determined as the current antenna channel switching instruction, that is, the current antenna channel switching instruction is "00". After the test of the antenna channel corresponding to ANT1 is successful, the antenna channel switching instruction can be switched to the next truth value "01" of "00" according to the channel switching truth table, thereby continuing to test the antenna channel corresponding to ANT2.
[0031] It can be understood that the above description of the channel switching truth table setting is exemplary, and in actual application, the setting method of the channel switching truth table needs to be determined according to the actual application, and the present application does not make any limitation in this aspect.
[0032] In step S103, in response to the antenna channel switching instruction, the antenna channel to be tested corresponding to the antenna channel switching instruction is turned on, and an antenna connection test and a test port status test are performed on the antenna channel to be tested. In the embodiment of the present application, the antenna channel to be tested refers to the antenna channel currently switched to. Assuming that the current antenna channel switching instruction is "00", the antenna channel to be tested corresponding to the antenna channel switching instruction is the antenna channel corresponding to ANT1. At this time, ANT1 is in the on state, so that the connection between the antenna channel corresponding to ANT1 and the test device can be connected. In addition, to ensure the accuracy of the test, it is necessary to perform an antenna connection test and a test port status test before the test to ensure that the antenna channel is successfully connected and the port connection of the test device is correct.
[0033] In step S104, in response to the antenna connection test and port status test pass information, a test start instruction is issued to the test device. In this embodiment of the present application, the test pass information is generated only after the antenna connection test and port status test have both passed. At this time, the test start instruction can be issued to the test device, so that the test device can respond to the test start instruction to perform a performance test on the antenna channel to be tested.
[0034] The embodiment of the present application monitors the port connection event between the antenna harness and the test device. If a port connection event is detected, the antenna channel switching instruction is determined according to the channel switching truth table. Then, in response to the antenna channel switching instruction, the antenna channel to be detected corresponding to the antenna channel switching instruction is turned on, and the antenna connection detection and test port status detection are performed on the antenna channel to be detected to ensure that the antenna channel connection is successful. Furthermore, the present application can send a test start instruction to the test device in response to the detection pass information of the antenna connection detection and the port status detection, thereby avoiding the need for manual switching when performing performance index tests on each antenna channel of the antenna harness in sequence, reducing the number of plug-in and unplugging times of the test device, reducing the risk of rapid wear of the test device interface, and extending the service life. At the same time, it reduces the complexity of the tester's operation and improves the efficiency of performance testing.
[0035] In general, this application can improve the operating convenience of testers, improve testing efficiency, and extend the service life of the test device interface.
[0036] In some embodiments, the detection process of antenna connection detection and test port status detection can be further designed. Figure 2 The detection process of antenna connection detection and test port status detection is described in detail. Figure 2 An exemplary flow chart showing antenna channel testing methods according to other embodiments of the present application is shown. Figure 2 , the antenna channel testing method shown in the embodiment of the present application may include: In step S201, antenna on detection is performed on the antenna channel to be detected. In the embodiment of the present application, when receiving the antenna channel switching instruction, the controller (such as MCU) can send a query program code to query the antenna carrier-to-noise ratio (CNR, the ratio of carrier power (C) and noise power (N)) of the antenna channel to be detected, and then determine whether the antenna on detection passes based on the antenna carrier-to-noise ratio and the preset carrier-to-noise ratio threshold. The preset carrier-to-noise ratio threshold can be set to 17 dBm. It can be understood that the preset carrier-to-noise ratio threshold can be set in various ways, and in actual application, the preset carrier-to-noise ratio threshold needs to be determined according to the actual application, and the present application does not make any limitation in this regard. Further, in the embodiment of the present application, if the antenna carrier-to-noise ratio is greater than the preset carrier-to-noise ratio threshold, it is determined that the antenna on detection passes.
[0037] In step S202, test port state detection is performed on the antenna channel to be detected. In the embodiment of the present application, the actual channel number of the antenna channel to be detected can be obtained first. Specifically, the signal strength of each antenna channel can be detected, and then the actual channel number corresponding to the antenna channel with a signal strength greater than 30 dBm can be read. Further, the preset channel number corresponding to the antenna channel switching instruction can be determined according to the switching instruction truth table, such as "00" corresponding to ANT1, "01" corresponding to ANT2, "10" corresponding to ANT3, and "11" corresponding to ANT4 in the switching instruction truth table. The first bit in the truth value is the value of the first control terminal CTL_A, and the second bit in the truth value is the value of the second control terminal CTL_B. Then, whether the test port state detection passes can be determined based on the actual channel number and the preset channel number corresponding to the antenna channel switching instruction. In the embodiment of the present application, if the actual channel number is consistent with the preset channel number corresponding to the antenna channel switching instruction, it is determined that the test port state detection passes.
[0038] It can be understood that step S201 and step S202 can be executed simultaneously or sequentially, and the execution order between step S201 and step S202 is not strictly limited in the present application.
[0039] In step S203, in response to the detection pass information of the antenna on detection and the port state detection, a test start instruction is sent to the test device. In some application scenarios, in order to ensure the accuracy of the antenna on detection and the port state detection, when receiving the detection pass information of the antenna on detection and the port state detection, the antenna on detection and the port state detection on the antenna channel to be detected can be performed again in response to the detection pass information of the antenna on detection and the port state detection. When the antenna on detection and the port state detection both pass again, the test start instruction is sent to the test device.
[0040] In an embodiment of the present application, after issuing a test start command to the test device, the antenna channel switching command can be updated according to the channel switching truth table in response to test success information fed back by the test device, resulting in an updated switching command. Exemplarily, the update can be performed based on the order of truth values in the channel switching truth value. For example, after the antenna channel corresponding to ANT1 is tested successfully, the antenna channel switching command can be switched to the next truth value of "00," "01," according to the channel switching truth table, thereby continuing to test the antenna channel corresponding to ANT2. Furthermore, in response to the updated switching command, the antenna channel to be tested corresponding to the updated switching command undergoes antenna connection testing and test port status testing. In response to the antenna connection testing and port status testing passing, a test start command is issued to the test device. Furthermore, in response to test failure information fed back by the test device, an antenna channel failure warning message is generated. Exemplarily, if the test device reports that the antenna channel corresponding to ANT1 has failed testing, the system will generate a warning message indicating a failure in the antenna channel corresponding to ANT1, prompting the tester to address the issue.
[0041] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides an antenna channel testing device and corresponding embodiments. Figure 3 The figure shows a schematic structural diagram of an antenna channel testing device according to an embodiment of the present application. Figure 4 The electrical block diagram of the antenna channel test device according to the embodiment of the present application is shown in FIG. Figure 3 and Figure 4 , the antenna channel testing device shown in the embodiment of the present application may include: The fixture body 1 and the limit baffle 2 are fixed to the side wall of the fixture body 1. The limit baffle 2 is provided with a harness interface 3 for the antenna harness, which is used to connect to the port of the test device 6. The limit baffle 2 can fix the harness interface 3 to prevent unnecessary wear during the insertion and removal of the test device.
[0042] Further, the inner cavity of the tool jig body 1 is provided with a control panel 4 (which can be an MCU, Microcontroller Unit) and a channel switching switch 5. The channel switching switch 5 can be a four-channel radio frequency switch, and the channel switching switch 5 is provided with a signal input end Input for receiving a DTV signal from a DTV signal generator, and a first signal output end ANT1, a second signal output end ANT2, a third signal output end ANT3, and a fourth signal output end ANT4 connected with the wire harness interface 3 (internal wiring connection of the tool jig body 1), and relays can be arranged at the first signal output end ANT1, the second signal output end ANT2, the third signal output end ANT3, and the fourth signal output end ANT4 to control the opening and closing thereof. In addition, the control panel 4 is connected with a first control end CTL_A and a second control end CTL_B of the channel switching switch 5, for the control panel 4 to send switching instructions to the channel switching switch 5.
[0043] For example, when the value of CTL_A is 0 and the value of CTL_B is 0, the first signal output end ANT1 is open, and the other signal output ends are closed; when the value of CTL_A is 0 and the value of CTL_B is 1, the second signal output end ANT2 is open, and the other signal output ends are closed; when the value of CTL_A is 1 and the value of CTL_B is 0, the third signal output end ANT3 is open, and the other signal output ends are closed; and when the value of CTL_A is 1 and the value of CTL_B is 1, the fourth signal output end ANT4 is open, and the other signal output ends are closed.
[0044] In some embodiments, in order to stably control the channel switching switch 5, the channel switching switch 5 is further provided with a power terminal VCC, a first voltage stabilizing resistor R1 and a second voltage stabilizing resistor R2 are connected in series between the power terminal VCC and the first control end CTL_A, and a first node between the first voltage stabilizing resistor R1 and the second voltage stabilizing resistor R2 is connected with the control panel. A third voltage stabilizing resistor R3 and a fourth voltage stabilizing resistor R4 are connected in series between the power terminal VCC and the second control end CTL_B, and a second node between the third voltage stabilizing resistor R3 and the fourth voltage stabilizing resistor R4 is connected with the control panel.
[0045] Under the action of such a device, the tester only needs to confirm that the current channel picture is played normally and then click the confirmation button of the ATE tool to test according to the process, without manually plugging in and out the switching test device, thereby reducing the operation difficulty of the tester, improving the test efficiency, and reducing the error during the connection.
[0046] Corresponding to the foregoing application function implementation method embodiments, the present application also provides an electronic device for executing an antenna channel test method and corresponding embodiments.
[0047] Figure 5 A block diagram illustrating a hardware configuration of an electronic device 500 in which an antenna channel test method according to an embodiment of the present application can be implemented is shown. As shown in the drawing, Figure 5 the electronic device 500 can include a processor 510 and a memory 520. In the electronic device 500, Figure 5 In the electronic device 500, only elements related to the present embodiment are shown. Thus, it will be apparent to those skilled in the art that the electronic device 500 can further include common elements different from those shown in the drawing. For example, a fixed-point operator. Figure 5
[0048] The electronic device 500 can correspond to a computing device having various processing functions, for example, functions for generating a neural network, training or learning a neural network, quantizing a floating-point neural network into a fixed-point neural network, or retraining a neural network. For example, the electronic device 500 can be implemented as various types of devices, for example, a personal computer (PC), a server device, a mobile device, etc.
[0049] The processor 510 controls all functions of the electronic device 500. For example, the processor 510 controls all functions of the electronic device 500 by executing programs stored in the memory 520 on the electronic device 500. The processor 510 can be implemented by a central processing unit (CPU), a graphics processing unit (GPU), an application processor (AP), an artificial intelligence processor chip (IPU), etc. provided in the electronic device 500. However, the present application is not limited thereto.
[0050] In some embodiments, the processor 510 can include an input / output (I / O) unit 511 and a computing unit 512. The I / O unit 511 can be configured to receive various data, such as the monitoring results of the port connection events between the antenna harness and the testing device. Illustratively, if a port connection event is monitored, the computing unit 512 can be configured to determine an antenna channel switching instruction according to a channel switching truth table; in response to the antenna channel switching instruction, turn on a to-be-tested antenna channel corresponding to the antenna channel switching instruction and perform antenna on detection and testing port state detection on the to-be-tested antenna channel; and in response to the detection pass information of the antenna on detection and the port state detection, send a testing start instruction to the testing device. The testing start instruction can be output by the I / O unit 511, for example. The output data can be provided to the memory 520 for reading and use by other devices (not shown) or directly provided to other devices for use. The memory 520 is hardware for storing various data processed in the electronic device 500. For example, the memory 520 can store processed data and to-be-processed data in the electronic device 500. The memory 520 can store a data set involved in the antenna channel testing method process that has been processed or is to be processed by the processor 510, such as the monitoring results of the port connection events between the antenna harness and the testing device. In addition, the memory 520 can store applications, drivers, and the like to be driven by the electronic device 500. For example, the memory 520 can store various programs related to the antenna channel testing method to be executed by the processor 510. The memory 520 can be a DRAM, but the present application is not limited thereto. The memory 520 can include at least one of a volatile memory or a non-volatile memory. The non-volatile memory can include a read only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, a phase change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a ferroelectric RAM (FRAM), and the like. The volatile memory can include a dynamic RAM (DRAM), a static RAM (SRAM), a synchronous DRAM (SDRAM), a PRAM, an MRAM, an RRAM, a ferroelectric RAM (FeRAM), and the like. In embodiments, the memory 520 can include at least one of a hard disk drive (HDD), a solid state drive (SSD), a compact flash (CF), a secure digital (SD) card, a micro secure digital (Micro-SD) card, a mini secure digital (Mini-SD) card, an extreme digital (xD) card, a cache, or a memory stick.
[0051] In summary, the specific functions of the memory 520 and the processor 510 of the electronic device 500 provided by the embodiments of the present specification can be explained in contrast to the foregoing embodiments of the present specification and can achieve the technical effects of the foregoing embodiments, and thus will not be described herein.
[0052] In the present embodiment, the processor 510 can be implemented in any appropriate manner. For example, the processor 510 can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc.
[0053] It should also be understood that any module, unit, component, server, computer, terminal or device exemplified herein that executes instructions can include or otherwise have access to computer readable media, such as storage media, computer storage media, or data storage devices (removable and / or non-removable) such as, for example, magnetic disks, optical disks, or tape. Computer storage media can include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data.
[0054] While several embodiments of the present application have been shown and described herein, it is to be understood that all these embodiments are merely illustrative of, and not restrictive in, the scope of the present application. Numerous changes, modifications and substitutions can occur to one skilled in the art without departing from the spirit and scope of the present application. It should be understood that various alternatives to the embodiments of the present application described herein can be employed in practicing the present application. The appended claims are intended to cover all such alternatives and equivalents.
Claims
1. An antenna channel testing method, characterized in that: include: Monitor port connection events between the antenna harness and the test fixture; If the port connection event is detected, determining an antenna channel switching instruction according to a channel switching truth table; In response to the antenna channel switching instruction, turning on the antenna channel to be detected corresponding to the antenna channel switching instruction, and performing antenna connection detection and test port status detection on the antenna channel to be detected; In response to the detection pass information of the antenna connection detection and the port status detection, a test start instruction is issued to the test device.
2. The antenna channel testing method according to claim 1, characterized in that: The performing antenna connection detection on the antenna channel to be detected includes: Obtaining the antenna carrier-to-noise ratio of the antenna channel to be detected; Whether the antenna connection detection passes is determined based on the antenna carrier-to-noise ratio and a preset carrier-to-noise ratio threshold.
3. The antenna channel testing method according to claim 2, characterized in that: The determining whether the antenna connection detection is passed based on the antenna carrier-to-noise ratio and a preset carrier-to-noise ratio threshold comprises: If the antenna carrier-to-noise ratio is greater than the preset carrier-to-noise ratio threshold, it is determined that the antenna connection test has passed.
4. The antenna channel testing method according to claim 1, wherein: The test port status detection of the antenna channel to be detected includes: Obtaining the actual channel number of the antenna channel to be detected; Determine the preset channel number corresponding to the antenna channel switching instruction according to the switching instruction truth table; Determine whether the test port status detection passes based on the actual channel number and a preset channel number corresponding to the antenna channel switching instruction.
5. The antenna channel testing method according to claim 4, characterized in that: The determining whether the test port status detection is passed based on the actual channel number and the preset channel number corresponding to the antenna channel switching instruction includes: If the actual channel number is consistent with the preset channel number corresponding to the antenna channel switching instruction, it is determined that the test port status detection has passed.
6. The antenna channel testing method according to claim 1, wherein: Before issuing the test start instruction to the test device, the method further includes: In response to the detection pass information of the antenna connection detection and the port status detection, the steps of performing antenna connection detection and test port status detection on the antenna channel to be detected are performed again.
7. The antenna channel testing method according to claim 1, wherein: After issuing the test start instruction to the test device, the method further includes: In response to test success information fed back by the test device, updating the antenna channel switching instruction according to the channel switching truth table to obtain an updated switching instruction; In response to the update switching instruction, the antenna channel to be detected corresponding to the update switching instruction performs antenna connection detection and test port status detection; In response to the detection pass information of the antenna connection detection and the port status detection, a test start instruction is issued to the test device.
8. The antenna channel testing method according to claim 1, wherein: After issuing the test start instruction to the test device, the method further includes: In response to the test failure information fed back by the test device, antenna channel bad warning information is generated.
9. An antenna channel testing device, characterized in that: include: A fixture body (1) and a limit baffle (2); The limit baffle (2) is fixed on the side wall of the tool fixture body (1); a wire harness interface (3) of an antenna wire harness is provided on the limit baffle (2), and the wire harness interface (3) is used to connect to a port of a test device (6); A control panel (4) and a channel switching switch (5) are provided in the inner cavity of the tool fixture body (1); The channel switching switch (5) is provided with a signal input terminal, and is provided with a first signal output terminal, a second signal output terminal, a third signal output terminal, and a fourth signal output terminal connected to the wiring harness interface; The control board (4) is connected to the first control end and the second control end on the channel switching switch (5).
10. The antenna channel testing device according to claim 9, characterized in that: The channel switching switch is also provided with a power terminal; A first voltage-stabilizing resistor and a second voltage-stabilizing resistor are connected in series between the power terminal and the first control terminal; A first node between the first voltage-stabilizing resistor and the second voltage-stabilizing resistor is connected to the control board; A third voltage-stabilizing resistor and a fourth voltage-stabilizing resistor are connected in series between the power terminal and the second control terminal; A second node between the third stabilizing resistor and the fourth stabilizing resistor is connected to the control board.
11. An electronic device, characterized in that: include: processor; as well as A memory storing a program code for antenna channel switching, wherein when the program code is executed by the processor, the electronic device implements the method according to any one of claims 1 to 8.
12. A non-transitory machine-readable storage medium having stored thereon a program code for antenna channel switching, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 8 is implemented.