CCLib icon indicating copy to clipboard operation
CCLib copied to clipboard

support for CC2530

Open ilhangrn opened this issue 8 years ago • 5 comments

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 ?

ilhangrn avatar Dec 23 '16 16:12 ilhangrn

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 avatar Dec 24 '16 09:12 wavesoft

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?

wavesoft avatar Dec 25 '16 10:12 wavesoft

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 avatar Jan 02 '17 15:01 ilhangrn

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 avatar Mar 09 '17 14:03 ilhangrn

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 ?

ilhangrn avatar Mar 15 '17 15:03 ilhangrn