-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address and other parameters to be stored in EPROM #1
Comments
Problem of allowing configuration of address and aircraft type is that it require some skills to configure it and also (more problematic) to maintain it (changing from one aircraft to another one, ...). Risks are duplicate IDs and wrong data. We can use online db to convert OGN ID to OACI ID + other data (reg num, owner, ...). (Flarmnet like) If we maintain data configuration in device maybe we can override them on ogn web db? |
Here I find how to get the 96-bit unique ID for STM32. If we want to make a 24-bit address out of it we would need an algorithm that selects the right part of this ID as it must be different for every tracker. As well the algorithm should allow for other platforms than STM32 to generate their unique 24-bit address. |
This is likely exact information for STM32L152RB: Are these addresses specified in some configuration files or we have to find them for every individual MCU type ? |
STM32L series reference manual: states in chapter 31: |
Update link: RM0038 Reference manual |
According to ef3c918, does the 24 bits ID is really unique ? // set the address to the unique-ID of the CPU
options.AcftID = 0x07000000 | ((*(uint32_t*)0x1FF80050)&0x00FFFFFF); This is a 24 bits mask of the 96 bits unique ID. So it could have a lot collisions. |
Also, we could use the unique serial number of the USB chip or the serial number of the GPS. It's possible to use the EEPROM of the FTDI chip to store parameters, but I don't know if this memory is readable from the UART side? Also, theses S/N are longer than 24 bits, so trackers could have the same radio ID 🤔 |
STM32 CPU has 96-bit (12 bytes) unique ID, but this is too long for 3-bytes of OGN address. |
Ok
👍
The idea was to use FTDI tools to store a new ID. |
We need to store:
Address: 24 bits
ICAO flag: 1 bit (if the above address is ICAO assigned)
Aircraft type: 4 bits
Private/visibility flag: 1 bit
This data could be combined in one Acft_ID 32-bit word, like we do already in OGN
Address could be as well generated from the 96-bit unique CPU ID.
Would be good to provide calls to read the Acft_ID from any task
and commands in the console to store this data.
As well a call to read the unique ID is needed and an algorith to convert it to 24-bit address.
The text was updated successfully, but these errors were encountered: