EttusResearch / uhd

The USRP™ Hardware Driver Repository
http://uhd.ettus.com
Other
946 stars 646 forks source link

x300: Add API access to GPSDO UART #657

Open jholtom opened 1 year ago

jholtom commented 1 year ago

x300: Add API Access to GPSDO UART

I added the ability to send arbitrary UART commands to the GPSDO from the UHD API.

For my use case, this enables sending commands to allow the GPSDO clock to free-run, while GPS is still locked, providing time information, but with continuous phase from the crystal. This enables interesting applications. It also allows for getting other information, and configuring the GPSDO more than the default settings without recompiling UHD.

Which devices/areas does this affect?

x300/x310, has no affect unless the user sends a command to change the behavior of the GPSDO, and only then when the GPSDO is selected as a time or clock source.

Testing Done

Tested on 11 x300/x310 units on latest firmware. Compared clock output with oscilloscope to check expected behavior from sending commands to the GPSDO, and comparing GPSDO responses. Behaves correctly. Have run many long experiments on the systems since adding code, no failure condition has been observed.

Checklist

github-actions[bot] commented 1 year ago

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

jholtom commented 1 year ago

I have read the CLA Document and I hereby sign the CLA