update instructions

This commit is contained in:
grizzly 2024-07-09 22:32:12 -04:00
parent 30569e56a0
commit 782d0c4a30

View file

@ -64,8 +64,45 @@ To set the security bits that diable recovery of the firmware, select `Security`
The firmware of the box contains the information for the conecting to the server.
To get these information, you first need to register the new box in Palitronica's system.
The frontend \footnote[https://steetdev001.z27.web.core.windows.net/] lists all boxes across all tenants and can be used for some operations but we will mainly use it to register a new box.
In order to register a new device, you need some information including the `MCU Serial` and the `MAC Address` of the box.
These two info are not directly readable on the box and require to use the calibration Raspberry Pi.
+ After flashing the FPGA and the base firmware, connect the ethernet cable of the box to a PoE switch on the same network as the Raspberry Pi.
+ On the Pi, run the `UDP server` script (on the desktop) in the terminal.
+ After a few seconds, the script should output the `MCU Serial` and `MAC Address` of the box.
Now in the frontend, follow these steps:
+ On the sidebar, select `Inventory`
+ On the top right corner, select `Dev2 Lab` in teh dropdown menu.
+ Verify that no box with the same `Device Id` already exists in the inventiory.
+ Click the #sym.plus icon in the top right corner.
+ Fill the informations as follows:
#figure(
grid(
columns: 4,
gutter: 5pt,
stroke: 1pt + gray,
align: left + horizon,
inset: 0.5em,
[ *`Sensor Id`*\ On the label.], [*`MCU Serial`*\ From the Pi], [*`HW Version`*\ On the label], [*`MCU Model No.`*
\ 1.00],
[*`Tenant`*\ Dev2 Lab], [*`Aggregator`*\ `sf-pc48`], [*`MAC address`*\ From the Pi], [*`Chip`*\ Model of the Atmel chip],
[*`CAN Interface`*\ Likely False], [*`Power Connector`*\ Connectors of the daughter board], [*`Deployement Status`*\ Personal Us],
),
caption: "Information for registering a new device and where to find them."
)
+ Click `ADD`
Once the device is added to the frontend, you can find the connection string in the IoT Hub #footnote[https://portal.azure.com/#browse/Microsoft.Devices%2FIotHubs]
+ Select iothub-eet-dev-001 in the list.
+ Under `Device Management` #sym.arrow `Devices` select the new device you registered.
+ In the ` Primary connection string` select the part after `SharedAccessKey=`. Make sure to exclude the first "=" sign after `SharedAccessKey` but include the last "=" at the end of the connection string.
= Flashing Firmware