CN114978364B - Lora module testing method and device, electronic equipment and storage medium - Google Patents

Lora module testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114978364B
CN114978364B CN202210905780.9A CN202210905780A CN114978364B CN 114978364 B CN114978364 B CN 114978364B CN 202210905780 A CN202210905780 A CN 202210905780A CN 114978364 B CN114978364 B CN 114978364B
Authority
CN
China
Prior art keywords
lora module
attenuator
signal
power
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210905780.9A
Other languages
Chinese (zh)
Other versions
CN114978364A (en
Inventor
刘俊
赵洪鹏
陈晓辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Easylinkin Technology Co ltd
Original Assignee
Wuhan Easylinkin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Easylinkin Technology Co ltd filed Critical Wuhan Easylinkin Technology Co ltd
Priority to CN202210905780.9A priority Critical patent/CN114978364B/en
Publication of CN114978364A publication Critical patent/CN114978364A/en
Application granted granted Critical
Publication of CN114978364B publication Critical patent/CN114978364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/101Monitoring; Testing of transmitters for measurement of specific parameters of the transmitter or components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/391Modelling the propagation channel
    • H04B17/3911Fading models or fading generators
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Transmitters (AREA)

Abstract

The embodiment of the application discloses a method and a device for testing a Lora module, electronic equipment and a storage medium. The method for testing the Lora module comprises the following steps: arranging an attenuator between a target Lora module to be tested and a test tool; and determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator. Therefore, by arranging the attenuator, the transmitting power of the target Lora module can be in the signal receiving range of the test tool, so that the test tool can receive the transmitting power conveniently, and the transmitting power of the target Lora module is determined; by arranging the attenuator, the transmitting power of the test tool can be in the signal receiving range of the target Lora module, and the receiving power of the target Lora module can be conveniently determined. Therefore, the lower-cost test tool is used for testing the Lora module.

Description

Method and device for testing Lora module, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of testing technologies, and in particular, to a method and an apparatus for testing a Lora module, an electronic device, and a storage medium.
Background
In the prior art, in order to test the transmission power and the reception sensitivity of the Lora module, the test is often performed through a meter, the transmission power is tested by using a frequency spectrograph, and the reception sensitivity is tested by using a signal source.
However, the spectrometer and the signal source are expensive, which results in higher cost for testing using the spectrometer and increases the cost pressure of the manufacturer.
Disclosure of Invention
In view of this, embodiments of the present application are expected to provide a method and an apparatus for testing a Lora module, an electronic device, and a storage medium.
The technical scheme of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for testing a Lora module, where the method includes:
arranging an attenuator between a target Lora module to be tested and a test tool;
and determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator.
Based on the above scheme, the attenuator at least includes: a first attenuator;
the determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator comprises:
acquiring the receiving power of the test tool;
and determining the transmitting power of the target Lora module according to the receiving power of the test tool and the attenuation value of the first attenuator.
Based on the above scheme, the method further comprises:
and setting the attenuation value of the first attenuator according to the transmitting power of the target Lora module and the signal receiving range of the test tool.
Based on the above scheme, the method further comprises:
measuring a first line loss of a connection line between the target Lora module and the first attenuator;
measuring a second line loss of a connection line between the test tool and the first attenuator;
and adjusting the signal receiving range of the test tool according to the first line loss and the second line loss.
Based on the above scheme, the method further comprises:
before the target Lora module transmits signals, the target Lora module is set to be in a signal transmission state.
Based on the above scheme, the method further comprises:
and setting the sending parameters of the target Lora module.
Based on the above scheme, the sending parameters of the target Lora module at least include:
the power level of the transmitted signal;
a spreading factor of a transmission signal;
a signal bandwidth of the transmitted signal;
the frequency band in which the signal is transmitted.
Based on the above scheme, the method further comprises:
judging whether the transmitting power of the target Lora module is in the signal transmitting range of the target Lora module; the signal transmission range of the target Lora module is determined based on the transmission power loss of the target Lora module;
if not, outputting the first abnormal information.
Based on the above scheme, the method further comprises:
judging whether the receiving power of the target Lora module is in the signal receiving range of the target Lora module; wherein a signal receiving range of the target Lora module is determined based on a transmission power loss of the test tool;
if not, outputting second abnormal information.
Based on the above scheme, the attenuator at least comprises a second attenuator, and the method further comprises:
and setting the attenuation value of the second attenuator according to the transmitting power of the test tool and the signal receiving range of the target Lora module.
Based on the above scheme, the method further comprises:
measuring a third line loss of a connection line between the target Lora module and the second attenuator;
measuring a fourth line loss of a connection line between the test tool and the second attenuator;
and adjusting the signal receiving range of the target Lora module according to the third line loss and the fourth line loss.
Based on the above scheme, the method further comprises:
and setting the target Lora module to be kept in a signal receiving state.
Based on the above scheme, the method further comprises:
and setting the sending parameters of the test tool.
Based on the above scheme, the sending parameters of the test tool at least include:
a power level of the transmitted signal;
a spreading factor of the transmitted signal;
a signal bandwidth of the transmitted signal;
the frequency band in which the signal is transmitted.
In a second aspect, an embodiment of the present application provides a testing apparatus for a Lora module, the testing apparatus includes:
the first setting module is used for setting an attenuator between a target Lora module to be tested and a test tool;
and the determining module is used for determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory storing computer readable instructions;
and the processor is connected with the memory and used for realizing the method provided by the technical scheme of the first aspect by executing the computer-executable instructions stored on the memory.
In a fourth aspect, an embodiment of the present application provides a computer storage medium, where the computer storage medium stores computer-executable instructions, and after the computer-executable instructions are executed, the method provided in the technical solution of the first aspect can be implemented.
According to the method and the device for testing the Lora module, the electronic equipment and the storage medium, the attenuator can be arranged between the target Lora module to be tested and the test tool, so that the transmitting power of the target Lora module is in the signal receiving range of the test tool, and the test tool can receive the transmitting signal of the target Lora module conveniently; and the transmitting power of the test tool can be in the signal receiving range of the target Lora module, so that the target Lora module can receive the transmitting signal of the test tool conveniently. And determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator. Therefore, the transmitting power of the target Lora module can be determined through the power of the signal received by the test tool and the attenuation value of the attenuator; the received power of the target Lora module is determined through the power of the signal received by the target Lora module and the attenuation value of the attenuator, so that the test on the transmitted power and/or the received power of the Lora module can be completed through a test tool with the functions of transmitting and receiving signals, and the test cost is greatly reduced.
Drawings
Fig. 1 is a schematic flowchart of a method for testing a Lora module according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a device for testing a transmission power of a Lora module in the related art according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a device for testing sensitivity of receive of a Lora module in the related art according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an LoRa rf transceiver testing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating a preset data rate at 470MHz in a related art according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a preset transmitting power at 470MHz in a related art according to an embodiment of the present application;
fig. 7 is a schematic diagram of a receive sensitivity test result of a Lora module according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a testing apparatus for a Lora module according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
So that the manner in which the features and aspects of the present application can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
As shown in fig. 1, an embodiment of the present application provides a method for testing a Lora module, where the method includes:
step S110: arranging an attenuator between a target Lora module to be tested and a test tool;
step S120: and determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator.
The Lora module may be a module for Lora (Long Range Radio) communication composed of a plurality of basic components.
The Lora module includes an Lora chip, and is configured to perform corresponding operations according to the instruction, for example, processing a transmission parameter of a transmission signal of the Lora module, and processing a received signal to obtain a received power.
The test tool can be a module, equipment and/or instrument with the functions of receiving and/or sending signals and the like, and is used for testing the transmitting power and/or the receiving power of the Lora module. Specifically, the test tool may be a Lora module that has completed testing.
When using the testing tool to test the Lora module, the receiving sensitivity of testing tool, minimum signal received power is less in comparison in the transmitted power of Lora module promptly, and the signal of directly receiving the Lora module through the testing tool and sending is difficult to obtain comparatively accurate measured value, and the great powerful signal of direct reception simultaneously probably causes the influence to the chip in the Lora module, damages the chip even.
Therefore, in the embodiment of the application, the attenuator is arranged between the target Lora module and the test tool, and the power of the signal sent by the Lora module is adjusted by setting the attenuation value of the attenuator, so that the power of the signal received by the test tool is reasonably adjusted, and the accuracy and the safety of the test are further improved.
The transmission power may be a preset transmission power of the target Lora module and/or the test tool, that is, a transmission power specified in the Lora protocol. The emission power range specified in the Lora protocol is 2dBm to 17dBm, and the default emission power is 14dBm. Considering that the transmitting power of most Lora modules produced by manufacturers is the default power, namely 14dBm, the transmitting power tested in the embodiment of the present application is 14dBm in consideration of saving time and cost.
In another embodiment, a step power test may be performed, i.e., a transmission power range of 2dbm to 17dBm is divided into a plurality of transmission powers for testing, for example, a step power of 0.5dBm or 1dBm is accurate for adjustment. Therefore, the transmitting power of the Lora module can be tested more comprehensively.
The attenuator can be an electronic component for providing attenuation and is used for adjusting the power of a signal, so that the transmitting power of the target Lora module is in the signal receiving range of the test tool, and the test tool can receive the transmitting signal of the target Lora module conveniently; or the transmitting power of the testing tool is in the signal receiving range of the target Lora module, so that the target Lora module can receive the transmitting signal of the testing tool conveniently.
The attenuation value of the attenuator may be a degree that the signal power becomes smaller after the signal passes through the attenuator. The concrete relation is as follows:
the power of the signal before passing through the attenuator may be equal to: the sum of the power of the signal after passing through the attenuator and the attenuation value of the attenuator.
Therefore, the attenuation value of the attenuator can be reasonably set according to the magnitude relation between the transmitting power and the receiving sensitivity.
In some embodiments, considering that the difference between the receiving sensitivity of the test tool and the transmitting power of the Lora module is large, the receiving range of the test tool is wide, the minimum receiving range can reach-135 dBm to-140 dBm, the default transmitting power of the Lora module is 14dBm, and the attenuation value of the attenuator can be set to be 90dBm.
In other embodiments, considering that the difference between the receiving sensitivity of the Lora module and the transmitting power of the testing tool is large, the receiving range of the Lora module is wide and can be as small as-135 dBm to-140 dBm, the default transmitting power of the testing tool is 14dBm, and the attenuation value of the attenuator can be set to be 130dBm.
The attenuator can be divided into a fixed attenuator and an adjustable attenuator, the attenuation value of the fixed attenuator is fixed, and the attenuation value of the adjustable attenuator can be manually adjusted according to actual requirements. In the embodiment of the present application, an adjustable attenuator is generally adopted, so that the power of the transmission signal is adjusted to be within the signal receiving range of the target Lora module and/or the test tool by adjusting the attenuation value of the attenuator, thereby facilitating the successful reception of the signal.
In the embodiment of the application, an attenuator is arranged between the target Lora module and the test tool, and the attenuation value of the attenuator is adjusted to adjust the power of the signal transmitted by the target Lora module and/or the test tool. Therefore, the adjusted power of the signal transmitted by the target Lora module can be within the signal receiving range of the test tool, or the adjusted power of the signal transmitted by the test tool can be within the signal receiving range of the target Lora module, and then the transmitting power and/or the receiving power of the target Lora module can be determined. Meanwhile, the attenuation value of the attenuator is set, the size relation between the power of the signal transmitted by the target Lora module and the receiving sensitivity of the test tool is reasonably adjusted, the size relation between the power of the signal transmitted by the test tool and the receiving sensitivity of the target Lora module is reasonably adjusted, and the accuracy and the safety of the test are improved.
In an embodiment of the present application, the attenuator includes at least: a first attenuator;
the determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator comprises:
acquiring the receiving power of the test tool;
and determining the transmitting power of the target Lora module according to the receiving power of the test tool and the attenuation value of the first attenuator.
In the embodiment of the application, after the received power of the test tool is obtained, the transmission power of the target Lora module can be determined according to the relation among the received power of the test tool, the attenuation value of the first attenuator and the transmission power of the target Lora module. Specifically, the relationship between the three is:
the transmit power of the target Lora module may be equal to: the sum between the received power of the test tool and the attenuation value of the first attenuator.
Therefore, the residual numerical values can be directly calculated by simple mathematical relations among the three parts and after the numerical values of the two parts are obtained.
In an embodiment of the present application, the method further includes:
and setting the attenuation value of the first attenuator according to the transmitting power of the target Lora module and the signal receiving range of the test tool.
In the embodiment of the application, the transmission power of the target Lora module is set to be 14dBm, the signal receiving range of the test tool is set to be-74 dBm to-78 dBm in consideration of possible errors in the test and possible slight differences in the transmission power among different Lora modules, and then the attenuation value of the first attenuator is set to be 90dBm according to the transmission power of the target Lora module and the signal receiving range of the test tool.
In the embodiment of the application, the attenuation value of the first attenuator is set according to the transmitting power of the target Lora module and the signal receiving range of the test tool, so that the power of the signal passing through the first attenuator is within the signal receiving range of the test tool, and the difference between the power of the signal and the receiving sensitivity of the test tool is not large. Therefore, the power of the signal received by the test tool can be ensured to be smaller, the situation that the test tool is damaged due to overlarge power is avoided, and meanwhile, the receiving power of the test tool can be accurately obtained.
In an embodiment of the present application, the method further includes:
measuring a first line loss of a connection line between the target Lora module and the first attenuator;
measuring a second line loss of a connection line between the test tool and the first attenuator;
and adjusting the signal receiving range of the test tool according to the first line loss and the second line loss.
In the embodiment of the present application, the target Lora module, the first attenuator, and the test tool are connected through the transmission line for testing, and the transmission line generates a partial loss during transmission, so that the power of the signal received by the test tool is smaller than the power of the signal sent by the target Lora module. Therefore, the following relationship is obtained by measuring the line loss of the connection through equipment such as a meter and taking the error caused by the measured line loss into account:
the transmit power of the target Lora module may be equal to: the sum of the received power of the test tool and the attenuation value of the first attenuator and the line loss.
Therefore, the signal receiving range of the test tool can be adjusted according to the line loss. Specifically, the line loss is generally less than 1dBm, so that the signal receiving range of the test tool can be adjusted to be-73 dBm to-79 dBm. Therefore, after the line loss is considered, the signal receiving range of the test tool is adjusted, and the test accuracy can be improved.
In an embodiment of the present application, the method further includes:
before the target Lora module transmits signals, the target Lora module is set to be in a signal transmission state.
The Lora module generally works in a receiving state, the time of the Lora module in the sending state is short, and the Lora module is in the receiving state in most of time. Specifically, the Lora module works according to a receiving and sending period, receives for a period of time, sends for a plurality of times, and then enters a receiving state to continue receiving. For example, the Lora module generally receives the data for 2 to 3 hours, transmits the data once, and enters a receiving state.
Therefore, in order to test the transmission power of the Lora module, the Lora module needs to be set to be kept in a signal sending state before transmitting signals. Specifically, the Lora module can be controlled to work in a signal sending state all the time through a chip in the Lora module. So, can receive the transmitted signal of Lora module in succession through the testing tool, be convenient for obtain a plurality of Lora module's transmitting power's test value to improve efficiency of software testing, and reduce the accidental error that single test probably arouses, improve the accuracy of test.
In an embodiment of the present application, the method further includes:
and setting the sending parameters of the target Lora module.
In this application embodiment, in order to further promote the accuracy of test, can set up the sending parameter of Lora module through the chip in the Lora module. Therefore, the different transmitting signals of a plurality of transmitting parameters of the Lora module can be received through the testing tool, the influence of the different transmitting parameters on the transmitting power of the Lora module is reduced, and the testing accuracy is further improved.
In this embodiment, the sending parameters of the target Lora module at least include:
the power level of the transmitted signal;
a spreading factor of the transmitted signal;
a signal bandwidth of the transmitted signal;
the frequency band in which the signal is transmitted.
The power level may be the energy absorbed or released by the transmission signal per unit time, and the greater the power level, the more energy released by the signal per unit time. In the present embodiment, the power level is typically 14dBm.
The spreading factor may be how many bit chips are used to represent an information symbol, so the larger the spreading factor, the more time it takes to transmit a symbol, and the lower the data transmission rate. In the embodiments of the present application, the spreading factor is typically 7, 10 or 12.
The signal bandwidth may be the difference between the highest frequency and the lowest frequency of the harmonics comprised in the transmitted signal, i.e. the frequency range which the signal possesses. In the embodiment of the present application, the signal bandwidth is typically 125KHz.
The frequency band in which the signal is transmitted may be a frequency range of a frequency band in which the signal is transmitted. In this application embodiment, in order to verify whether the Lora module can normally send signals in the frequency band of design, divide into high, the low three frequency channel of neutralization with the design frequency band, carry out the test of the transmitting power of Lora module respectively in three frequency channel, verify the stability of Lora module transmission signal. In the embodiment of the application, the designed frequency band is 470 to 510MHz, so the test is carried out in three frequency bands of 470 to 483MHz, 483497MHz and 497 to 510MHz.
In an embodiment of the present application, the method further includes:
judging whether the transmitting power of the target Lora module is in the signal transmitting range of the target Lora module; the signal transmission range of the target Lora module is determined based on the transmission power loss of the target Lora module;
if not, outputting the first abnormal information.
The signal sending range can be the range where the normal transmitting power of the Lora module is located, and is used for determining whether the transmitting power of the Lora module meets a preset standard.
The transmission power loss may be power loss generated when the Lora module transmits a signal.
In the embodiment of the application, the range of the normal transmitting power of the Lora module is determined through the transmitting power loss, so that the test error caused by the transmitting power loss can be reduced, and the test accuracy is further improved.
First abnormal information is used for indicateing that there is great error in the test value of the transmitted power of Lora module and normal value, does not accord with the default standard, needs to carry out operations such as fault detection and maintenance to the Lora module this moment.
In an embodiment of the application, the attenuator comprises at least a second attenuator, and the method further comprises:
and setting the attenuation value of the second attenuator according to the transmitting power of the test tool and the signal receiving range of the target Lora module.
In the embodiment of the application, the transmission power of the test tool is set to be 14dBm, the signal receiving range of the target Lora module is set to be-114 dBm to-118 dBm in consideration of possible errors in the test, namely, the actual transmission power of the test tool may have a slight difference from the set transmission power, and then the attenuation value of the second attenuator is set to be 130dBm according to the transmission power of the test tool and the signal receiving range of the target Lora module.
In the embodiment of the application, the attenuation value of the second attenuator is set according to the transmitting power of the test tool and the signal receiving range of the target Lora module, so that the power of the signal passing through the second attenuator is in the signal receiving range of the target Lora module, and the difference between the power of the signal and the receiving sensitivity of the target Lora module is not large. So, can ensure that the power of the signal that the target Lora module received is less to avoid the too big condition that causes the damage to the target Lora module of power, also can accurately acquire the received power of target Lora module simultaneously.
In an embodiment of the present application, the method further includes:
measuring a third line loss of a connection line between the target Lora module and the second attenuator;
measuring a fourth line loss of a connection line between the test tool and the second attenuator;
and adjusting the signal receiving range of the target Lora module according to the third line loss and the fourth line loss.
In the embodiment of the present application, the target Lora module, the second attenuator, and the test tool are connected through the transmission line for testing, and the transmission line may generate a partial loss during transmission, so that the power of the signal received by the target Lora module may be smaller than the power of the signal sent by the test tool. Therefore, the following relationship is obtained by measuring the line loss of the connection through equipment such as a meter and taking the error caused by the measured line loss into account:
the test tool may have a transmit power equal to: and the sum of the received power of the target Lora module, the attenuation value of the second attenuator and the line loss.
Therefore, the signal receiving range of the target Lora module can be adjusted according to the line loss. Specifically, the line loss is generally less than 1dBm, so the signal receiving range of the test tool can be adjusted to be-113 dBm to-119 dBm. Therefore, after the line loss is considered, the signal receiving range of the target Lora module is adjusted, and the accuracy of the test can be improved.
In an embodiment of the present application, the method further includes:
and setting the target Lora module to be kept in a signal receiving state.
The Lora module generally works in a receiving state, the time of the Lora module in the sending state is short, and the Lora module is in the receiving state in most of time. Specifically, the Lora module works according to a receiving and sending period, receives for a period of time, sends for a plurality of times, and then enters a receiving state to continue receiving. For example, the Lora module generally receives the data for 2 to 3 hours, transmits the data once, and enters a receiving state.
Therefore, in order to test the receiving power of the Lora module in the embodiment of the present application, the Lora module needs to be set to maintain the signal receiving state. Specifically, the Lora module can be controlled to work in a signal receiving state all the time through a chip in the Lora module. So, can receive the transmitted signal of Lora module in succession through the testing tool, be convenient for obtain the received power's of a plurality of Lora modules test value to improve efficiency of software testing, and reduce among the test procedure Lora module probably work to the influence of test under the transmission state, improve the accuracy of test.
In an embodiment of the present application, the method further includes:
and setting the sending parameters of the test tool.
In the embodiment of the present application, in order to further improve the accuracy of the test, the sending parameters of the test tool may be set through a chip in the test tool. So, can receive the emission signal that test tool's a plurality of transmission parameters are different through the Lora module, reduce the influence of the difference of transmission parameter to the received power of Lora module, further promote the accuracy of test.
In an embodiment of the present application, the sending parameters of the test tool at least include:
the power level of the transmitted signal;
a spreading factor of the transmitted signal;
a signal bandwidth of the transmitted signal;
the frequency band in which the signal is transmitted.
The power level may be the energy absorbed or released by the transmission signal in a unit time, and the greater the power level, the more energy released by the signal in a unit time. In the present embodiment, the power level is typically 14dBm.
The spreading factor may be how many bit chips are used to represent an information symbol, so the larger the spreading factor, the more time it takes to transmit a symbol, and the lower the data transmission rate. In the embodiments of the present application, the spreading factor is typically 7, 10 or 12.
The signal bandwidth may be the difference between the highest frequency and the lowest frequency of the harmonics included in the transmitted signal, i.e. the frequency range possessed by the signal. In the embodiment of the present application, the signal bandwidth is typically 125KHz.
The frequency band in which the signal is transmitted may be a frequency range of a frequency band in which the signal is transmitted. In this application embodiment, in order to verify whether the Lora module can both normally receive signal in the frequency channel of design, divide into high, the low three frequency channel of neutralization with the design frequency channel, carry out the test of the received power of Lora module respectively in three frequency channel, verify the stability of Lora module received signal. In the embodiment of the application, the frequency band is designed to be 470 to 510MHz, so the test is carried out in three frequency bands of 470 to 483MHz, 483497MHz and 497 to 510MHz.
Fig. 2 is a schematic structural diagram of an apparatus for testing the transmission power of a Lora module in the related art according to an embodiment of the present application. As shown in fig. 2, the conventional method for testing the transmission power of the Lora module mainly includes connecting the frequency spectrograph and the Lora module to be tested. However, instruments with a metering function, such as a spectrometer, are expensive, and it is difficult to control the testing cost when some manufacturers perform testing.
As shown in fig. 3, a schematic structural diagram of a device for testing sensitivity of a Lora module in the related art according to the embodiment of the present application is shown; as shown in fig. 3, the conventional method for testing the receiving sensitivity of the Lora module mainly includes connecting the signal source and the micro control unit to the Lora module to be tested. However, instruments with a metering function, such as a signal source, are expensive, and it is difficult to control the testing cost when some manufacturers perform testing.
Therefore, as shown in fig. 4, a method and an apparatus for LoRa rf transceiving test are provided. In fig. 4, RX (Receive) is a Receive channel and TX (Transmit) is a Transmit channel. As can be seen from fig. 4, the receiving channel of the testing tool is connected to the transmitting channel of the device to be tested through the attenuator, and the power of the signal transmitted by the device to be tested is reduced to the receiving range of the testing tool by using the attenuation characteristic of the attenuator, so that the transmitting power of the device to be tested is tested by using the receiving channel of the testing tool. The transmitting channel of the testing tool is connected with the receiving channel of the device to be tested through the attenuator, and the power of the signal transmitted by the testing tool is reduced to the receiving range of the device to be tested by utilizing the attenuation characteristic of the attenuator, so that the level of the receiving channel of the device to be tested is tested. Like this, can realize utilizing low price's test tool, for example loRa module or loRa product, solve the cost problem that part loRa producer tested.
The testing steps are as follows:
1) Tx transmit power test:
1.1 by analyzing the LoRa protocol, the maximum default transmitting power of the Lora module is 14dBm. And the majority of the LoRa module is in a dormant state in actual work, so that many manufacturers do not design step power adjustment. The transmit power can therefore be tested only at 14dBm.
1.2 attenuator settings: the receiving power of the RX receiving end is only required to be ensured to fall within the receiving range of the Lora module chip. The receiving range of the LoRa module is wide and can reach-135 dBm at minimum. The attenuator may be configured to 90dBm when testing the transmit power.
1.3RX lane reception value setting: the output power of the test tool, i.e., the lo ra module TX transmitting port, is 14dBm. Then the power at the receiver of the test tool RX is: 14dBm-90dBm = -76dBm. Considering the line loss error (1 dBm at most) and the consistency of the production modules, the range of the receiving end can be designed to be-76 dBm ± 3dBm. Thus, the RX channel of the module can be used to measure the transmission power of the module to be tested.
1.4 test procedure: analysis of the LoRa protocol shows that the frequency band of Lora communication is 470 to 510MHz, the emission power is less than 50mW (or 17 dBm), and the sending state does not last for more than 5000ms. Fig. 5 is a schematic diagram illustrating a preset data rate at 470MHz in the related art according to an embodiment of the present application. Fig. 6 is a schematic diagram illustrating a preset transmitting power at 470MHz according to the related art according to an embodiment of the present application. Referring to fig. 5 and 6, the setting of the transmission parameters is referred to, so that the TX transmit power can be measured only by using the test program to control the module to be tested to be in the transmitting state of the channels with different SFs (Spreading factors) and different frequency bands and by using the test tool in the receiving state.
2) RX receive sensitivity test:
2.1 according to the Lora test protocol and the chip specification, the RX receiving sensitivity test specification is as follows: the larger the SF, the lower the RSSI (Received Signal Strength Indication).
Fig. 7 is a schematic diagram of a receive sensitivity test result of a Lora module according to an embodiment of the present disclosure. The relationship between SF, RSSI, and minimum SNR (Signal-Noise Ratio) required for demodulation can be seen from the figure. The larger the SF, the lower the RSSI, and the lower the SNR.
2.2 attenuator setting and receive channel range setting:
the transmission power of the LoRa module, although having a step power level, cannot be adjusted to a step power of 0.5 or 1 dBm. Therefore, the production does not carry out step-by-step scanning test of the receiving sensitivity, and the test is carried out in a laboratory research and development test link. The production test only tests whether the receiving channel is normal, and does not do the sensitivity bottom detection.
The testing tool, namely the Lora module transmits power of 14dBm, the attenuator selects 130dBm, and then the receiving end receives power of 14-130 = -116dBm. The range of the receive channel may be set to-116 dBm ± 3dBm considering line loss and product uniformity.
2.3 test procedure: at this time, the level of the RX receiving channel can be measured only by using the test program to control the module to be tested to be in the receiving state of SF7 and different channels and the test tool to be in the transmitting state.
Therefore, according to the testing method of the Lora module, the attenuator is arranged between the equipment to be tested and the testing tool, so that the equipment to be tested can receive the signal sent by the testing tool, and meanwhile, the signal sent by the equipment to be tested can be received by the testing tool, so that the testing of the transmitting power and/or the receiving sensitivity of the Lora module is completed by using the testing tool with low price, and the cost required by testing is reduced.
As shown in fig. 8, the testing apparatus for a Lora module provided in the embodiment of the present application includes:
the first setting module 110 is used for setting an attenuator between a target Lora module to be tested and a test tool;
a determining module 120, configured to determine the transmit power and/or the receive power of the target Lora module according to the transmit power and the attenuation value of the attenuator.
In some embodiments, the first setting module 110 and the determining module 120 may be both program modules, and the program modules are executed by a processor and can implement the functions of the above modules.
In other embodiments, the first setting module 110 and the determining module 120 may be both a software and hardware combining module; the soft and hard combining module includes but is not limited to: various programmable arrays; the field programmable array includes, but is not limited to: field programmable arrays and/or complex programmable arrays.
In still other embodiments, the first setup module 110 and the determination module 120 may both be pure hardware modules; the pure hardware modules include, but are not limited to: an application specific integrated circuit.
In some embodiments, the attenuator comprises at least: a first attenuator;
the determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator comprises:
acquiring the receiving power of the test tool;
and determining the transmitting power of the target Lora module according to the receiving power of the test tool and the attenuation value of the first attenuator.
In some embodiments, the apparatus further comprises:
the first measuring module is used for measuring a first line loss of a connecting line between the target Lora module and the first attenuator;
a second measurement module further for measuring a second line loss of a connection line between the test tool and the first attenuator;
and the first adjusting module is used for adjusting the signal receiving range of the test tool according to the first line loss and the second line loss.
In some embodiments, the apparatus further comprises:
and the second setting module is used for setting the target Lora module to be kept in a signal sending state before the target Lora module transmits signals.
In some embodiments, the apparatus further comprises:
and the third setting module is used for setting the sending parameters of the target Lora module.
In some embodiments, the sending parameters of the target Lora module at least include:
the power level of the transmitted signal;
a spreading factor of the transmitted signal;
a signal bandwidth of the transmitted signal;
the frequency band in which the signal is transmitted.
In some embodiments, the apparatus further comprises:
the first judgment module is used for judging whether the transmitting power of the target Lora module is within the signal transmission range of the target Lora module; the signal sending range of the target Lora module is determined based on the transmission power loss of the target Lora module;
if not, outputting the first abnormal information.
In some embodiments, the apparatus further comprises:
the second judgment module is used for judging whether the receiving power of the target Lora module is in the signal receiving range of the target Lora module; wherein a signal receiving range of the target Lora module is determined based on a transmission power loss of the test tool;
if not, outputting second abnormal information.
In some embodiments, the attenuator includes at least a second attenuator, the apparatus further comprising:
and the fourth setting module is used for setting the attenuation value of the second attenuator according to the transmitting power of the test tool and the signal receiving range of the target Lora module.
In some embodiments, the apparatus further comprises:
the third measuring module is used for measuring the third line loss of a connecting line between the target Lora module and the second attenuator;
a fourth measurement module for measuring a fourth line loss of a connection line between the test tool and the second attenuator;
and the second adjusting module is used for adjusting the signal receiving range of the target Lora module according to the third line loss and the fourth line loss.
In some embodiments, the apparatus further comprises:
and the fifth setting module is used for setting the target Lora module to be kept in a signal receiving state.
In some embodiments, the apparatus further comprises:
and the sixth setting module is used for setting the sending parameters of the test tool.
In some embodiments, the transmission parameters of the test tool include at least:
the power level of the transmitted signal;
a spreading factor of the transmitted signal;
a signal bandwidth of the transmitted signal;
the frequency band in which the signal is transmitted.
As shown in fig. 9, an embodiment of the present application provides an electronic device, where the electronic device includes:
a memory for storing computer readable instructions;
and the processor is connected with the memory and used for realizing the method provided by any of the foregoing embodiments by executing the computer readable instructions, for example, the method shown in the figure 1 can be executed.
The memory can be various types of memories, such as random access memory, read only memory, flash memory, and the like. The memory may be used for information storage, e.g., storing computer-executable instructions, etc. The computer-executable instructions may be various program instructions, such as object program instructions and/or source program instructions, and the like.
The processor may be various types of processors, such as a central processing unit, a microprocessor, a digital signal processor, a programmable array, a digital signal processor, an application specific integrated circuit, or an image processor, among others. The processor may be connected to the memory via a bus. The bus may be an integrated circuit bus or the like.
As shown in fig. 9, the electronic device may further include a network interface, which may be used for interacting with a peer device through a network.
Embodiments of the present application further provide a computer storage medium, where the computer storage medium stores computer-executable instructions, and after the computer-executable instructions are executed, the method provided by any of the foregoing embodiments can be implemented, for example, the method shown in fig. 1 can be executed.
The computer storage medium provided by the embodiment comprises: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing module, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (17)

