Yes it’s not clear but you can’t just change from Central to Peripheral roles via the UART upgrade because Peripheral uses a different Softdevice (a reserved block of code proprietary to Nordic that implements the BLE protocol).
Also remember to AT&F* after flashing because the settings format are different. It’ll be confused if you don’t.
I’ve already done that on my test module and it’s working well. I’ve enabled the virtual serial port ( AT+CFG 100 0x0001 ) and can now connect to interactive mode console for configuration with my phone.
This opens a lot of new possibilities!
I can imagine Laird will sell modules pre-configured as Peripherals in the future so you’ll be able to skip the J-Link step.
I don’t own a segger j-link device, I see prices from 8 to 300,-, can you advise one, can I use a china clone for this ? or do i need to buy the original edu version …
I can confirm this. The Central and peripheral role devices make use of different soft devices from Nordic that cannot be upgraded over the UART. It’s also worth noting that you can have peripheral (S110 soft device) or central (S120) soft device but not both together.
Booting into VSP via GPIO has two modes, bridge and command. In bridge mode, the radio is bridged to the UART transparently in a serial cable replacement kind of way. VSP command mode is very useful for configuring the APPEUI and APP key wirelessly. If you use the iOS LairdToolkit, you can use the VSP batch app, to configure the keys from a text file and thus avoiding finger trouble entering keys.
It’s worth mentioning that you can load smartbasic programs over the air and issue certain file management commands over the air. But you can’t update the Laird firmware (Nordic soft device+ smartbasic engine).
The RM1xx uses an Nordic nRF51, which has its memory split in two. The first block contains the Nordic soft device and the second block the application. Within that application space, Laird puts the smartbasic engine and creates a filesystem for storage of smartbasic programs, along with some NV storage.
Mark Duncombe
Laird European Field Application Engineer
I am trying to connect my RM186 to TTN, but when I try to do “XCompile + Load” on “cmd.loramac.rm1xx.sb”, I get the error message below. Has anyone encountered the same error and found a fix?
I am wondering whether it could come from an “RM1xx-defs.h” not matching the firmware version (18.4.0.26), but I don’t know where I could find the correct one.
Thanks!
no, not really a must - 18.4.0.26 is fine
if you encounter an error during compilation, you can look up the error code.
error codes you can upgrade within the UwTerminal.
could you compile and run ‘hello world’ from the same page ?
Yes “HelloWorldLoop.sb” works fine.
I also tried “i2cscan.sb”, which compiled correctly but did not execute correctly(“Failed to open I2C, error code: 00005227”) - could not find a match for that error code.
Where did you get “RM1xxUartFwUpgrade.exe” to upgrade it?
I can’t seem to find it on Laird’s website - no “software download” on any of the products, and no login area either…
Indeed your guide is very clear and helpful.
The only issue is that I can’t find that zip file on Laird’s website. If you have a link to the page where you downloaded it, I am very interested!
Cheers