Skip to content

Goodfet update#229

Merged
taylorcenters merged 7 commits into
developfrom
goodfet-update
Jun 25, 2021
Merged

Goodfet update#229
taylorcenters merged 7 commits into
developfrom
goodfet-update

Conversation

@taylorcenters

Copy link
Copy Markdown
Contributor

re-implemented goodfet changes from inode's PR #216 to work with python3

Taylor added 2 commits June 23, 2021 17:40
@phipolis

Copy link
Copy Markdown

Thanks so much for this!! Is the firmware/apimotev4_202011.hex file included in #216 needed?

@taylorcenters

Copy link
Copy Markdown
Contributor Author

@phipolis hi! Not a problem - I think that new firmware will need to be loaded on the apimote to correspond to the goodfet changes. I'm trying to think of a better way in the future to distribute built firmware - I might try and add a github pipeline to build and publish the firmware artifact - I feel a bit uneasy about just committing pre-built firmware hex files.

Comment thread killerbee/GoodFETCCSPI.py
print(e)
toret = self.data[1] << 8

toret=(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These ord's are causing errors

======================================================================                                
ERROR: test_init (test_apimote_driver.TestApimoteDriver)                                              
----------------------------------------------------------------------                                
Traceback (most recent call last):                 
  File "/Users/taylor/workspace/killerbee/tests/test_apimote_driver.py", line 11, in test_init        
    driver=APIMOTE(os.environ['APIMOTE_DEVSTRING'])                                                   
  File "/Users/taylor/.pyenv/versions/killerbee/lib/python3.9/site-packages/killerbee-3.0.0b1-py3.9-macosx-10.15-x86_64.egg/killerbee/dev_apimote.py", line 53, in __init__
    self.handle.setup()                            
  File "/Users/taylor/.pyenv/versions/killerbee/lib/python3.9/site-packages/killerbee-3.0.0b1-py3.9-macosx-10.15-x86_64.egg/killerbee/GoodFETCCSPI.py", line 25, in setup
    self.poke(0x11, 0x0AC2 & (~0x0800)); #MDMCTRL0, promiscuous                                       
  File "/Users/taylor/.pyenv/versions/killerbee/lib/python3.9/site-packages/killerbee-3.0.0b1-py3.9-macosx-10.15-x86_64.egg/killerbee/GoodFETCCSPI.py", line 92, in poke
    if self.peek(reg,bytes)!=val and reg!=0x18:    
  File "/Users/taylor/.pyenv/versions/killerbee/lib/python3.9/site-packages/killerbee-3.0.0b1-py3.9-macosx-10.15-x86_64.egg/killerbee/GoodFETCCSPI.py", line 83, in peek
    ord(self.data[2])+                             
TypeError: ord() expected string of length 1, but int found     

@taylorcenters taylorcenters merged commit 14e00a3 into develop Jun 25, 2021
@phipolis

Copy link
Copy Markdown

@phipolis hi! Not a problem - I think that new firmware will need to be loaded on the apimote to correspond to the goodfet changes. I'm trying to think of a better way in the future to distribute built firmware - I might try and add a github pipeline to build and publish the firmware artifact - I feel a bit uneasy about just committing pre-built firmware hex files.

@taylorcenters I'm glad you're thinking about that, I was unclear about the hex files significance and couldn't find any instructions on their use with apimote.

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

Successfully merging this pull request may close these issues.

3 participants