MBed RAK8212M BG96 - can not connect -3012

I am doing development for RAK8212M. I am using mbed-os. I was using 5.14 up to most current version 5.15 (master branch). I am trying to connect to cellular network using build in BG96. However I can not get it working. What I did:

  1. There is not RAK target currently defined in mbed so I defined custom target. I created folder TARGET_RAK_8280M. I have added my custom_targets.json file. I have inherited my target from “inherits”: [“MCU_NRF52832”] same as NRF52_DK does.
  1. I have added my new PinNames.h where I mapped pins according to technical specification. I could not find those two so I commeted them out. In random examples in the internet I did not see them used.

// MDMSTAT = NC,
// MDMDTR = NC,

  1. Then I defined my RAK_QUECTEL_BG_96 class. I based it on TARGET_WIO_BG96->ONBOARD_QUECTEL_BG96 class from the mbed-os. I have changed onboard modem init
    void RAK_QUECTEL_BG96::onboard_modem_init()
  1. My mbed_app.json looks like in the link. I defined pins similar as in PinNames.h, I have disabled ppp since I think I should use AT commands. I have experimented with different ip version.

gist_github_com/marioboncz/01efc4083640f4fd3051102c46ae737b

  1. And my main looks like this. I have experimented with creating default either device or context or network etc.

Nothing seems to help. All I get is this:

I know the error means there was a problem with communicating with BG96. I have not upgraded any firmware since I got it (because I can not connect to network and only remote upgrade is possible).

https://gist.github.com/ARMmbed/mbed-os/blob/master/features/netsocket/nsapi_types.h#L37

What is wrong with the code?

Specification of RAK8212M: index - powered by h5ai v0.30.0 (https://larsjung.de/h5ai/)

  • sorry for the links but there is a limit (4) on number of links for new users in post.

I hope you found a means to make that hardware earn it’s keep. We just sent a RAK5010 back after spending a few hours discovering all that was wrong with the basic hardware, the ‘software’ was none existent. The fix according to RAK was to burn Adafruit bootloader which requires a Jlink which requires $400 since we purchased the product to make money. Matters not, the BG96 will not work on the network we have access to, Verizon, the IMEI is not valid.