CCLib
CCLib copied to clipboard
support for CC2530
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 ?
Hello @ilhangrn ,
it looks like the script cannot locate an arduino with a CCLib_proxy
sketch flashed to it. Please make sure to:
- Have the correct firmware flashed to your arduino
- Ensure that
/dev/ttyUSB0
is the correct port were it exposes the serial interface (could be/dev/ttyACM0
for example).
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?
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 ?
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 ?
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 ?