Attach to network with BC95-G


#1

Hi all

I’ve just received a BPI NB-IoT module and I’m trying to attach to the network. I connected the USB to my computer and now I have a terminal where I’m apparently attached to the BC95-G and I can issue AT commands. However I’m not able to turn on the radio. When I try to issue “AT+CFUN=1” I always get “ERROR”. Am I missing something?

Thanks!


(So Lu) #2

Hey @colrack, good to see you hear as well :smile:

Never encountered problems in that step. Can the SIM be read (AT+CIMI and AT+NCCID)? Did you do a FW upgrade of the BC95-G? Do you still have the IMEI configured (AT+CGSN=1)?

Which config do you have on the BC95G (AT+NCONFIG?) ?


#3

Hi solu! :slight_smile:

I just wanted to reply on the other topic but the RAK forum seems offline now. No, the SIM cannot be read but I think you can only read it after AT+CFUN=1. This module arrived with BC95GJBR01A04 firmware; it is the latest available so I did not need to upgrade. I’m out of office now, I will answer your question soon; there is a lot of stuff in AT+NCONFIG? but I configured it more ore less like the other BC95-G I own (which has a less recent firmware).

Anyway is the module working for you if you only supply power with the USB cable?


(So Lu) #4

You are right about the CIMI, it only works after CFUN=1

Yes, the power from the USB cable is sufficient. Can you see how long it takes before you get the error? This could give an hint about the problem.

Below you can see how long it takes to turn the radio on in my case. Also I paste the NCONFIG as it was after the FW upgrade. Not sure if all is set correctly, but it is working so I didn’t want to fix it.

  • [2018-09-26 21:24:52.227] AT+CFUN=1
  • [2018-09-26 21:24:54.266] OK
  • [2018-09-26 21:26:48.633] ATI
  • [2018-09-26 21:26:48.639] Quectel
  • [2018-09-26 21:26:48.649] BC95-G
  • [2018-09-26 21:26:48.657] Revision:BC95GJBR01A04
  • [2018-09-26 21:26:48.683]
  • [2018-09-26 21:26:48.685] OK
  • [2018-09-26 21:26:58.006] AT+NCONFIG?
  • [2018-09-26 21:26:58.021] +NCONFIG:AUTOCONNECT,TRUE
  • [2018-09-26 21:26:58.049] +NCONFIG:CR_0354_0338_SCRAMBLING,TRUE
  • [2018-09-26 21:26:58.090] +NCONFIG:CR_0859_SI_AVOID,TRUE
  • [2018-09-26 21:26:58.123] +NCONFIG:COMBINE_ATTACH,FALSE
  • [2018-09-26 21:26:58.155] +NCONFIG:CELL_RESELECTION,TRUE
  • [2018-09-26 21:26:58.188] +NCONFIG:ENABLE_BIP,FALSE
  • [2018-09-26 21:26:58.218] +NCONFIG:MULTITONE,TRUE
  • [2018-09-26 21:26:58.243] +NCONFIG:NAS_SIM_POWER_SAVING_ENABLE,TRUE
  • [2018-09-26 21:26:58.287] +NCONFIG:BARRING_RELEASE_DELAY,64
  • [2018-09-26 21:26:58.325] +NCONFIG:RELEASE_VERSION,13
  • [2018-09-26 21:26:58.354] +NCONFIG:RPM,FALSE
  • [2018-09-26 21:26:58.375] +NCONFIG:SYNC_TIME_PERIOD,0
  • [2018-09-26 21:26:58.405] +NCONFIG:IPV6_GET_PREFIX_TIME,15
  • [2018-09-26 21:26:58.440] +NCONFIG:NB_CATEGORY,1
  • [2018-09-26 21:26:58.464] +NCONFIG:RAI,FALSE
  • [2018-09-26 21:26:58.486] +NCONFIG:HEAD_COMPRESS,FALSE
  • [2018-09-26 21:26:58.517] +NCONFIG:RLF_UPDATE,FALSE
  • [2018-09-26 21:26:58.547] +NCONFIG:CONNECTION_REESTABLISHMENT,FALSE
  • [2018-09-26 21:26:58.591]
  • [2018-09-26 21:26:58.593] OK
  • [2018-09-26 21:27:05.002] AT+CFUN=0
  • [2018-09-26 21:27:05.029] OK
  • [2018-09-26 21:27:09.249] AT+CFUN=1
  • [2018-09-26 21:27:11.288] OK

#5

Using QNavigator:

[2018-09-27 14:03:24:307_S:] AT+CGSN=0
[2018-09-27 14:03:24:307_R:] AT+CGSN=0
[2018-09-27 14:03:24:322_R:] AT+CGSN=0
[2018-09-27 14:03:24:338_R:] MPA18HU1E000059

[2018-09-27 14:03:24:353_R:] OK
[2018-09-27 14:03:27:042_S:] AT+CGSN=1
[2018-09-27 14:03:27:056_R:] AT+CGSN=1
[2018-09-27 14:03:27:056_R:] AT+CGSN=1
[2018-09-27 14:03:27:072_R:] +CGSN:867724030086XXX (replaced XXX digits)

