How to add control PA code program base on Qorvo_Nearby_Interaction_3_1_0 example ?
I modified the following codeć
dw_conf.lnapamode = DWT_LNA_ENABLE | DWT_PA_ENABLEļ¼
when connected with the mobile phone, the output is as follows, all wrong data.what can i doļ¼
app: MessageId_configure_and_start uwb.
{āBlockā:0, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:1, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:2, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:3, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:4, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:5, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:6, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:7, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:8, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:9, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:10, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
{āBlockā:11, āresultsā:[{āAddrā:ā0x77feā,āStatusā:āErrā}]}
Hi @zhiguo77 ,
I could not reproduce your issue with QM33120.
Can you tell which hardware are you using?
Hi wassimļ¼
I am very glad that you can reply to my questions in time. Since I have designed the board now, there is a demand of 100k for this order. Now, due to this problem, it has been postponed. I really need your help.
The LAN and PA devices used in my hardware here are SW8112Q (the hardware schematic diagram is shown below).
Based Qorvo_Nearby_Interaction_3_1_0 exampleļ¼Since my LAN/PA device here only has a single antenna, the code is modified as follows:
1.First
static const rf_tuning_t rf_tuning_config_flash_default =
{
.txConfig.PGdly = 0x34,
.txConfig.power = DEFAULT_TX_POWER_REGULAR_PULSE_AOA,
.txConfig.PGcount = 0,
.pdoaOffset_deg = DEFAULT_PDOAOFF,
.rngOffset_mm = DEFAULT_RNGOFF,
.antRx_a = (uint16_t)(0.5 * DEFAULT_ANTD),
.antTx_a = (uint16_t)(0.5 * DEFAULT_ANTD),
// .antRx_b = (uint16_t)(0.5 * DEFAULT_ANTD),
.antenna = { DEFAULT_ANTENNA_TYPE, DEFAULT_ANTENNA_TYPE,
ANT_TYPE_NONE, ANT_TYPE_NONE },
.xtalTrim = (DEFAULT_XTAL_TRIM),
.paverage = 10,
#if 1
//QM35725 specific
.tx_ant = 1, //select ANT1 as TX
.rxa_ant = 1,//3, //select ANT3 as RX, PATH A
// .rxb_ant = 1, //select ANT2 as, RX PATH B
.lna1 = 0, //BYPASS
// .lna2 = 1, //BYPASS
.pa = 0 //LOW PA
#endif
};
2.second
dw_conf.lnapamode = DWT_LNA_ENABLE | DWT_PA_ENABLEļ¼
But it turns out it doesnāt work.
Hi wassimļ¼
If I add the test carrier code based on this routine, the device will work fine with the LNA and PA devices, here is the picture of my test. Is there any solution to this problem? Your help is urgently needed.
Best wish
zhiguo77
Hi wassimļ¼
Can you help solve it?Iām anxiously waiting for a reply
Best wishļ¼
Hi @zhiguo77 ,
I saw PA is working in the capture you shared above.
Can you explain more clearly, what did you change except dw_conf.lnapamode = DWT_LNA_ENABLE | DWT_PA_ENABLEļ¼
to make it work?
These are the PA and LNA we support normally.
Can you share the datasheet of the component you use for PA and LNA, so we can review your schematic?
Hi wassimļ¼
I am very glad that you can reply to my questions in time. Based Qorvo_Nearby_Interaction_3_1_0 example the PA and LNA is not working.But base on other example(continuous wave mode ) is normally working.
Base Based Qorvo_Nearby_Interaction_3_1_0 example,I modified the code as followsļ¼
1.First
static const rf_tuning_t rf_tuning_config_flash_default =
{
.txConfig.PGdly = 0x34,
.txConfig.power = DEFAULT_TX_POWER_REGULAR_PULSE_AOA,
.txConfig.PGcount = 0,
.pdoaOffset_deg = DEFAULT_PDOAOFF,
.rngOffset_mm = DEFAULT_RNGOFF,
.antRx_a = (uint16_t)(0.5 * DEFAULT_ANTD),
.antTx_a = (uint16_t)(0.5 * DEFAULT_ANTD),
// .antRx_b = (uint16_t)(0.5 * DEFAULT_ANTD),
.antenna = { DEFAULT_ANTENNA_TYPE, DEFAULT_ANTENNA_TYPE,
ANT_TYPE_NONE, ANT_TYPE_NONE },
.xtalTrim = (DEFAULT_XTAL_TRIM),
.paverage = 10,
#if 1
//QM35725 specific
.tx_ant = 1, //select ANT1 as TX
.rxa_ant = 1,//3, //select ANT3 as RX, PATH A
// .rxb_ant = 1, //select ANT2 as, RX PATH B
.lna1 = 0, //BYPASS
// .lna2 = 1, //BYPASS
.pa = 0 //LOW PA
#endif
};
2.second
dw_conf.lnapamode = DWT_LNA_ENABLE | DWT_PA_ENABLEļ¼
But it turns out it doesnāt work.
Hi @zhiguo77 ,
I tested with QNI_3_10 on QM33120, and I could not observe your issue.
I can see EXTTXE and EXTRXE toggling when there is transmission/reception.
Can you attach a SALEAE to your EXTTXE and EXTRXE and obeserve these gpios without modifying anything in the code.
Hi wassimļ¼
Thank you very much for your reply.I have some questionļ¼
1.Can you use PA and LNA directly without modifying the code based on the sdk?
2.QM33120 is Qorvo QM33120DK?QM33120DK board have PA and LNA?
3.Do you have any problems with the PA devices datasheetļ¼SW8112Qļ¼ I provided ?
Hi @zhiguo77 ,
1/ We only need this change to use PA and LNA dw_conf.lnapamode = DWT_LNA_ENABLE | DWT_PA_ENABLEļ¼
2/ No it does not have PA and LNA. But We recommend QM14070 for PA and QM14068 for LNA.
@Emre_Ozbas_Qorvo , can you please answer on question 3.
Hi wassimļ¼
Thank you very much for your prompt reply, and I am very sorry for taking up your time. I did see the control waveform the way you gave me,However, I encountered a strange phenomenon: After the device is modified to the mode of LNA and PA, it can interact with the iPhone 15 normally. Abnormal interaction with the iPhone 12.
I have a few questions:
1.What is the normal standard for a device to interact with IOS mobile uwb?
2. What is the standard signal range of my uwb device? What is the best test method?
EXTTXE and EXTRXE toggling when there is transmission/reception picture.
Best wishļ¼
zhiguo77
Hi @zhiguo77 ,
Great, what youāre showing here is not a succesfull ranging sequence.
Here, the device started transmitting but then did not receive any uwb frame from iPhone.
Can you tell me which application on iOs youāre using?
Can you test with QorvoNIBackground application?
Hi @zhiguo77 ,
I had a quick look at your schematics and the datasheet of FEM IC.
It seems like your schematic is fine. My only concern is the current consumption of GPIO pins.
EN supply current is specified as 1.2mA in the SW8112Qās datasheet but DW3000ās GPIO pins can only supply max. 0.8mA. This may work in your case but it is not ideal usage of GPIO pins and can harm the IC.
Other than that, I wasnāt aware of the existence of the SW8112Q component. Is this a customer-specific component designed for your needs or is it available on the market?
Hi wassimļ¼
I test with Qorvo Nearby Interaction Application .test with QorvoNIBackground application can normally be done at a distance of 12 iPhone.What causes this?Is it necessary to adjust the UWB3000 RF parameters?
Hi Emre_Ozbas_Qorvoļ¼
Thank you for your feedback on this important information, I can buy the SW8112Q component in the Chinese marke.
If I use dwm3000 to design a circuit, and the board application is Qorvo_Nearby_Interaction, how should I test and verify the performance indicators of UWB3000? Antenna delay calibration?
Hi @zhiguo77 ,
I would test the receiver sensitivity if you can connect a coaxial cable to your application by enabling LNA and disabling it. There should be a significant difference between them when you turn on the LNA. If you cannot connect a coaxial cable, try to perform a maximum ranging test for two different configurations of the LNA.
To check the PA functionality, you have already tested that with a CW signal and observed a 15 dB gain. Again to check the functionality of this, you can perform a maximum range test by enabling and disabling the PA at the same TX power setting. If there is a 15 dB gain, there should be approximately 5.5 times more range you will get.
Hi Emre_Ozbas_Qorvoļ¼
Thanks for Qorvo engineer supportļ¼My tests have found a strange phenomenon, but Iām not sure if itās a problem,Here are three picturesļ¼About the test EXTTXE pin togglingļ¼
ļ¼1ļ¼Is this an abnormal EXTTXE toggling waveform?
Zoom in to show the imageļ¼
ļ¼2ļ¼Is this a working waveform?Has it always been this waveform?
Best wishļ¼
zhiguo77
Hi @zhiguo77 ,
No itās not about adjusting the RF parameters.
Itās working with iPhone12 using Background application, because Background application do not enable/use PdoA.
So you can have rangingworking on iPhone12.