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

support for CC2530 #13

Open
ilhangrn opened this issue Dec 23, 2016 · 5 comments
Open

support for CC2530 #13

ilhangrn opened this issue Dec 23, 2016 · 5 comments

Comments

@ilhangrn
Copy link

I think your studies is contain CC2530 support because i saw that Chip-specific code for CC253X and CC2540/41 SOC on cc254x.py file. I changed name of file and class as cc2530 for working with cc2530. then I registered this class on ccdebugger.py file.
I know cc2540/41 commands and cc2530 commands are same (only ieee address is different). When i run cc_info.py it giving error :

Could not find CCLib_proxy device on port /dev/ttyUSB0

How can we solve it, i want to add it to here ?

@wavesoft
Copy link
Owner

Hello @ilhangrn ,
it looks like the script cannot locate an arduino with a CCLib_proxy sketch flashed to it. Please make sure to:

  1. Have the correct firmware flashed to your arduino
  2. Ensure that /dev/ttyUSB0 is the correct port were it exposes the serial interface (could be /dev/ttyACM0 for example).

@wavesoft
Copy link
Owner

Hey @ilhangrn , I just pushed a version that performs auto-detection on the serial ports (if you don't specify the -p argument). Can you check-out the latest master a look again?

@ilhangrn
Copy link
Author

ilhangrn commented Jan 2, 2017

Hi, I did what you said. it is connected to ttyUSB0. As a result it is staying on INFO: checking /dev/ttyUSB0. is there something is not wroten on readme ?

@ilhangrn
Copy link
Author

ilhangrn commented Mar 9, 2017

hi @wavesoft i convert your codes to c# project. Now i can read any where on memory and i can take id and serial, read-write config. But i could not write with writeXDATA and writeCODE. Do you know what can be problem in this issue ?

@ilhangrn
Copy link
Author

i passed to python again, it was not working. Then i removed outodetect. It was not enough. Program could not pass over readframe. i changed if and elif comparison as if ord(status) == ANS_ERROR: and elif ord(status) != ANS_OK: After that i removed print(self.readFrame(raiseException)) part on sendFrame. Now it is working for CC2530. But it is very slow. is there any way to get fast ?

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

2 participants