Comments (9)
Yes, support for dual CC1101 is in my plans. However this is a big change because it requires to add additional parameter for every command. It is not going to be soon but I am thinking of adding such option
from cc1101-tool.
I am using normal Serial Port commands in ESP32
Serial.print(F("Hello world "));
Assuming you have USB-TTL converter that shoud be hard-wired to one of ESP32 serial ports it should work. However ESP32 has 3 serial ports and these should work only for port that is used for Serial debugging in Arduino IDE (maybe it would be good to launch Serial Port debug there ?)
https://esp32io.com/tutorials/esp32-serial-monitor
I am using the same principles as in this example here :
https://deepbluembedded.com/esp32-hello-world-serial-print-arduino/?utm_content=cmp-true
check if this example works for you.
I am currently waiting for ESP32 board delivery, once I get it I will be able to correct the code.
The question is if you are using speed 115200 baud for communication over USB with ESP32 board
In my code you have
void setup() {
// initialize USB Serial Port CDC
Serial.begin(115200);
Serial.println(F("CC1101 terminal tool connected, use 'help' for list of commands...\n\r"));
[...]
void loop() {
[...]
/* Process incoming commands. */
while (Serial.available()) {
it should work as long as you have properly configured putty
You may want to check this description as well - maybe tou need serial to usb port converter as on these pictures : https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/establish-serial-connection.html
https://docs.espressif.com/projects/esp-at/en/latest/esp32/Get_Started/Hardware_connection.html
from cc1101-tool.
through usb serial i do get the "CC1101 terminal tool connected", but if i do it with a USB-TTL converter i don't get nothing of that, just boot logs and im unable to enter anything
ive used 9600 baud, but i'm currently using 115200 and sticking with that
in the example https://deepbluembedded.com/esp32-hello-world-serial-print-arduino/?utm_content=cmp-true , everything worked and the esp32 was able to receive data over usb
BUT i found out that wasn't the issue
it seems that it's not receiving anything because its hanging in the cc1101initialize
function, on ELECHOUSE_cc1101.Init()
i get no logs, nothing, but if i get a multimeter i can see that MISO and MOSI are pulled high, 3.3v and SCK is pulled low, 0v
this might be something wrong with my cc1101, so i will order another one
from cc1101-tool.
okay, i've debugged some things here and there and found out it was an issue with my wiring - putting pin 9 on the esp32c3 makes it go into boot mode, and moving those pins to a different area allowed it to boot successfully
also, you were kind of right with the usb to ttl converter, as of currently i am using a usb to ttl coverter to speak with the esp32 usb-cdc was off, i can communicate via usb
(red bracket are added print statements for debugging)
unfortunately, every time i attempt to transmit tx 010203040506070809aabbccddeeff
it stays on Transmitting RF packets.
i think i killed my cc1101 in some other way
from cc1101-tool.
" every time i attempt to transmit tx 010203040506070809aabbccddeeff it stays on Transmitting RF packets.
i think i killed my cc1101 in some other way"
This looks like CC1101 is not reporting readiness through GDO0 pin state. It may be either broken or the pin assignment is wrong on this CC1101 board. Other thing is TTL level 3.3V compatibility. If 5V compatible ESP board then you may have this issues
from cc1101-tool.
my pin assignment seems to be fine, and the esp32c3's logic is 3.3v
gdo0 is pulled high 2.9v instead of 3.3v, which doesnt seem like a problem but it might be
ordered another cc1101 anyways
from cc1101-tool.
okay, fortunately my wiring was correct, but my pin assignments in the code were incorrect
THIS is the only correct pinout diagram, which is meant to be used with the xiao esp32c3
pins 21 and etc. are not in the official pinout, which is weird, only D0, D1 which are not supported by the script
after editing it in my code, everything worked perfectly
i also edited the setup() function to include ELECHOUSE_cc1101.getCC1101()
and some other debug stuff
void setup() {
// initialize USB Serial Port CDC
Serial.begin(115200);
Serial.println(F("CC1101 terminal tool connected, use 'help' for list of commands...\n\r"));
Serial.println(F("(C) Adam Loboda 2023\n\r "));
Serial.println(); // print CRLF
Serial.println("cc1101 initializing..\n");
// initialize CC1101 module with preffered parameters
cc1101initialize();
if (ELECHOUSE_cc1101.getCC1101()) { // Check the CC1101 Spi connection.
Serial.println("Connection OK");
} else {
Serial.println("Connection Error");
}
Serial.println("cc1101 initialized\n");
// setup variables
bigrecordingbufferpos = 0;
}
thank you for your help, everything works now and i can now open car doors and etc.
from cc1101-tool.
Please post a portion of source code with your PIN assignments for this ESP8266 board. It would be very useful for others 👍
from cc1101-tool.
code pinout:
// defining PINs set for ESP32 module
byte sck = 8;
byte miso = 4;
byte mosi = 10;
byte ss = 20;
int gdo0 = 21;
int gdo2 = 7;
MOSI and SCK go to their normal spi positions, except MISO, which goes to pin 4
GDO0 goes to pin 7, and GDO2 goes to pin 21
SS/CSn goes to pin 20
also, if you can, will there be any support for dual cc1101s? ex: one for jamming and one for rx'ing? would be pretty cool, there is some examples out there already with LSatan's library too
from cc1101-tool.
Related Issues (20)
- da się z tego zrobić sieć mesh? HOT 1
- Would love to have you work with me to move this stuff over to the Clipper1 with TFT. HOT 4
- I have cc1101 red module name HW863 HOT 2
- NOTReceiving and printing RF packets HOT 6
- showbit command incomplete data HOT 1
- asciitohex adjust to end string correctly HOT 2
- CC1101 Terminal frozen HOT 1
- How to transmit the same packet X number of times. HOT 1
- How to convert working code to ESPHome working transmission ? HOT 1
- scan HOT 1
- M5stickc plus version HOT 1
- Esp8266 WIFI AP mode HOT 1
- HC-11 433mhz module
- E07-433M20S Pa Table 20dbm HOT 1
- Guru Meditation Error: Core 1 panic'ed HOT 3
- play store link defaults to polish HOT 2
- Trying to run ESP-WROOM-32 HOT 1
- Connection closed by foreign host HOT 1
- Terminal is frozen HOT 1
- Closed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cc1101-tool.