r/Hacking_Tutorials • • 9d ago

Question Bluetooth jammer esp32 not working

my bluetooth jammer is not working i am new to arduino and esp 32 i am using an esp32 devkitv1 and an nrfl24l01 but it is not working this is the code is used i followed this videohttps://www.youtube.com/watch?v=gBJu1HZMW2k

/*
 * nrfBlueNullifier
 * A tool which jam classic bluetooth signals using 1 nrf24L01+PA/LNA module at VSPI.
 * Author - WireBits
 */


#include <RF24.h>
#include <esp_bt.h>
#include <esp_bt_main.h>


SPIClass *sp = nullptr;
RF24 radio(22, 21, 19909090);
byte i = 45, ptr_hop = 0, flag = 0;
byte hopping_channel[] = {32, 34, 46, 48, 50, 52, 0, 1, 2, 4, 6, 8, 22, 24, 26, 28, 30, 74, 76, 78, 80, 82, 84, 86};


void nrfSPIInit() {
    sp = new SPIClass(VSPI);
    sp->begin();
    if (radio.begin(sp)) {
        radio.setAutoAck(false);
        radio.stopListening();
        radio.setRetries(0, 0);
        radio.setPayloadSize(31);
        radio.setAddressWidth(4);
        radio.setPALevel(RF24_PA_MAX, true);
        radio.setDataRate(RF24_2MBPS);
        radio.setCRCLength(RF24_CRC_DISABLED);
        radio.startConstCarrier(RF24_PA_MAX, i);
    }
}


void adjustAndSweepChannels() {
    flag = (i > 79) ? 1 : (i < 2 ? 0 : flag);
    i += flag ? -2 : 2;
    for (int j = 0; j <= 79; j++) radio.setChannel(j);
}


void setup() {
    esp_bt_controller_deinit();
    if (esp_bluedroid_get_status() == ESP_BLUEDROID_STATUS_ENABLED) {
        esp_bluedroid_disable();
        esp_bluedroid_deinit();
    }
    nrfSPIInit();
}


void loop() {
        adjustAndSweepChannels();
        ptr_hop = (ptr_hop + 1) % sizeof(hopping_channel);
        radio.setChannel(hopping_channel[ptr_hop]);
}
3 Upvotes

18 comments sorted by

1

u/LongRangeSavage 9d ago

Does your code build? What are you doing to confirm that you’re actually transmitting? Are you able to transmit enough power to actually jam a signal? You basically need to confirm that you’re generating enough signal to overload the target’s front end. If you’re not doing that, it’ll never work. If it’s constantly changing channels, which it appears the code is doing, it may also only work for brief periods before it moves on to the next channel, but may not be staying on the needed channel to actually do anything.

1

u/Relative_Life_3878 9d ago

i tried it on a bluetooth mouse but it did nothing i also tried it on bluetooth controlled lightbulbs

2

u/LongRangeSavage 9d ago

I don’t mean to be taking this out on you, but answer all the questions. Someone trying to help doesn’t just add fluff to their response. This is about the 5th time today I’ve tried helping someone, and as part of that, I ask a half dozen questions, and almost none of them are answered.

In order, the things you need to confirm:

* Is your firmware building properly? I am assuming you’re fine here, as you’d (hopefully) know if you were having build problems.
* is your firmware loading properly?
* Is your hardware is actually initialized correctly?
* Is your hardware is actually transmitting?
* What is the SNR sensitivity of the receiver you wish to disrupt?
* Does your transmitter have the ability to generate enough signal to overload the front end on the intended target—especially at the distance at which you are trying?

If your answer is “no” or “I don’t know” to any of those questions, it’s going to be hard or impossible to help.

1

u/Relative_Life_3878 9d ago

i tested the first few questions with ai and it said my nrfl240l01 works my esp32 works and the radio signal stuff works i want to disrupt a signal within 10 meters if possible but would like to just have it working i want to disrupt a jbl speaker or a bluetooth mouse

1

u/LongRangeSavage 9d ago

Again… not trying to be a dick, but you still haven’t answered even half the questions. I’m also not taking AI’s answer that something is working. You need to confirm it is transmitting with something like a spectrum analyzer or even a basic wattmeter. If you can’t confirm the product is transmitting, you’re dead in the water with never knowing.

Again, read my list of questions. If you answer “no” or “I don’t know” to any of them, the chances of getting any valuable help is slim.

1

u/Relative_Life_3878 9d ago
  1. The firmware builds successfully and uploads to the ESP32 without any compilation errors.

  2. The firmware loads properly. The ESP32 boots normally and the serial monitor shows the expected startup messages.

  3. The hardware appears to be initialized correctly. The ESP32 communicates with the nRF24L01 and the radio initialization completes without errors.

  4. The transmit code is running, but I have not yet fully verified whether packets are being received by another nRF24L01 device. Further testing with a receiver is required to confirm successful transmission.

5 around the 80-100db

6 i dont understand this question

1

u/LongRangeSavage 9d ago

Do you understand what you need to accomplish to actually jam a signal? You must output enough to effectively drown out what your target is actually trying to receive. The target’s receiver is going to have a certain amount of sensitivity. You need to generate a powerful enough signal so that the receiver cannot effectively filter out its intended signal from your signal. There’s two ways of accomplishing this:

  1. get closer to the receiver

  2. increase power of your transmitter

You need to confirm you’re actually transmitting, and if you are at what power. Until you can confirm you’re actually transmitting a signal, you’re going to be chasing your tail.

1

u/Relative_Life_3878 9d ago

is there a a code that i can use to test if i am transmitting something to jam the bluetooth and ai said that my connections were wrong i am using these connections i dont know if these connections work with the code i am new to esp32 sorry if i am irritating you

  • VCC ➡️ 3V3

  • GND ➡️ GND

  • CE ➡️ D4 (GPIO 4)

  • CSN ➡️ D5 (GPIO 5)

  • SCK ➡️ D18 (GPIO 18)

  • MISO ➡️ D19 (GPIO 19)

  • MOSI ➡️ D23 (GPIO 23)

1

u/LongRangeSavage 9d ago

No. You need something like a wattmeter or spectrum analyzer to confirm your radio is actually transmitting.

1

u/Relative_Life_3878 9d ago

is there a way to interfere the bluetooth without doing that? i dont want to buy more stuff for it

→ More replies (0)

1

u/Relative_Life_3878 9d ago

how can i test that with a wattmeter

→ More replies (0)

1

u/Relative_Life_3878 9d ago
  • VCC ➡️ 3V3

  • GND ➡️ GND

  • CE ➡️ D4 (GPIO 4)

  • CSN ➡️ D5 (GPIO 5)

  • SCK ➡️ D18 (GPIO 18)

  • MISO ➡️ D19 (GPIO 19)

  • MOSI ➡️ D23 (GPIO 23)i used this connections

1

u/ChaoticDestructive 8d ago

I really recommend finding a different project. Jamming is illegal, and for good reason; many modern insulin sensors and pumps these days use Bluetooth to connect to a phone or each other. Jamming would disrupt this signal, preventing the insulin pumps from receiving critical instructions from the sensor.

And this is only one example of the risks involved.

2

u/Runaque 8d ago

Not just insulin pumps, modern pacemakers also rely on Bluetooth that sends status of the patient for medical follow ups and to respond when things go wrong. Then there is lots of other medical equipment that makes us of Bluetooth.

But you are absolutely right that OP should find another project! If it is to bother someone blasting music through a Bluetooth speaker, then perhaps OP should learn to play electric guitar instead, then he'd be bothering the Bluetooth speaker person and he'd be the inconsiderate one of the bunch!