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.
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?
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.
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).
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.
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.