[2018-09-27 14:03:27:103_R:] OK
[2018-09-27 14:03:44:275_S:] ATI
[2018-09-27 14:03:44:275_R:] ATI
[2018-09-27 14:03:44:275_R:] ATI
[2018-09-27 14:03:44:290_R:] Quectel
[2018-09-27 14:03:44:290_R:] BC95-G
[2018-09-27 14:03:44:306_R:] Revision:BC95GJBR01A04

[2018-09-27 14:03:44:337_R:] OK
[2018-09-27 14:03:48:933_S:] AT+CGMR
[2018-09-27 14:03:48:947_R:] AT+CGMR
[2018-09-27 14:03:48:963_R:] AT+CGMR
[2018-09-27 14:03:48:963_R:] SSB,V150R100C10B200SP1

[2018-09-27 14:03:48:994_R:] SECURITY_A,V150R100C20B300SP2

[2018-09-27 14:03:49:025_R:] PROTOCOL_A,V150R100C20B300SP2

[2018-09-27 14:03:49:057_R:] APPLICATION_A,V150R100C20B300SP2

[2018-09-27 14:03:49:103_R:] SECURITY_B,V150R100C20B300SP2

[2018-09-27 14:03:49:134_R:] RADIO,Hi2115_RF0

[2018-09-27 14:03:49:150_R:] OK
[2018-09-27 14:03:59:963_S:] AT+CFUN=0
[2018-09-27 14:03:59:979_R:] AT+CFUN=0
[2018-09-27 14:03:59:979_R:] AT+CFUN=0
[2018-09-27 14:03:59:994_R:] OK
[2018-09-27 14:04:02:668_S:] AT+CFUN=1
[2018-09-27 14:04:02:668_R:] AT+CFUN=1
[2018-09-27 14:04:02:681_R:] AT+CFUN=1
[2018-09-27 14:04:04:543_R:] ERROR
[2018-09-27 14:04:27:432_S:] AT+NCONFIG?
[2018-09-27 14:04:27:447_R:] AT+NCONFIG?
[2018-09-27 14:04:27:464_R:] AT+NCONFIG?
[2018-09-27 14:04:27:464_R:] +NCONFIG:AUTOCONNECT,TRUE
[2018-09-27 14:04:27:494_R:] +NCONFIG:CR_0354_0338_SCRAMBLING,TRUE
[2018-09-27 14:04:27:541_R:] +NCONFIG:CR_0859_SI_AVOID,TRUE
[2018-09-27 14:04:27:573_R:] +NCONFIG:COMBINE_ATTACH,FALSE
[2018-09-27 14:04:27:603_R:] +NCONFIG:CELL_RESELECTION,TRUE
[2018-09-27 14:04:27:635_R:] +NCONFIG:ENABLE_BIP,FALSE
[2018-09-27 14:04:27:666_R:] +NCONFIG:MULTITONE,TRUE
[2018-09-27 14:04:27:697_R:] +NCONFIG:NAS_SIM_POWER_SAVING_ENABLE,FALSE
[2018-09-27 14:04:27:744_R:] +NCONFIG:BARRING_RELEASE_DELAY,64
[2018-09-27 14:04:27:775_R:] +NCONFIG:RELEASE_VERSION,13
[2018-09-27 14:04:27:806_R:] +NCONFIG:RPM,FALSE
[2018-09-27 14:04:27:822_R:] +NCONFIG:SYNC_TIME_PERIOD,0
[2018-09-27 14:04:27:854_R:] +NCONFIG:IPV6_GET_PREFIX_TIME,15
[2018-09-27 14:04:27:885_R:] +NCONFIG:NB_CATEGORY,1
[2018-09-27 14:04:27:916_R:] +NCONFIG:RAI,FALSE
[2018-09-27 14:04:27:932_R:] +NCONFIG:HEAD_COMPRESS,FALSE
[2018-09-27 14:04:27:963_R:] +NCONFIG:RLF_UPDATE,FALSE
[2018-09-27 14:04:27:994_R:] +NCONFIG:CONNECTION_REESTABLISHMENT,FALSE

[2018-09-27 14:04:28:041_R:] OK

I’m not able to turn the radio on. When issuing AT+CFUN=1 it takes ~2 sec and then the output is always ERROR. I’m starting to think there is some hardware issue here…

Any hints?


(So Lu) #6

it looks like it takes about 1862 ms for the error to appear. When I take out the SIM of the BPI, I also get an error after 1857ms. To me it seems something SIM related. Can you try to reinsert the SIM? Can you test this SIM in another terminal?

  • [2018-09-27 15:08:17.176] AT+CFUN=0
  • [2018-09-27 15:08:17.188] OK
  • [2018-09-27 15:08:21.685] AT+CFUN=1
  • [2018-09-27 15:08:23.542] ERROR
  • [2018-09-27 15:08:28.646] AT+CFUN=1
  • [2018-09-27 15:08:30.503] ERROR
  • [2018-09-27 15:08:35.751] AT+CFUN=0
  • [2018-09-27 15:08:35.764] OK

#7

@solu thank you so much, you were right!!!

It was a SIM issue.


(So Lu) #8

Good to hear that! What are you using for programming? Keil, Arduino …?


#9

I’m developing a C-SGN, so I’m on the core network side. I’m only testing modem functionality and features for now, so been able to issue AT commands is sufficient for me at the moment. I have more than 5 NB-IoT EVB kits from different vendors but this one from BPi is much more convenient to use to debug!