HappyZ / dpt-tools

dpt systems study and enhancement
MIT License
565 stars 130 forks source link

Diagnosis with USB mode #127

Closed kaleo211 closed 5 years ago

kaleo211 commented 5 years ago

Hi,

I think I had done a stupid thing upgrading to the latest firmware of DPT-CP1 using DPA instead of this tool, cause I had rooted the system before. Now I can only stay within the current PDF reader mode, not able to access anything else, including wifi to get connect with MacOS.

I'm using MacOS, and trying to get into diagnosis mode, another issue suggested. Even the black squares shows on the screen, it seems the python3 dpt-tools.py --diagnosis command still not able to find it with following error message:

[info] It is also possible to interact with diagnosis mode with a serial terminal, such as putty.
>>> Black square on the screen? [yes/no]: yes
>>> Enter the serial port [/dev/tty.usbmodem01]: 
[error] Cannot open serial port /dev/tty.usbmodem01 due to module 'serial' has no attribute 'Serial'

Anyone else experienced this same problem before? Really appreciate any help!

kaleo211 commented 5 years ago

The file /dev/tty.usbmodem01 does exist on the Mac if this matters.

elamarkant commented 5 years ago

Use your own tty.usbmodem device path to replace the default /dev/tty.usbmodem01 You can ls /dev/tty.usb* if you know what you are doing

HappyZ commented 5 years ago

in terminal just do ls /dev/tty.usb* when you plug the device in

another note is MacOS has a bug that if it didn't appear after you plug in the cable, you have to log off and log back in to reload the driver. Then it will appear as normal. It will be the same case later for adb

kaleo211 commented 5 years ago

Hi @HappyZ and @elamarkant

Thank you for the help 👍

It looks like it's my own python package error. I have to uninstall serial and install pyserial.