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

how to use python2 instead of python3 #82

Open
Guacamole-1 opened this issue Sep 26, 2020 · 12 comments
Open

how to use python2 instead of python3 #82

Guacamole-1 opened this issue Sep 26, 2020 · 12 comments

Comments

@Guacamole-1
Copy link

==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
Copy link
Contributor

mnhauke commented Sep 26, 2020

There are still some pending pull requests with fixes for the python3 port....
#79
#80
With the changes from the mentioned pull requests rfcat_bootloader should work fine.

@Guacamole-1
Copy link
Author

There are still some pending pull requests with fixes for the python3 port....
#79
#80
With the changes from the mentioned pull requests rfcat_bootloader should work fine.

nothing changed

@Guacamole-1
Copy link
Author

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

@atlas0fd00m
Copy link
Owner

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
Copy link

kaskrex commented Sep 29, 2020

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

Guacamole-1 commented Sep 29, 2020

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

@atlas0fd00m
Copy link
Owner

atlas0fd00m commented Sep 29, 2020 via email

@atlas0fd00m
Copy link
Owner

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

@Guacamole-1
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants