mcore1976 / cc1101-tool

RF tool based on CC1101 module and Arduino Pro Micro 8VMHz/3.3V. Allows using CLI with human readable commands to control CC1101 board over USB interface. Putty or any other serial terminal can be used. It has similar functionality to YardStick One but is cheaper and doesn't need specialized software. Allows for RF jamming and simple replay attack
302 stars 60 forks source link

NOTReceiving and printing RF packets #16

Closed gc9n closed 1 year ago

gc9n commented 1 year ago

Hi there , I use a cc1101 and a ESP32 WROOM , if set it to Scanner mode , i get the below messages Signal found at Freq: 433.94 Rssi: -34 Signal found at Freq: 433.92 Rssi: -35 Signal found at Freq: 433.91 Rssi: -37 Signal found at Freq: 433.93 Rssi: -36 The problem is that i cannot get the actual packet and see it , save it etc. How can i do that , i type

SETMHZ 433.93 RX

but nothing

Also theres somehting to mention , i used the cc1101 with a Arduino nano before ESP32 , and i didnt use logic converter did it Fry my cc1101? , the reason i am asking is beccause i get the results on scanner

mcore1976 commented 1 year ago

Command RX is used for packet mode. In this mode you need to know what preamble shall be used, what address etc..

try command
setmhz 433.93 rxraw XXX

where XXX is sampling interval in microseconds.

By default rxraw uses modulation type ASK. You may change it with setmodulation X where X : 0 - 4

gc9n commented 1 year ago

wow it worked..!

the printing is kinda wierd though is printing even the 000000 the empty stuff.
and when i got actual data is still printing them into the same row. i can fix that

But hey , i didnt fry it , it works! thanks for your quick response

gc9n commented 1 year ago

REC PLAY

sends it to Panic mode restart

mcore1976 commented 1 year ago

yes, some ESP32 boards have this issue... After playing with recraw, playraw, rxraw commands remember to reset setting with init command if something is received with rxraw XXX command then :

gc9n commented 1 year ago

i see thanks again , very useful info. i dont understan the RX command , cause i dont get any feed back , only on the rxraw i get data. what do you mean by "address"

mcore1976 commented 1 year ago

In packet mode (not in RAW mode) the CC1101 chip uses packet adressing and channel numbers. Even though many CC1101 devices are operating on the same radio channel they can have different addresses (like IP address in the internet) and receive only packets that are sent to its own assigned address. This is to support CSMA/CD type of transmissions over the same radio frequency : https://en.wikipedia.org/wiki/Carrier-sense_multiple_access_with_collision_detection