BLE external antenna issues with 1.3.1-rc.1

I am currently having issues with using the external BT antenna. The signal seems to be weak going into the antenna compared to the actual onboard antenna.

I was previous using an OS version from github that had the BLE fixes and got it to transmit a clear signal through the antenna. However, once I upgraded to 1.3.1, that is when the problem arised. I have attempted to go back to 1.3.0 and the version from github to no success.

void setup() {
  digitalWrite(ANTSW1, 0);
  digitalWrite(ANTSW2, 0);

  iBeacon beacon(0, 3, "00001111-2222-3333-4444-555566667777", -55);
  BLE.setAdvertisingInterval(25);
  BLE.setTxPower(8);
  BLE.advertise(beacon);
}

@alanhao ANTSW1 = 0, ANTSW2 = 0 is not a supported antenna switch configuration for any of Gen 3 platforms. With 1.3.1 you can simply do:

void setup() {
    // To select external antenna
    BLE.selectAntenna(BleAntennaType::EXTERNAL);
    // To select internal antenna
    BLE.selectAntenna(BleAntennaType::INTERNAL);
}
1 Like

12 posts were split to a new topic: “Internal” discussion about antenna selection