Qorvo_Nearby_Interaction_3_1_0 example add to PA lna1 and lna2

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 wassim,
SW8112Q datasheet
DS_SW8112Q_EN_V1.3.pdf (507.2 KB)
Best wish
zhiguo77

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.
image
Can you attach a SALEAE to your EXTTXE and EXTRXE and obeserve these gpios without modifying anything in the code.

1 Like

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.

1 Like

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.