Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added jam capability. #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
|___\___/ |_|___/___/

```
##
This is a fork (v0.21) for my personal use of the original io433 project by Krypthor.
Added "Jam" capability. This is really fun, no on in vincity can use 433Mhz devices :))

## Description

Expand Down Expand Up @@ -125,6 +128,7 @@ Plug the ESP32 to a battery or a to a USB-C cable. The current menu structure is
├── Dump # Dump current memory bank to screen and serial (fixed 100kbps, for easy analysis on third party software [ex. PulseView])
└── More
├── Monitor # Dump raw signal to screen and RSSI info
├── Jam # Simple jam / send random bits on radio
├── Raw Out # Dump current signal to serial as fast as possible (default 1Mbps serial)
└── About # About menu
```
Expand Down
2 changes: 1 addition & 1 deletion include/CC1101utils.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <ELECHOUSE_CC1101_SRC_DRV.h>

//#define TICC1101
//#define E07M1101D
#define E07M1101D

#ifdef E07M1101D
#define CCGDO0 25
Expand Down
2 changes: 1 addition & 1 deletion src/SimpleMenuNav.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "Free_Fonts.h"
#include <TFT_eSPI.h>

#define IO433VERSION "v0.2"
#define IO433VERSION "v0.21"
#define BUTTON_UP 35
#define BUTTON_DOWN 0
#define LONGCLICK_MS 300
Expand Down
34 changes: 34 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,38 @@ void dump () {
}


void jam (int t) {
int i;
unsigned int totalDelay = 0;
CCInit();
CCSetTx();
delay(50);
int64_t startus = esp_timer_get_time();
while (true) {
byte n = 0;
for (i = 0; i < 60; i++) {
CCWrite(n);
totalDelay = signal433_current[i]+delayus;
delayMicroseconds(totalDelay);
if (signal433_current[i] < RESET443) n = !n;
}
CCWrite(0);
if (SMN_isUpButtonPressed()) return;
while (SMN_isDownButtonPressed()) delay(100);
}
CCSetRx();

int64_t stopus = esp_timer_get_time();
Serial.print("Jam Done (us): ");
Serial.println((long)(stopus - startus), DEC);

}

void jam () {
jam(1);
}


// THIS IS OBVIOUSLY SLOW
void rawout() {
CCInit();
Expand Down Expand Up @@ -277,6 +309,7 @@ void setup() {
|-> REPLAY
|-> DUMP
|-> MORE
|-> JAM
|-> MONITOR
|-> RAW OUT
|-> ABOUT
Expand All @@ -289,6 +322,7 @@ void setup() {
SimpleMenu *menu_more = new SimpleMenu("More",menu_main,NULL);

SimpleMenu *menu_monitor = new SimpleMenu("Monitor",menu_more,monitormode);
SimpleMenu *menu_jam = new SimpleMenu("Jam",menu_more,jam);
SimpleMenu *menu_load = new SimpleMenu("Raw Out",menu_more,rawout);
SimpleMenu *menu_about = new SimpleMenu("About",menu_more,SMN_screensaver);

Expand Down