wavesoft / CCLib

An arduino library that implements the CC.Debugger protocol of TI
GNU General Public License v3.0
170 stars 78 forks source link

support for CC2530 #13

Open ilhangrn opened 7 years ago

ilhangrn commented 7 years ago

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 cc2530for 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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 ?