BC118 configure at slow baud rate

I’ve been working with BC118 now with about 4 units. The first two units I configured one as central and other as peripheral. The UART baud rate was set to 57600 on both unit. I used their MAC addresses to connect to each other directly to form a 1-1 pair.

Then I got other two units and they would not work like the first 2 unless I reduced the UART baudrate down to 9600.
I dug a little deeper and found that of the 2nd set of units their was one BLE module that just would not configure at 57600 (i.e sending commands, restore, write, reset). But it configured just fine (restore, write, reset, configure as peripheral) at 9600 baud.

For speed reasons in my application, I would like to stay with 57600. Is there a workaround for this.

Thank you for your help.

Lalit,

Can you give the config (send ‘cfg’) for all of the units so that we can compare them to see if anything else is different and how you have configured the unit as well?

Regards

Matt

Below is the reply from “cfg” command on initial power up from a unit that can only be configured at 9600 baud rate.
If I try to send commands at any other baud then nothing works.

I tried 2 more units today and they are also not working. I was thinking that the 1 unit not working might be a bad part but now I have randomly picked 2 BC118s and they are behaving the same way. I’m doing something wrong when configuring these devices as either Central or Peripheral.

ACFG=OFF
ACON=ON
ADDR=000000000000
ADVF=003C 003C
ADVP=FAST
ADVS=0500 0500
ADVT=0000
BOND=OFF
CCON=ON
CENT=OFF
CHAR=89F7 D93C
CONP=000A 0010 0000 04E2
CONU=ON
FCTR=OFF
GPIO=ON
I2CE=ON
INDE=OFF
LEDS=ON
LNAME=BC49D87
OTAC=ON
OTAU=ON
PIOM=OFF
RELA=ON
SCNP=0002BF20 00002BF2
SCNT=0000
SCNA=OFF
SERV=68E3 28F0
SLEEP=OFF
SNAME=BC49D87
TRSE=OFF
TRSM=OFF
TRST=0002
TXPWR=0007
UART=0028
WAKE=ON
WLVL=LOW
WURX=ON
WWOR=OFF
OK

My configuration procedure for a peripheral device for my application is as following

  1. Set Baud Rate to 57600
  2. FTCR = ON
  3. Write
  4. Reset
  5. Set Peripheral to Advertise
  6. CCON = ON
  7. ADVP = FAST
  8. ADVT = 0
  9. ADDR = “specific central BLE MAC address”
  10. Write
  11. Reset

Hi,

Got a tera term script working (attached, you need to change the extension to ttl), results are in the table below.

Melody Smart v3.7.4
BlueCreation Copyright 2012 - 2015
www.bluecreation.com
READY
ACFG=OFF
ACON=ON
ADDR=000000000000
ADVF=003C 003C
ADVP=FAST
ADVS=0500 0500
ADVT=0000
BOND=OFF
CCON=ON
CENT=OFF
CHAR=89F7 D93C
CONP=000A 0010 0000 04E2
CONU=ON
FCTR=OFF
GPIO=ON
I2CE=ON
INDE=OFF
LEDS=ON
LNAME=BC2781D
OTAC=ON
OTAU=ON
PIOM=OFF
RELA=ON
SCNP=0002BF20 00002BF2
SCNT=0000
SCNA=OFF
SERV=68E3 28F0
SLEEP=OFF
SNAME=BC2781D
TRSE=OFF
TRSM=OFF
TRST=0002
TXPWR=0007
UART=0028
WAKE=ON
WLVL=LOW
WURX=ON
WWOR=OFF
OK
OK
OK
OK
OK
Melody Smart v3.7.4
BlueCreation Copyright 2012 - 2015
www.bluecreation.com
READY
STS=P ADV
OK
OK
OK
OK
OK
Melody Smart v3.7.4
BlueCreation Copyright 2012 - 2015
www.bluecreation.com
READY
ACFG=OFF
ACON=ON
ADDR=000000000000
ADVF=003C 003C
ADVP=FAST
ADVS=0500 0500
ADVT=0000
BOND=OFF
CCON=OFF
CENT=OFF
CHAR=89F7 D93C
CONP=000A 0010 0000 04E2
CONU=ON
FCTR=ON
GPIO=ON
I2CE=ON
INDE=OFF
LEDS=ON
LNAME=BC2781D
OTAC=ON
OTAU=ON
PIOM=OFF
RELA=ON
SCNP=0002BF20 00002BF2
SCNT=0000
SCNA=OFF
SERV=68E3 28F0
SLEEP=OFF
SNAME=BC2781D
TRSE=OFF
TRSM=OFF
TRST=0002
TXPWR=0007
UART=00EB
WAKE=ON
WLVL=LOW
WURX=ON
WWOR=OFF
OK
OK

Main comment I would make is that you are setting ADVT to 0 but you cannot set this unless CCON is off and you are specifically setting it to ON (in my script it is specifically set to OFF).

Regards

Matt
BC118 Set to 57k6 then configure.txt (721 Bytes)

Hi Matt,

When you send the CCON or any other commands, do they take effect right away.
I thought they take effect after doing a write and reset. I’m still testing my units.

Lalit

Lalit,

As per the script (which I have working), it is not immediate, you are just setting values in flash and then when a reset occurs and the unit powers up and reads them will they take effect.

Regards

Matt

My issue is resolved. I was not considering that settings are saved on the flash memory.
Thanks for your help.