Microbit DAPlink or Computer or USB drive problem?

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
zfm076
Posts: 16
Joined: Mon Dec 30, 2019 8:06 am

Microbit DAPlink or Computer or USB drive problem?

Post by zfm076 » Mon Nov 02, 2020 4:35 am

my microbit code:

Code: Select all

while(1)
{
  microbit.serial.send(microbit.thermometer.getTemperature());
  microbit.sleep(50);    //Send the temperature to the computer every 50ms
}
Problem:
In my computer :
It worked all day, The yellow light behind the board also blinks.There is no problem.

But it's on my friend's computer:
Can only work normally for a few minutes or ten minutes,Time is not fixed. The yellow light behind the board is usually on, not flashing,My friend's computer can't get data via USB. Then I change the board back to my computer ,it was able to work a full day. Why? I've been searching for a week and I can't find the reason. Do you have this problem? What do you think is most likely the problem?

shaoziyang
Posts: 347
Joined: Sun Apr 17, 2016 1:55 pm

Re: Microbit DAPlink or Computer or USB drive problem?

Post by shaoziyang » Mon Nov 02, 2020 2:46 pm

You can try to turn off the power saving option of USB.

zfm076
Posts: 16
Joined: Mon Dec 30, 2019 8:06 am

Re: Microbit DAPlink or Computer or USB drive problem?

Post by zfm076 » Tue Nov 03, 2020 1:58 am

shaoziyang wrote:
Mon Nov 02, 2020 2:46 pm
You can try to turn off the power saving option of USB.
Hi, Should not be usb energy saving problem.Because my friend's computer is working all the time, The computer monitor is on all the time, there is no dormant state. Can be the problem that DAPlink:0249 internal interrupt is stuck dead?

Post Reply