Most Powerful Open Source ERP

ORS Assembly Process

  • Last Update:2022-08-04
  • Version:004
  • Language:en

Agenda

  • SDR main board installation
  • PC installation
  • PC to SDR main board connections
  • OS and software installation
  • ORS packaging

This tutorial teaches how to assemble an Open Radio Station, and package it if necessary (to sell it on shop.rapid.space).

ORS Assembly Parts Introduction

Make sure you have available licences

Check you have one "AMARI NR Small Cell" and one "AMARI 4G 5G CORE D" before assembling the ORS. If not, please refer to rapidspace-ORS.Assembly.Process.Amarisoft.License

 

Flash the SSD

While assembling the ORS, use the USB to M2 SATA adaptor to flash the SSD.

Check you have the correct image (this will take a minute or two to generate):

laptop:~# md5sum ors-ssd.img
f31fc748888f3c4c980d01366d2294ed  ors-ssd.img

WARNING: be very careful to put the correct ssd device argument for the dd command or you might erase your whole PC. 

laptop:~# sudo dd if=ors-ssd.img of=/dev/<SSD-DEVICE> status=progress bs=1M

SSD device should be the whole device, not just a partition (not /dev/sda1 but /dev/sda for instance)

Take out the enclosure and waterproof RJ45 connector

 

Warning: Please do not plug or unplug the POE RJ45 cable from the ORS while injector is powered on.

  • To unplug ORS: Unplug the electrical cord between the POE injector and the electrical outlet, then the RJ45 POE
  • To plug ORS: plug RJ45 POE to the ORS, then plug POE injector to electrical outlet

Doing otherwise might break some electrical components inside the ORS. Even if the ORS has been manually powered off through SSH (for those having root access) you still need to follow this procedure to unplug it.

Prepare Waterproof Cable Mount Connector

Prepare the waterproof cable mount connector from your ORS package and a shielded Ethernet cable. 

Waterproof Cable Mount Connector

Split the connector to 4 parts. Note that C is inside of B.

Cut rubber ring C

Please have C cut as shown in the picture.
Note: cutting rubber ring C is in order to pass the Ethernet cable through. Instead of doing this, you can also make your Ethernet cable so the cable itself can go through the rubber without the RJ45 connector.  

Pass the cable

Pass the shielded Ethernet cable through D C B A in order. 

Connect parts

Connecting each part tightly as original.

Tighten the connector

Turn tight D so that there is no gap between shielded Ethernet cable and rubber ring C.

Open the enclosure 

Use a hexagonal screwdriver to remove the 8 screws from the enclosure.

 

Apply thermal interfaces

Apply thermal interfaces

Install the SDR main board

Install the SDR main board with M2.5 screws * 17.  Start by very lightly screwing all screws, then once all screws are placed tighten them all. Write down the PCB board number.

Prepare the electrical wires

 

Take out the LED wires and close the ORS lid while cutting excess metal wire, as small metal bits landing on PCB could break it. Cut a red and black wire of 23cm for the PC supply, and strip and tin around 4mm at each side.

Connect the wires to PTSM connectors

Connect the LED wires and the PC supply cables in a PTSM connector. The metal wires should not stick out of the PTSM, cut them if necessary. Use a SIM pin to open the PTSM connector in order to insert the cable into it as shown on the image.

Twist the power supply wires

Twist the power supply wires

Connect the LED wires and RJ45 cable

 

Plug the PTSM connector from the LED wires in the SDR main board. Plug an armored RJ45 cable between the ORS power input and the PCB power input. If the RJ45 cable is too long, use an insulated cord to hold it in place.

Remove the plastic films

Please remove the plastic films before you plug the coax cables. 

Twist the RF coaxial cables

Twist the 3 RF coaxial cables by first twisting them in the vertical plane, then the horizontal plane. Don't use pliers or tools that could break the cables, they are fragile.

Plug the RF coax cables

Plug the 3 RF coax cables. Remove the black cable sleeve on the Radio 2 as shown on the image. First put Radio 2 cable, then Radio 1, then GPS. The connector on the boards are fragile, please be careful.

Paste SBC(PC) on the enclosure

On the other part of the enclosure, install the Single Board Computer with the M3 screws. Please remove the plastic from the bottom of SBC before you paste. Fix it with 4 screws (14cm)

Install PC

Install the DDR4 SODIMM, the MSATA SSD and the PCI Express adaptor board.

Set the jumpers on the SBC

Set the jumpers on the SBC.

Connect power cable to the SBC

Please put the enclosure with SBC and the other side on the same plane like the figure shown. Connect the power cable to the SBC.

Connect the power cable between PTSM and SDR

Connect the power cable in a PTSM connector and plug this connector in the SDR main board. 

Connect ribbon FFC

Connect the ribbon FFC between the PCI Express adaptor board and the SDR main board.

Connect the second RJ45 cable

Connect the second RJ45 cable between the SBC and the SDR main board.

Close the ORS

Before closing the ORS, write down the PC serial number. Close the enclosure and connect the PoE cable to start the system.

Place Labels on the ORS

Place a "ORSXX" label on the interior of the case of the PC, and on the exterior of the case as shown on the images

Power on the ORS

Power on the ORS. If you are making multiple ORS, power only one at a time and set the hostname before powering the others, otherwise you won't know which ORS is which.

 

Set hostname and password

Set hostname and password:

root@orsXX:~# scripts/0-setup-hostname-passwd ORSNUMBER

Log out then log back in again to check hostname is correct. Please also test the password by logging in without your SSH key:

laptop:~# ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no root@ORSIP

Run the update script

root@orsXX:~# scripts/1-update

 

Flash the SDR board

Flash the SDR board

Make sure the FPGA is not yet visible, if the FPGA is already there no need for this procedure

root@orsXX:~# scripts/2-check-FPGA

Patch the FPGA:

root@orsXX:~# scripts/3-patch-FPGA

 

Hard reset the box (totally power off, then power on)

Check the FPGA is visible to make sure everything is OK

Upgrade the SDR board

Upgrade the SDR board

root@orsXX:~# scripts/4-upgrade-FPGA

 

Add the licence

Add the licence

Get the Host ID of the ORS:

root@orsXX:~# scripts/5-get-host-ID

Then, get the corresponding licenses: rapidspace-ORS.Assembly.Process.Amarisoft.License, and copy them to the ORS:

user:~# ssh ORS31 mkdir -p .amarisoft && scp lteenb.key ltemme.key root@ORS31:.amarisoft/

Test the licences by launching lte

Install SlapOS and Re6st

Install SlapOS and Re6st

Get your production Re6st and SlapOS tokens, and run the script to install slapOS and re6st:

root@orsXX:~# scripts/6-setup-re6st-slapos

Install ORS playbook

Install ORS playbook

Run the script to install the ORS playbook:

root@orsXX:~# scripts/7-setup-playbook

Supply and Request the software release

Use the script in amarisoft-private repository to do all the necessary supplies and requests.

 

Configure for root access

If ORS is for root access, run the corresponding script

root@orsXX:~# scripts/8-configure-root-access

 

Disable SSH access by password

Disable SSH access by password

Edit /etc/ssh/ssh_config and set "PermitRootLogin: prohibit-password" and "PasswordAuthentication: no". Uncomment these options if they are commented

Flash SIM card Open-cells

Clone the ors-util repository:

root@orsXX:~# git clone https://lab.nexedi.com/nexedi/ors-utils.git
root@orsXX:~# cd ors-utils/uicc-v2.4
root@orsXX:~# make

Execute this command:

root@orsXX:~# ./write-sim-card ORS_NUMBER

Once the first SIM card is plugged, type "y" then press the Enter key

Wait until all the transfer is done, then unplug the SIM card, put the next one, and press "y" then the Enter key again. Do this for all 5 SIM cards.

Once you are done, remove the SIM card and press "q" then Enter key. 

If you need to write a specific SIM card, you can pass the SIM card number as second argument (1, 2, 3, 4 or 5):

root@orsXX:~# ./write-sim-card ORS_NUMBER SIM_CARD_NUMBER

To read a SIM card data use:

root@orsXX:~# sudo ./program_uicc

To perform the same, with trace: all data exchange with the UICC are printed

root@orsXX:~# sudo DEBUG=y ./program_uicc

Show the parameter help to set values in the UICC.

root@orsXX:~# sudo ./program_uicc --help

Test the SIM cards and ORS

Test that each SIM card can connect to the ORS by putting it in a UE. Please also test the UE can connect to the ORS from a distance with a good enough bandwidth, to make sure the connection between SDR board and ORS box is fine.

 

Add interface option to re6st

Right before powering off the ORS, add "interface" option in re6stnet.conf.

First find the name of the interface connected to internet:

root@orsXX:~# ip route | grep default

Then add in /etc/re6stnet/re6stnet.conf:

interface <interface-name>

(Example: if interface name is enp0s31f6, add "interface enp0s31f6" to re6stnet.conf

Please poweroff the ORS right after if you are in Lille office as this will cause the ORS to connect with other re6st from trial network in the office

Delete bash history, scripts and poweroff the ORS

Delete bash history and poweroff the ORS

  • logout
  • login again
  • type " rm -rf .bash_history scripts" by making sure to insert a space before rm
  • poweroff and don't login again

Put the ORS back in the enclosure box

Write down the enclosure serial number. Then put the ORS back in the enclosure box, and fill it with package fillers to protect it during transport.

Prepare the ORS package with accessories

Arrange the ORS box, RJ45 POE cable, Antennas, N to SMA adaptors and sim cards in the box as shown on the image.

Checklist before closing the package

Before filling the package with package fillers, please be 100% sure you did all this correctly:

  • Add interface option to re6st before closing the ORS
  • Test all SIM cards
  • Write down all serial numbers and information related to ORS (PCB, PC, Box, MAC address, password)
  • Have all screws tightly screwed on the enclosure
  • Have in the package:
    • the ORS Box
    • The RJ45 POE cable with its connector
    • The Antennas
    • The N-to-SMA adaptors
    • The SIM cards
  • If the ORS is to be sent outside of Europe, print the invoices for customs and put in the package before closing it

 

Transfer all the services / servers in the Rapid.Space project

Create the Rapid.Space project with the client name, and transfer all the services and servers in it.

 

ERP5 workflow

  • Create the sale order and generate the sale packing list.
  • Create the purchase order for "Open Radio System Without Licence" and "ORS Accessories", order and confirm it
  • Correct the related internal packing list if necessary, then receive it

 

Send the welcome mail

Use the script to send the welcome mail, and include the sale packing list