Hi
I am a new sidework developer,I want to use our designed board to develop sidework, but there are some differents between 52840 + sx1262 Development board(52840dk, sx1262 evaluation board)with our board.
Can you give me some suggestions to modify the code to adapt to our board? Thanks.
1. Is it feasible for us to use the interrupt monitoring method to control the RF switch in the sidework project?
Semtech RF switch control(in sidework use semtech_sx1262_antenna_enable_gpios to control ANT_SW )
ANT_SW is always 1 so when DIO2 is 1 RF1 on RF2 off, when DIO2 is 0, RF1 off RF2 on
Below is our circuit diagram.
When DIO2 is 1 we can through P1.04 to know DIO2 statu so we should control ANT_SW2(P1.02) = 0
at this time ANT_SW1=1, ANT_SW2=0 RF1 on, RF2 off.
When DIO2 is 0 we can through P1.04 to know DIO2 statu so we should control ANT_SW2(P1.02) = 1
at this time ANT_SW1=0, ANT_SW2=1 RF1 off, RF2 on.
We use P1.04 in the sidework project to monitor and control P1.02. Is this method defective or do you have any recommended methods? I look forward to your suggestions.
2. How to set the RF crystal calibration value of sx1262 in the sidework project?
Our module has a slight frequency offset in the lora radio frequency part and needs software to adjust.
In the LoRawan project we can use the following code to adjust the frequency offset when sending.
In the sidework project I found in semtech_radio_ifc.h have emtech_radio_set_trim_cap_val interface.
How can I use this interface in my project?
Thank you