Nasty MicroUSB cables
Nasty MicroUSB cables
Hi,
there were several posts of people dealing with non-working connections to the computer.
Please be aware that not all MicroUSB cables on the market are suitable for micropython boards.
Esp. those (cheapo) cables you can buy for only a few dollars/Euros/Pound/Yen stating to "charge your smartphone" might only carry out the power lines but not the data lines of the USB connection. Thus, those cables will nicely power the micropython board but there will be no data connection.
Try another cable before fiddling hours with drivers and system settings. Most likely the cable which came with your smartphone or other devices which can be connected to your computer will be ok.
There is a page on the wiki starting to deal with all kind of connection and driver issues. Please add your findings if they are not yet written (it's a wiki )
http://wiki.micropython.org/Installation
there were several posts of people dealing with non-working connections to the computer.
Please be aware that not all MicroUSB cables on the market are suitable for micropython boards.
Esp. those (cheapo) cables you can buy for only a few dollars/Euros/Pound/Yen stating to "charge your smartphone" might only carry out the power lines but not the data lines of the USB connection. Thus, those cables will nicely power the micropython board but there will be no data connection.
Try another cable before fiddling hours with drivers and system settings. Most likely the cable which came with your smartphone or other devices which can be connected to your computer will be ok.
There is a page on the wiki starting to deal with all kind of connection and driver issues. Please add your findings if they are not yet written (it's a wiki )
http://wiki.micropython.org/Installation
Re: Nasty MicroUSB cables
I get a problem with the pyboard disappearing after a few minutes of not being used (ie no input - occasionally doing so while typing too).
Using Putty (on Windows7) and with the board connected to a USB3 (powered) hub, putty gives "cannot write to serial port".
I can open the card from Explorer - but putty won't reconnect (just a cursor top left) if I close and & run it again.
Resetting the board (either button or unplugging) gets things going again - frustrating though!
I'm not sure if an alternate USB cable is the answer (works well with an arduino) - and Explorer has no problem seeing / reading as a drive.
Using Putty (on Windows7) and with the board connected to a USB3 (powered) hub, putty gives "cannot write to serial port".
I can open the card from Explorer - but putty won't reconnect (just a cursor top left) if I close and & run it again.
Resetting the board (either button or unplugging) gets things going again - frustrating though!
I'm not sure if an alternate USB cable is the answer (works well with an arduino) - and Explorer has no problem seeing / reading as a drive.
Re: Nasty MicroUSB cables
Do you happen to have a MicroSD card plugged in?
Certain MicroSD cards cause the micropython board to reset after 30 seconds.
Certain MicroSD cards cause the micropython board to reset after 30 seconds.
Re: Nasty MicroUSB cables
No - happens with a 'bare' board. It also happens with LCD skin attached and/or a servo.. I'll try another cable / usb port (on the pc rather than the hub) this evening.dhylands wrote:Do you happen to have a MicroSD card plugged in?
Certain MicroSD cards cause the micropython board to reset after 30 seconds.
Re: Nasty MicroUSB cables
Tried with different cable, port and computer.
It 'appears' that the input loop of the interpreter crashes - putty giving
When running a program (main.py - Life in a loop) - the board runs happily for several hours (and CtrlC etc from putty do work)
Typing
and then repeating (using up to repeat last line) at intervals, or just leaving the board idle - crashes after a few minutes (not sure if it is a consistent time)
It 'appears' that the input loop of the interpreter crashes - putty giving
- restarting putty gives a fixed cursor, and Ctrl C etc have no effect.error writing to serial port
When running a program (main.py - Life in a loop) - the board runs happily for several hours (and CtrlC etc from putty do work)
Typing
Code: Select all
import time
time.localtime()
-
- Posts: 5
- Joined: Sat May 31, 2014 1:40 pm
Re: Nasty MicroUSB cables
Same here, except on OSX Mountain Lion, no microSD card in the board, with and without servos attached, mine appears to reset.
mnfisher wrote:No - happens with a 'bare' board. It also happens with LCD skin attached and/or a servo.. I'll try another cable / usb port (on the pc rather than the hub) this evening.dhylands wrote:Do you happen to have a MicroSD card plugged in?
Certain MicroSD cards cause the micropython board to reset after 30 seconds.
Re: Nasty MicroUSB cables
Also happens with the board attached and no activity at all (empty main.py) and no terminal connection. Trying to connect after ~5mins doesn't work without a board reset..
Re: Nasty MicroUSB cables
A possible fix - flashed board with latest version of dfu file from:
http://micropython.org/download/
using the Dfuse demonstration from:
http://www.st.com/web/en/catalog/tools/ ... searchtype
After a worrying few minutes where the board wouldn't come out of dfu mode - note don't use STDfu tester to upload (it crashes and leaves things in a bad way)..... Everything up and running again.
Board seems more stable (a lot more stable) - will leave it alone and see how it fares.
Update - works for ~10 minutes (doing nothing but the occasional pyb.info()) before grinding to a halt as above.
Back to the drawing board.
Using hyperterminal (trial - the full version is $60!)- crashed at 6:17mins.
Changing baud rate to 115200 - things seemed rosier but only got to 8minutes. It 'could' be a windows driver problem? Will try under Linux.
http://micropython.org/download/
using the Dfuse demonstration from:
http://www.st.com/web/en/catalog/tools/ ... searchtype
After a worrying few minutes where the board wouldn't come out of dfu mode - note don't use STDfu tester to upload (it crashes and leaves things in a bad way)..... Everything up and running again.
Board seems more stable (a lot more stable) - will leave it alone and see how it fares.
Update - works for ~10 minutes (doing nothing but the occasional pyb.info()) before grinding to a halt as above.
Back to the drawing board.
Using hyperterminal (trial - the full version is $60!)- crashed at 6:17mins.
Changing baud rate to 115200 - things seemed rosier but only got to 8minutes. It 'could' be a windows driver problem? Will try under Linux.
Re: Nasty MicroUSB cables
Recently I had all kind of funny effects using el-cheapo USB hubs.
Could you test the pyboard directly on a PC and if possible make sure its is one of the direct USB lines (not just another internal USB hub)
Normally, lines on the rear end of a PC are direct lines. Sometimes lines on the front of a PC tower might be a connected to a hub internally already.
Just to give you an idea. Recently, I had a USB device which enumerates correctly and was correctly recognized but I sending or receiving data was not working (some ethernet-over-USB). Took me half a day of fiddeling before I by chance removed it from the USB hub.
Hope that helps
Could you test the pyboard directly on a PC and if possible make sure its is one of the direct USB lines (not just another internal USB hub)
Normally, lines on the rear end of a PC are direct lines. Sometimes lines on the front of a PC tower might be a connected to a hub internally already.
Just to give you an idea. Recently, I had a USB device which enumerates correctly and was correctly recognized but I sending or receiving data was not working (some ethernet-over-USB). Took me half a day of fiddeling before I by chance removed it from the USB hub.
Hope that helps
Re: Nasty MicroUSB cables
Haven't had much time to work with this lately..... Although I'd tried different USB ports (and the cheapo hub wasn't very!) - I'd tried multiple ports on the PC (a modern machine - MSI motherboard, i7) without joy.
That seems to work - connected to an old laptop (a ~7 yr old Core-2) and all seems well 20 minutes trying to hear the output from the AMP skin Lcd working well..
Will leave attached for a 'soak' test.
That seems to work - connected to an old laptop (a ~7 yr old Core-2) and all seems well 20 minutes trying to hear the output from the AMP skin Lcd working well..
Will leave attached for a 'soak' test.