1. A testing method of a Lora module is characterized by comprising the following steps:
arranging an attenuator between a target Lora module to be tested and a test tool; wherein the attenuator is an adjustable attenuator;
determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator; wherein the transmit power is adjusted stepwise based on the Lora protocol.
2. The method of claim 1, wherein the attenuator comprises at least: a first attenuator;
the determining the transmission power and/or the receiving power of the target Lora module according to the transmission power and the attenuation value of the attenuator comprises the following steps:
acquiring the receiving power of the test tool;
and determining the transmitting power of the target Lora module according to the receiving power of the test tool and the attenuation value of the first attenuator.
3. The method of claim 2, further comprising:
and setting the attenuation value of the first attenuator according to the transmitting power of the target Lora module and the signal receiving range of the test tool.
4. The method of claim 3, further comprising:
measuring a first line loss of a connection line between the target Lora module and the first attenuator;
measuring a second line loss of a connection line between the test tool and the first attenuator;
and adjusting the signal receiving range of the test tool according to the first line loss and the second line loss.
5. The method of claim 2, further comprising:
before the target Lora module transmits signals, the target Lora module is set to be in a signal transmission state.
6. The method of claim 2, further comprising:
and setting the sending parameters of the target Lora module.
7. The method of claim 6, wherein the sending parameters of the target Lora module at least comprise:
a power level of the transmitted signal;
a spreading factor of a transmission signal;
a signal bandwidth of the transmitted signal;
the frequency band in which the signal is transmitted.
8. The method according to claim 3 or 4, characterized in that the method further comprises:
judging whether the transmitting power of the target Lora module is in the signal transmitting range of the target Lora module; the signal sending range of the target Lora module is determined based on the transmission power loss of the target Lora module;
if not, outputting the first abnormal information.
9. The method of claim 1, further comprising:
judging whether the receiving power of the target Lora module is in the signal receiving range of the target Lora module; wherein a signal receiving range of the target Lora module is determined based on a transmission power loss of the test tool;
if not, outputting second abnormal information.
10. The method of claim 9, wherein the attenuator comprises at least a second attenuator, the method further comprising:
and setting the attenuation value of the second attenuator according to the transmitting power of the test tool and the signal receiving range of the target Lora module.
11. The method of claim 10, further comprising:
measuring a third line loss of a connection line between the target Lora module and the second attenuator;
measuring a fourth line loss of a connection line between the test tool and the second attenuator;
and adjusting the signal receiving range of the target Lora module according to the third line loss and the fourth line loss.
12. The method of claim 9, further comprising:
and setting the target Lora module to be kept in a signal receiving state.
13. The method of claim 9, further comprising:
and setting the sending parameters of the test tool.
14. The method of claim 13, wherein the transmission parameters of the test tool comprise at least:
the power level of the transmitted signal;
a spreading factor of a transmission signal;
a signal bandwidth of the transmitted signal;
the frequency band in which the signal is transmitted.
15. The utility model provides a testing arrangement of Lora module which characterized in that, testing arrangement includes:
the first setting module is used for setting an attenuator between a target Lora module to be tested and a test tool; wherein the attenuator is an adjustable attenuator;
the determining module is used for determining the transmitting power and/or the receiving power of the target Lora module according to the transmitting power and the attenuation value of the attenuator; wherein the transmit power is adjusted stepwise based on the Lora protocol.
16. An electronic device, comprising:
a memory storing computer readable instructions;
a processor coupled to the memory and operable to implement the method of any of claims 1 to 14 by executing the computer readable instructions.
17. A computer storage medium having computer-executable instructions stored thereon; the computer-executable instructions, when executed by a processor, are capable of performing the method of any one of claims 1 to 14.
CN202210905780.9A 2022-07-29 2022-07-29 Lora module testing method and device, electronic equipment and storage medium Active CN114978364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210905780.9A CN114978364B (en) 2022-07-29 2022-07-29 Lora module testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210905780.9A CN114978364B (en) 2022-07-29 2022-07-29 Lora module testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114978364A CN114978364A (en) 2022-08-30
CN114978364B true CN114978364B (en) 2022-11-18

Family

ID=82970437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210905780.9A Active CN114978364B (en) 2022-07-29 2022-07-29 Lora module testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114978364B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792875A (en) * 2016-12-19 2017-05-31 上海斐讯数据通信技术有限公司 A kind of method of testing and system of Wi Fi products emitter transmission power
CN107566053A (en) * 2017-08-31 2018-01-09 Tcl通力电子(惠州)有限公司 Method and system for testing radio frequency index and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11778511B2 (en) * 2019-09-18 2023-10-03 Kabushiki Kaisha Toshiba Transmission parameter probing and searching for agile link quality adaptation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792875A (en) * 2016-12-19 2017-05-31 上海斐讯数据通信技术有限公司 A kind of method of testing and system of Wi Fi products emitter transmission power
CN107566053A (en) * 2017-08-31 2018-01-09 Tcl通力电子(惠州)有限公司 Method and system for testing radio frequency index and computer readable storage medium

Also Published As

Publication number Publication date
CN114978364A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
JP3841223B2 (en) Antenna and subscriber cable tester
US7542764B2 (en) Method of using SNR to reduce factory test time
US7254755B2 (en) On-chip receiver sensitivity test mechanism
US9768892B1 (en) Pulse modulated passive intermodulation (PIM) measuring instrument with reduced noise floor
CN111478737B (en) Radio frequency test method, device, electronic device and storage medium
US7477877B2 (en) GSM radiated sensitivity measurement technique
CN101459477A (en) Automatic test method for mobile phone antenna radiation performance
TW201445144A (en) System for testing wireless signals and method for establishing the same
CN113302854B (en) System and method for testing data packet signal transceivers
TW201637404A (en) System and method for testing wireless data packet signal transceiver
CN110572223A (en) Calibration method of radio frequency baseband integrated terminal automatic test system
CA2534245C (en) Method of using snr to reduce factory test time
US8228226B2 (en) E-Band receiver and bit error measurement
CN114978364B (en) Lora module testing method and device, electronic equipment and storage medium
KR20210104927A (en) Systems and methods for testing data packet signal transceivers
CN115712097A (en) Radar active module test system and test method
EP1583265B1 (en) Methods for calibrating a transmitter and a receiver path of a communication device and test system therefor
US20210281333A1 (en) Mobile terminal testing apparatus, mobile terminal testing system, and control method for mobile terminal testing apparatus
KR100626207B1 (en) Cable calibration method using built-in transmissing/receiving apparatus and apparatus thereof, and recording medium storing program comprising the same method
US20190386754A1 (en) Method for testing wireless transceiver
CN113422656A (en) Radio frequency technology-based wireless sensitivity testing method and device
CN117411571A (en) Anti-interference capability test method, device, system, equipment and storage medium
CN116131970A (en) Device calibration method and device, upper computer and storage medium
KR20020011546A (en) Method and apparatus for calibration transmit and receive signal in cdma system
KR20030051954A (en) A Detection Apparatus for inprovement in sense of CDMA Transmission Output in Base Station

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Testing methods, devices, electronic devices, and storage media for Lora modules

Granted publication date: 20221118

Pledgee: CITIC Bank Limited by Share Ltd. Wuhan branch

Pledgor: WUHAN EASYLINKIN TECHNOLOGY CO.,LTD

Registration number: Y2024980000365

PE01 Entry into force of the registration of the contract for pledge of patent right