cariboulabs-cariboulite/README.md

169 wiersze
10 KiB
Markdown
Czysty Zwykły widok Historia

2021-06-14 22:03:56 +00:00
# CaribouLite
2021-11-01 07:33:59 +00:00
CaribouLite is an affordable, educational, open-source SDR evaluation platform and a HAT for the Raspberry-Pi family of boards (40-pin versions only). It is built for makers, hackers, and researchers and was designed to complement the current SDR (Software Defined Radio) eco-systems offering with a scalable, standalone dual-channel software-defined radio.
2021-06-14 22:03:56 +00:00
2021-11-01 07:33:59 +00:00
<table>
<tr>
<td><img src="hardware/rev2/pictures/oshwa.png" alt="Open source hardware association certificate"></td>
2022-02-10 15:21:26 +00:00
<td>This project has been certified by OSHWA</td>
2021-11-01 07:33:59 +00:00
</tr>
</table>
2021-06-14 22:03:56 +00:00
<table>
<tr>
2021-10-18 10:30:42 +00:00
<td><img src="hardware/rev2/pictures/DSC_1151.jpg" alt="CaribouLite R2" height="200"></td>
2021-06-14 22:03:56 +00:00
</tr>
<tr>
2021-10-18 10:30:42 +00:00
<td>CaribouLite R2.5 SDR mounted on a RPI-Zero</td>
2021-06-14 22:03:56 +00:00
</tr>
</table>
2021-10-18 10:30:42 +00:00
# Getting Started & Installation
2021-11-01 07:33:59 +00:00
Use the following steps to install the CaribouLite on your choice of RPI board
2021-10-18 10:30:42 +00:00
1. Mount the CaribouLite on a **un-powered** RPI device using the 40-pin header.
2. Power the RPI device, wait for it to finish boot sequence.
2021-11-01 07:33:59 +00:00
3. Clone this repository into a local directory of your choise (in this case `~/projects`)
2021-10-18 10:30:42 +00:00
```
2021-11-01 07:33:59 +00:00
mkdir ~/projects
cd ~/projects
2021-10-18 10:30:42 +00:00
git clone https://github.com/cariboulabs/cariboulite
cd cariboulite
```
4. Depending on whether you run on a headless (not monitor nor keyboard / mouse) system or not use the following setup command:
```
sudo setup.sh gui
# or
sudo setup.sh
```
The setup script requires internet connection and it follows the following automatic steps:
I. System type discovery and dependency check
II. Installation of the not-found dependencies
III. CaribouLite code compilation and installation
IV. EEPROM setup - boot time module's loading and device tree definition.
Following these steps, the RPI has to be rebooted before starting using it as an SDR.
2021-11-01 16:08:44 +00:00
To compile the API library and SoapySDR API from code please click [here](/software/libcariboulite/README.md)
2021-10-18 10:30:42 +00:00
# SMI Interface
2021-11-01 07:33:59 +00:00
Unlike many other HAT projects, CaribouLite utilizes the **SMI** (Secondary Memory Interface) present on all the 40-pin RPI versions. This interface is not thoroughly documented by both Raspberry-Pi documentation and Broadcomm's reference manuals. An amazing work done by [Lean2](https://iosoft.blog/2020/07/16/raspberry-pi-smi/) (code in [git repo](https://github.com/jbentham/rpi)) in hacking this interface has contributed to CaribouLite's technical feasibility. A deeper overview of the interface is provided by G.J. Van Loo, 2017 [Secondary_Memory_Interface.pdf](docs/smi/Secondary%20Memory%20Interface.pdf). The SMI interface allows exchanging up to ~500 Mbit/s (depending on the FPGA, data-bus width, etc.) between the RPI and the HAT, and yet, the results vary between the different versions of RPI. The results further depend on the specific RPI version's DMA speeds.
2021-09-07 10:58:33 +00:00
2023-01-20 09:09:22 +00:00
The SMI interface can be accessed from the user space Linux applications as shown in [Lean2](https://iosoft.blog/2020/07/16/raspberry-pi-smi/), but Broadcomm also provided a neat minimal character device interface in the `/dev` directory using the `open`, `close`, `write`, `read`, and `ioctl` system calls. More on this interesting interface in the [designated readme file](software/libcariboulite/src/caribou_smi/index.md). This device driver needs to be loaded using `modprobe`.
2021-06-14 22:03:56 +00:00
2021-11-01 07:33:59 +00:00
More information on this interface can be found [here (HW side)](docs/smi/README.md) and [here (SW side)](software/libcariboulite/src/caribou_smi/README.md).
2021-10-18 10:30:42 +00:00
2021-06-16 06:41:54 +00:00
2021-09-07 10:58:33 +00:00
<table>
<tr>
<td><img src="hardware/rev2/pictures/DSC_1102.jpg" alt="Top View"></td>
</tr>
<tr>
<td>Cariboulite /w RPI Zero, two channels occupied</td>
</tr>
</table>
2021-06-16 06:40:12 +00:00
# Hardware Revisions
2021-09-07 10:58:33 +00:00
The board first prototyping (**Red**) revision ([REV1](hardware/rev1)) has been produced and tested to meet our vision on the board's capabilities. This revision was used to test its RF parts, the digital parts, and to develop its firmware and software support over the RPI.
2021-09-07 11:13:38 +00:00
2021-10-18 10:30:42 +00:00
<table>
<tr>
<td><img src="hardware/rev1/DSC_1044.jpg" alt="CaribouLite R1" width="500"></td>
<td><img src="hardware/rev2/pictures/Rev2.5/front_rfi.png" alt="CaribouLite Connectors" width="500"></td>
2021-10-18 10:30:42 +00:00
</tr>
<tr>
<td>CaribouLite Rev1 - the prototype version</td>
<td>CaribouLite Rev2.5 - Production Revision</td>
2021-10-18 10:30:42 +00:00
</tr>
</table>
2021-09-07 11:13:38 +00:00
The second revision ([REV2](hardware/rev2)) - **White** - was then designed to further refine the design as described below:
1. Image rejection filtering improvement - U10 and U12 (HPF & LPF) - have been replaced by integrated LTCC filters by MiniCircuits with much better out-of-band rejection than the former ones.
2. Removing FPGA flash - redundant given the fact that the the RPI configures the FPGA in <1sec over SPI. Even if we have a whole library of custom made FPGA firmware files, switching between them is as simple and fast as a single linux command.
3. Board layout improvements and overlays (silkscreen) beautification (including logo).
2021-09-06 13:05:01 +00:00
4. A single system level 3.3V power (while the FPGA still receives 2.5V and 1.2V for its core). A linear regulator (rather than a switching DC-DC) was used to reduce conducted (power and ground) noise levels.
2023-01-20 09:09:22 +00:00
5. Top and bottom EMI shielding option - the EMI/RFI shield design models are provided in the [3d directory](hardware/rev2/3d/)
6. More detailed changes in the [schematics](hardware/rev2/schematics/cariboulite_r2_sch.PDF).
2021-06-14 22:34:04 +00:00
In summary, in CaribouLite-Rev2.5 PCB design has been thoroughly re-thought to meet its educational needs with performance in mind. The RF path has been annotated with icons to ease the orientation in the schematics sheets, friendly silk writing was added describing system's components by their functionality rather than logical descriptors, and more.
2021-06-14 22:34:04 +00:00
<table>
<tr>
2021-09-07 11:13:38 +00:00
<td><img src="hardware/rev2/pictures/DSC_1127.jpg" alt="Top View"></td>
</tr>
<tr>
<td><img src="hardware/rev2/pictures/DSC_1132.jpg" alt="Top View"></td>
2021-06-14 22:34:04 +00:00
</tr>
<tr>
<td>Top and Bottom views of CaribouLite <b>Rev2.4</b> (pre-production)</td>
2021-06-14 22:34:04 +00:00
</tr>
</table>
<table>
<tr>
<td><img src="hardware/rev2/pictures/Rev2.5/front_exposed.png" alt="Top View"></td>
<td><img src="hardware/rev2/pictures/Rev2.5/front_rfi.png" alt="Top View"></td>
</tr>
<tr>
<td><img src="hardware/rev2/pictures/Rev2.5/back_exposed.png" alt="Top View"></td>
<td><img src="hardware/rev2/pictures/Rev2.5/back_rfi.png" alt="Top View"></td>
</tr>
<tr>
<td>Top and Bottom views of CaribouLite <b>Rev2.5</b></td>
<td>Top and Bottom views of CaribouLite <b>Rev2.5</b> with EMI/RFI shields</td>
</tr>
</table>
2021-06-14 22:03:56 +00:00
# Specifications
<B>RF Channels:</B>
- Sub-1GHz: 389.5-510 MHz / 779-1020 MHz
- Wide tuning channel: 30 MHz - 6 GHz (excluding 2398.5-2400 MHz and 2483.5-2485 MHz)
<table>
<tr>
2021-06-14 23:24:36 +00:00
<td><img src="hardware/rev1/frequencies.png" alt="spectra"></td>
2021-06-14 22:03:56 +00:00
</tr>
<tr>
<td style="text-align:center">Applicable spectra, S1G - sub-1GHz, WB - Wide tuning channel</td>
</tr>
</table>
2021-10-16 11:42:42 +00:00
<B>Note</B>:
2023-01-20 09:09:22 +00:00
The gaps are defined by the design constraints of the system and may not exist in real-life hardware. Actual modem synthesizer outputs test show wider margins at room temperature than those written in the datasheet, but, as noted by Microchip, performance may suffer.
2021-06-14 22:03:56 +00:00
<B>FPGA specifications:</B>
- 160 LABs / CLBs
- 1280 Logic Elements / Cells
- 65536 Total RAM bits
- 67 I/Os, Temp: -40-100 degC
<B>Applicable RPI models</B>: RPI_1(B+/A+), RPI_2B, RPI_Zero(Zero/W/WH), RPI_3(B/A+/B+), RPI_4B
Parameter | Sub-1GHz | Wide Tuning Channel
---------------------------|------------------------------|------------------------------------------------------------------
Frequency tuner range | 389.5-510 MHz / 779-1020 MHz | 30 MHz - 6 GHz (excluding 2398.5-2400 MHz and 2483.5-2485 MHz)
Sample rate (ADC / DAC) | 4 MSPS | 4 MSPS
2021-11-01 07:33:59 +00:00
Analog bandwidth (Rx / Tx) | 2.5 MHz | 2.5 MHz
2021-10-16 11:42:42 +00:00
Max Transmit power | 14 dBm | >10 dBm @ 30-2400 MHz, >5 dBm @ 2400-6000 MHz
Receive noise figure | <5 dB | <6 dB @ 30-3500 MHz, <8 dB @ 3500-6000 MHz
2021-06-14 22:03:56 +00:00
2021-10-16 11:42:42 +00:00
<B>Note</B>:
2021-06-15 12:13:15 +00:00
(1) Feature comparison table with other SDR devices will be published shortly
(2) Some of the above specifications are simulated rather than tested
2021-06-17 12:45:43 +00:00
(3) Analog bandwidth controlled by the modem
(4) The ISM version of the board doesn't contain the wide-range of frequencies (30-6000 MHz) and contains the native capabilities of the Modem IC.
2021-06-18 12:36:26 +00:00
2021-07-01 08:02:22 +00:00
# Disclaimer
CaribouLite is a test equipment for RF systems. You are responsible for using your CaribouLite legally.
Definitions: THE SUBJECT CONTENT: all files, software, instructions, information, ideas and knowledge located in this git repository.
No Warranty: THE SUBJECT CONTENTS ARE PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT CONTENTS WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT CONTENTS WILL BE ERROR FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT CONTENTS. FURTHER, THE REPOSITORY OWNERS AND CONTRIBUTORS DISCLAIM ALL WARRANTIES AND LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTE IT "AS IS."
2023-01-20 09:12:55 +00:00
Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST THE REPOSITORY OWNERS AND CONTRIBUTORS, THEIR CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE OF THE SUBJECT CONTENTS RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE SUBJECT CONTENTS, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESSLY THE REPOSITORY OWNERS AND CONTRIBUTORS, THEIR CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY LAW.
2021-07-01 08:02:22 +00:00
2021-06-18 12:36:26 +00:00
# License
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.