2022-05-30 04:51 AM
Hello,
I have a custom board based on STM32L073 MCU with S2LP radio device to provide SIGFOX functionality.
I am looking to provision my on chip S2LP device (i.e get ID/PAC/KEY) information from ST. I have referred "Getting started with the Sigfox S2-LP kit" and also this video https://www.youtube.com/watch?v=JD6UE7ekRxE but all the information is related to NUCLEO boards and not regarding any custom S2-LP board.
Tested: When i flash SIGFOX_CLI_DEMO_NUCLEO_L0.bin to my custom board and try to open the COM Port (ST-DK) in SIGFOX GUI App i get the error of "Wrong FW in the selected board".
So can anyone please tell me how can i get ID/PAC/KEY for S2LP custom board based on STM32L073 MCU as i am unable to perform the same.
2022-06-27 08:43 PM
2022-06-27 10:44 PM
Hello, we have a board (from our client) in hand that has STM32L073RZ MCU and S2LP transceiver on it for Sigfox communication but it's not a Nucleo board. So far that reason, its possible that i am getting that error of wrong firmware. I asked the question on Sigfox Slack community regarding whether the ID/PAC info will be provided by the ST or i have to get it from Sigfox build procedure and they told me to get ID/PAC info from Sigfox Build procedure as the hardware in question is a custom hardware using STM32L0 and S2LP chip.
Current update : I have received the set of 5 credentials from Sigfox Build procedure for testing phase.
I have followed the given link : https://build.sigfox.com/development#network-credentials
which in the end gives me id_key.bin file (contain decrypted binary data of 5 Keys) and ID/PAC text file.
Now i would like to know what are the information i have to write in flash ? ID/PAC ? In Sigfox documentation, it's written that i have to flash the board with id_key.bin file but how and at which particular address ?
Can you please tell the details steps of how i can flash/write the ID/PAC/KEY (received from Sigfox Build) and other info required for S2LP in flash.
Regards,
Nikhil Komalan
2022-06-27 11:18 PM
Hello,
The parameter details are there in Table 13 of UM2169.
Once output bin file is generated, the FLASH can be written manually using firmware(Memory Read/write).
The FLASH Address can be choosen as defined by user.
If you are using ,"STSW-S2LP-SFX-DK" v1.7.1 from st.com, FLASH Address are defined in "icf" file.
"SIGFOXUSER_FLASH_DATA".
Once credentials has been written , try to execute commend sent in snapshot.
get_id<CR><LF>
get_pac<CR><LF>
Try to verify, if this is same as the one that has been written.
2022-06-28 12:12 AM
hello, the binary file is generated and i have currently used STCubeProgrammer for flashing at default location of 0x0800FF00.
"
Once credentials has been written , try to execute commend sent in snapshot.
get_id<CR><LF>
get_pac<CR><LF>
"
Which program have you flashed to perform this ?
2022-06-28 12:33 AM
Okay.
Currently i am testing my setup for Uplink using Push Button example. And i was able to retrieve my SIgfox ID and other info from flash as written previously using ST Cube Programmer.
So my ST_Sigfox_Init function get executed properly without any error. Now what should be my next step. Currently i dont have a Sigfox bakend account as well.
2022-06-28 12:58 AM
Hello,
Ok, Good to know Initialization has been done without ERROR.
Try to execute "SIGFOX_API_send_frame" , by setting "but_pressed" variable either by Push Button or by Firmware.
If this function Get executed without any "error" (SFX_ERR_NONE) . This indicates, the message has been transmitted.
"use_public_key" can be set as per requirement.
2022-06-28 03:36 AM
Getting error code 126 (0x7e) . Will my device send data ? its currently not registered at backend on Sigfox.
2022-06-28 03:37 AM
Getting error code 126 (0x7e) . Will my device send data ? its currently not registered at backend on Sigfox.
2022-06-28 03:51 AM
Hello,
For testing purpose , Please comment below lines to disable low Power Mode:
// ST_MCU_API_GPIO_LowPower();
// HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON,PWR_STOPENTRY_WFI);
// ST_MCU_API_SetSysClock();
// ST_MCU_API_GPIO_Restore();
After successful transmission , LED3 will blink 3 times.
But No Error should be returned by the function "SIGFOX_API_send_frame".