atlas0fd00m / rfcat

RfCat - swiss-army knife of ISM band radio
Other
560 stars 117 forks source link

how to use python2 instead of python3 #82

Open Guacamole-1 opened 4 years ago

Guacamole-1 commented 4 years ago
==RfCatYS1CCBootloader.hex building==
sdcc -Iinclude -DBUILD_VERSION=`../revision.sh` --xram-loc 0xF000  --code-loc 0x1400 appFHSSNIC.c chipcon_usb.rel chipcon_usbdebug.rel chipcon_dma.rel bootloader.rel cc1111rf.rel global.rel cc1111_aes.rel -DYARDSTICKONE -DCC1111 -DUSBDEVICE
packihx <appFHSSNIC.ihx >bins/RfCatYS1CCBootloader.hex
packihx: read 628 lines, wrote 1207: OK.
if [ ! -c /dev/RFCAT_BL_YS1 ] ; then ../rfcat --bootloader --force && sleep 1 ; fi ;
Entering RfCat Bootloader mode, ready for new image...
===== RESETUP set from recv thread
rfcat_bootloader /dev/RFCAT_BL_YS1 erase_all
Traceback (most recent call last):
  File "/usr/local/bin/rfcat_bootloader", line 4, in <module>
    __import__('pkg_resources').run_script('rfcat==1.9.2', 'rfcat_bootloader')
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 667, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1470, in run_script
    script_code = compile(script_text, script_filename, 'exec')
  File "/usr/local/lib/python3.8/site-packages/rfcat-1.9.2-py3.8.egg/EGG-INFO/scripts/rfcat_bootloader", line 22
    print "Writing", line[:-1],
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Writing", line[:-1], end=" ")?
make: *** [Makefile:371: installRfCatYS1CCBootloader] Error 1

im trying to update firmware and im getting this error, im assuming it is using python3 instead of python2 how do i fix that?

mnhauke commented 4 years ago

There are still some pending pull requests with fixes for the python3 port.... https://github.com/atlas0fd00m/rfcat/pull/79 https://github.com/atlas0fd00m/rfcat/pull/80 With the changes from the mentioned pull requests _rfcatbootloader should work fine.

Guacamole-1 commented 4 years ago

There are still some pending pull requests with fixes for the python3 port....

79

80

With the changes from the mentioned pull requests _rfcatbootloader should work fine.

nothing changed

Guacamole-1 commented 4 years ago

10 hours trying to update firmware to the yard stick one and cant find a way to make it work

atlas0fd00m commented 4 years ago

i apologize, @Guacamole-1 once i looked into your concerns, it appears i failed to update the print statements for rfcat_bootloader.

i've pushed an update which should remedy this. please test it out and let us know how it works.

thanks! @

kaskrex commented 4 years ago

I'm getting this error instead after pulling the latest version. Any fixes?

kali@kali:~/rfcat/CC-Bootloader$ python rfcat_bootloader
  File "rfcat_bootloader", line 198
    if _name_ == '_main_':
                             ^
SyntaxError: invalid syntax
atlas0fd00m commented 4 years ago

just pushed the update. please try again.

also, be careful when pushing new firmware! SDCCv3.8.0 does not work with RfCat and could possibly corrupt the bootloader.
if you are compiling and pushing your own firmware, be sure to use SDCC v3.5.0 or prior!

just running into some of these issues. not sure what the problem is yet, but there is certainly an issue.

Guacamole-1 commented 4 years ago

i have pushed the firmware update with the rfcat-firsttry worked no problem. the version of sdcc that i have is 3.5.0

Guacamole-1 commented 4 years ago

i have a question can you transmit sound or at least a beep in the fm range (with the yard stick one)?

atlas0fd00m commented 4 years ago

it depends.
RfCat does not transmit, to my knowledge, in the "FM Radio" range (88-108MHz). it gets close, but not quite. but if it did, the best you could do is ASK with a baudrate to transmit 0's and 1's....
not exactly the highest quality sound... but anything can be translated to sound. eg.
GQRX and SDR to capture and spit sound out the computer's audio.

--


/ "i am a information technology remote \ \ consalternating engineer." -ddtek /

    \   ^__^
     \  (oo)\_______
        (__)\       )\/\
            ||----w |
            ||     ||

On Tuesday, September 29, 2020 4:10:37 PM EDT Guacamole-1 wrote:

i have a question can you transmit sound or at least a beep in the fm range? —You are receiving this because you commented.Reply to this email directly, view it on GitHub[1], or unsubscribe[2].[3]


[1] https://github.com/atlas0fd00m/rfcat/issues/82#issuecomment-700958701 [2] https://github.com/notifications/unsubscribe-auth/ ACLBRBYA3ZPD5XOZP7DR7NLSII5L3ANCNFSM4R23KK2Q [3] https://github.com/notifications/beacon/ ACLBRB676FMMNXUCQ57LUWTSII5L3A5CNFSM4R23KK22YY3PNVWWK3TUL52HS4 DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFHD4P3I.gif

atlas0fd00m commented 4 years ago

thanks for the headsup, btw. glad to know it was broken, and now that it worked for you.

Guacamole-1 commented 4 years ago

it depends. RfCat does not transmit, to my knowledge, in the "FM Radio" range (88-108MHz). it gets close, but not quite. but if it did, the best you could do is ASK with a baudrate to transmit 0's and 1's.... not exactly the highest quality sound... but anything can be translated to sound. eg. GQRX and SDR to capture and spit sound out the computer's audio. -- _____ / "i am a information technology remote \ \ consalternating engineer." -ddtek / --------------------------------------- \ ^_^ \ (oo)\ (__)\ )\/\ ||----w | || || On Tuesday, September 29, 2020 4:10:37 PM EDT Guacamole-1 wrote: i have a question can you transmit sound or at least a beep in the fm range? —You are receiving this because you commented.Reply to this email directly, view it on GitHub[1], or unsubscribe[2].[3] -------- [1] #82 (comment) [2] https://github.com/notifications/unsubscribe-auth/ ACLBRBYA3ZPD5XOZP7DR7NLSII5L3ANCNFSM4R23KK2Q [3] https://github.com/notifications/beacon/ ACLBRB676FMMNXUCQ57LUWTSII5L3A5CNFSM4R23KK22YY3PNVWWK3TUL52HS4 DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFHD4P3I.gif

just for curiosity can ask why it cant transmit?

atlas0fd00m commented 4 years ago

it can transmit just fine, but only in the defined frequency ranges the radio was created to use. for the most part, this includes the following ISM Bands (for CC1111 dongles like the YS1): 315MHz, 433MHz, 868MHz, and 915MHz. for the CC2511 dongles, you can interact with 2.4GHz at up to 500kbps.

you can push the boundaries of the defined specs around those frequencies farther than the documentation suggests, but not exceptionally far. since FM Radio signals are in the 88-108MHz ranges, the radio and analog front-ends simply can't support interacting with a common FM radio (or AM radio, since the AM radio bands are in the kHz)

RfCat uses ChipCon radio chips. they are not software-defined. they are software-configured, but definitely a fully hardware radio.