-
Notifications
You must be signed in to change notification settings - Fork 78
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
Problem with CClib proxy #14
Comments
Hello @ArtemTomin , I just pushed some changes on master that enable auto-detection. This means that |
Dear @wavesoft, |
Hey @ArtemTomin , |
Hi @wavesoft, |
Hey @ArtemTomin , do you see the Arduino LED standing still? If yes, can you try unplugging & plugging it again? Also, try to use the latest Arduino library. I just pushed some changes that prohibits this lockdown from happening again. |
Hi @wavesoft, |
Hey @ArtemTomin , unfortunately I can't see your screenshot. |
Hi @wavesoft, I use simple Arduino UNO, I've uploaded your sketch from Example folder without any changes. |
Ok, that's interesting. I from the port name I guess you are on Mac OSX? Which version? And which Python version are you using? |
Can you also try to do a manual ping to see if there is something wrong? You can type the following:
If everything goes well you should see something like this:
If not, something is wrong with your set-up. |
I see this: [1]+ Done dd if=/dev/cu.usbmodem1411 bs=3 count=1 | hexdump -C |
When I try to connect with ./cc_info.py -p /dev/cu.usbmodem1411 I see just frozen cursor. If i disconnect Arduino, i see immediately ERROR: Could not find CCLib_proxy device on port /dev/cu.usbmodem1411 |
The response that I see there does not really look like the one that I would expect from the sketch. Are you sure that's the correct port? Could it be that there are 2 ports for the arduino board? One for the bootloader and one for the serial port? I haven't used an Arduino UNO, so I can't say for sure. |
I use OS X El Capitan. Python 3. |
Hey @ArtemTomin , that looks like ASCII output. Can you try connecting using the Arduino Serial Monitor, type something random and hit enter? We might get something more useful out of it. |
Hi @wavesoft ! |
Hello, @wavesoft, I have the same problem as @ArtemTomin, but I use OS Windows for this. |
Did you ever get this resolved? Before digging further, did anyone get this resolved? |
I have the same problem using a Wemos D1 mini. Tried two different MacBooks and different versions of pyserial. How can I debug this?
|
The originally raised IOError is |
Tried it on my Windows PC and it works 🤔 |
@vogler, can you explain or write the whole line where you used the @wavesoft, I have spent a few hours, but all I get on my Arduino Mega is this: Ubuntu Mate 18.04 - Arduino Mega 2560 - CC2531 Stick crw-rw---- 1 root dialout 166, 0 Mai 29 19:29 /dev/ttyACM0
python-serial 3.4-2 all pyserial - module encapsulating access for the serial port
Python 2.7.15rc1
python cc_info.py
NOTE: Performing auto-detection (use -p to specify port manually)
INFO: Checking /dev/ttyACM0
^CERROR: Could not detect a CCLib_proxy connected on any serial port
sudo python cc_info.py
NOTE: Performing auto-detection (use -p to specify port manually)
INFO: Checking /dev/ttyACM0
^CERROR: Could not detect a CCLib_proxy connected on any serial port
Python 3.6.7
python3 cc_info.py
NOTE: Performing auto-detection (use -p to specify port manually)
INFO: Checking /dev/ttyACM0
ERROR: Could not detect a CCLib_proxy connected on any serial port
sudo python3 cc_info.py
NOTE: Performing auto-detection (use -p to specify port manually)
INFO: Checking /dev/ttyACM0
ERROR: Could not detect a CCLib_proxy connected on any serial port
python3 cc_info.py -p /dev/ttyACM0
ERROR: unicode strings are not supported, please encode to bytes: 'ð\x00\x00\x00'
- on github issue #5
Manual Ping:
$ dd if=/dev/ttyACM0 bs=3 count=1 | hexdump -C&
[1] 13599
$ 0+0 Datensätze ein
0+0 Datensätze aus
0 Bytes kopiert, 0.00838095 s, 0.0 kB/s
echo -ne '\xF0\x01\x01\x01' > /dev/ttyACM0
[1]+ Fertig dd if=/dev/ttyACM0 bs=3 count=1 | hexdump -C``` |
@tido Since Windows' cmd doesn't persist history I can't look it up, but I think it was just what I wrote above, i.e., https://github.com/wavesoft/CCLib/blob/master/Python/cclib/ccproxy.py#L134 |
@vogler, thank you for your quick reply. I tried it with your line.. still doesn't work. It looks like that wavesoft has abandoned, this neat work of his, two open commits are not merged.. if I am not wrong. |
Then I would try this fork - the commits say it's adjusted for Python 3. |
if you have a Raspberry Pi (I am not a fan) you can just connect it and flash it. I wasted hours on the Arduino /ESP32 ideas. This just worked: https://github.com/jmichault/flash_cc2531 |
Hi, This starts python3 on my computer! it works Chip information: Device information: Debug status: Debug config: With this resolved I could follow the instructions on Regards |
On OSX I could solve this by adding:
after time timeout in the routine that opens the serial port. Apparently there are some characters in the input/output buffers. The current code does´t know how to 'align' itself so clearing the buffers helps here. |
Hello! I have such error after ./cc_info.py -p /dev/cu.usbmodem1411
ERROR: Could not find CCLib_proxy device on port /dev/cu.usbmodem1411
I use Arduino UNO
The text was updated successfully, but these errors were encountered: