cariboulabs / cariboulite

CaribouLite turns any 40-pin Raspberry-Pi into a Tx/Rx 6GHz SDR
1.08k stars 100 forks source link

AT86RF215 input IQ sync not reached on LVDS interface during TX #189

Open matteoserva opened 7 months ago

matteoserva commented 7 months ago

I tried sending data via the SMI interface to the cariboulite. By reading the registers on the AT86RF215 modem I see that the TX interface (from rpi to cariboulite) is correctly configured and ready to receive data. The register IQIFC2.SYNC never becomes 1 when sending data normally. If I enable the loopback mode, then the symc is reached.

This is the report from at86rf215_get_iq_if_cfg(&radio->sys->modem,&cfg,1) when sending data

Current I/Q interface settings:
   Loopback (RX => TX): disabled
   Drive strength: 4 mA
   Common mode voltage: 1.2 V
   I/Q interface for sub-GHz: enabled
   I/Q interface for 2.4-GHz: enabled
   I/Q Clock <=> Data skew: 4.906 ns
   Status 'Sync Failure': 0
   Status 'Failsafe mode': 0
   Status 'Is synchronized to incoming I/Q': 0
matteoserva commented 7 months ago

update: The bug was in the fpga code. Now it's syncing. I'll make a pull request once I'm ready.