Arduino Forum

Products => Create => Chrome App => Topic started by: frogballet on Sep 11, 2017, 04:31 pm

Title: 3020 timeout after 400ms
Post by: frogballet on Sep 11, 2017, 04:31 pm
Just a few days ago I had no problem running the Arduino editor with my chromebook but all of a sudden the past two days every time I try to upload to my Sparkfun Inventors Kit redboard I keep getting this error. Can anyone help?

Sending 3020: receiveData timeout after 400ms
Title: Re: 3020 timeout after 400ms
Post by: ballscrewbob on Sep 18, 2017, 03:00 am
There have been some issues since Friday.
The team are back in the morning so hopefully they will catch up with those and yours will be fixed too.

Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Sep 18, 2017, 01:46 pm
Hi @frogballet,

Unfortunately, the Sparkfun Redboard is not one of the boards officially supported by the Arduino Create Chrome app (for a full list please see: http://forum.arduino.cc/index.php?topic=465962.0 (http://forum.arduino.cc/index.php?topic=465962.0)).

Some suggestions:
Title: Re: 3020 timeout after 400ms
Post by: 00alis on Sep 19, 2017, 11:03 am
We have been experiencing the same error when trying to upload the blink on a Nano but selecting Uno from the Select Board modal. @sandeepmistry you can try to reproduce like that maybe
Title: Re: 3020 timeout after 400ms
Post by: CharlesdgBurns on Dec 05, 2017, 01:26 pm
How is this still such a big issue?
Running into it with an Arduino UNO here...
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Dec 06, 2017, 02:56 pm
Hi there,

We've tested with the Uno again on both the Chrome OS devices we have access to and have not encountered the issue.

Could you please provide more info?

Title: Re: 3020 timeout after 400ms
Post by: dan_bell on Feb 07, 2018, 04:20 pm
I am currently having this same issue with the new Arduino Create for Education App with our student's Dell 11 Chromebooks.

We are using: Version 63.0.3239.140 (Official Build) (64-bit)

It was working previously on Macs before we switched to the Create for Education App on the Chromebooks. It does upload at first, but then the error happens and it will not upload after that without changing Arduino boards

One of the sketches we are using is: https://create.arduino.cc/editor/dan_bell/737f2abe-d3be-4aee-a5f0-ef05a88ef8ac/preview (it's for the Adafruit Neomatrix light boards).

Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Feb 07, 2018, 07:46 pm
Hi @dan_bell,

Are you using an Uno board? Is the Neomatrix plugged in during sketch upload?
Title: Re: 3020 timeout after 400ms
Post by: dan_bell on Feb 08, 2018, 07:15 pm
@sandeepmistry

Yes to both.

Again, we've recently switched from the CPU-based IDE on MacBook Pros to the Create for Education App and have changed nothing else. It usually uploads normally to the Uno once or twice before this error occurs.
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Feb 09, 2018, 09:20 pm
@dan_bell would you be able to try again without the Neomatrix connected, I'm wondering if the Chrome OS devices might not be able to supply enough current over USB?
Title: Re: 3020 timeout after 400ms
Post by: dan_bell on Feb 12, 2018, 06:52 pm
@sandeepmistry

We've actually also tried with the Uno's plugged in with a separate power source. We still get the error message.
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Feb 14, 2018, 09:01 pm
@dan_bell thanks.

I've been able to reproduce the issue here, but only when the Serial monitor of Create is open and I quickly load a sketch right after the other. I'm not sure if it's the same scenario as what you are hitting.

Do you have the serial monitor of Create open when loading the sketch by any chance?
Title: Re: 3020 timeout after 400ms
Post by: dan_bell on Feb 19, 2018, 04:58 pm
@sandeepmistry

We don't have the serial monitor open when we get the error. Thanks so much for looking into this for us.
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Feb 26, 2018, 04:07 pm
There will be a new v1.0.11 release on the Chrome Web Store today, which includes fix for this if the serial monitor was open during sketch upload and sketches were uploaded quickly.

@dan_bell I don't expect it to solve the scenario you are seeing, but let us know. Also, if you refresh the Arduino Create page, does the issue still occur?
Title: Re: 3020 timeout after 400ms
Post by: dan_bell on Mar 19, 2018, 08:48 pm
@sandeepmistry

Yes, students do still experience the issue after refreshing the app/page.

I did see the new version for Arduino Create on the Chrome App Store, but we are using the version for education, which is pushed out to us via our Google Admin. Is this version of the app updated as well? Would we need to have it reinstalled by our admin to update?
Title: Re: 3020 timeout after 400ms
Post by: mozolowski on Apr 07, 2018, 04:47 pm
3020 timeout after 400ms

Getting the above error continuously using Dell chrome book and genuine UNO r3. Even on one bought this week.

Found a work around.
Close the monitor window.
re-select the board from the drop down menu.
It displays slightly differently. Shows the first letter of the port assignment.
Upload sketch.
Title: Re: 3020 timeout after 400ms
Post by: mozolowski on Apr 07, 2018, 05:11 pm
After work around I now find that Monitor does not work.
Title: Re: 3020 timeout after 400ms
Post by: dan_bell on Apr 10, 2018, 08:15 pm
@sandeepmistry

At least 30-40% of my students per class are still getting this error on their Chromebooks. Today, though, a student thought to login to their create.arduino.cc account on one of our Macbook Pros and, after I installed the plugin, things started working smoothly. I tried this with several other students who were having the same error on their Chromebooks and it worked for all of them.

So it does seem to be a Chromebook-specific issue. Again, we are using Dell Chromebook 11 generation 2 Chromebooks.
Title: Re: 3020 timeout after 400ms
Post by: 1st_Year on Apr 17, 2018, 11:02 pm
mine still won't work
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Apr 25, 2018, 04:13 pm
Hi everyone,

We still have not been able to reproduce this condition with our Chrome OS devices.

Could you please:

1) Open chrome://extensions
2) Click "Inspect views: background page", then click the "Console" tab
3) In a separate tab, open Arduino Create
4) Load sketches until you see the error


After step 4) please share a screenshot of the window opened in step 2.


Also, please let us know if there are any other Chrome apps that are installed on the devices, and if they also might use any serial ports.
Title: Re: 3020 timeout after 400ms
Post by: jedavis1@penderschools.org on Sep 27, 2018, 05:38 pm
We have started to get this error on many of our boards when using Chromebooks. Has anyone else seen this start happening again?
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Sep 27, 2018, 05:59 pm
Was the version of Chrome OS recently updated?

Could you please provide the info from
Hi everyone,

We still have not been able to reproduce this condition with our Chrome OS devices.

Could you please:

1) Open chrome://extensions
2) Click "Inspect views: background page", then click the "Console" tab
3) In a separate tab, open Arduino Create
4) Load sketches until you see the error


After step 4) please share a screenshot of the window opened in step 2.


Also, please let us know if there are any other Chrome apps that are installed on the devices, and if they also might use any serial ports.
Title: Re: 3020 timeout after 400ms
Post by: jedavis1@penderschools.org on Sep 27, 2018, 06:06 pm
Can you give more details about step 2:
Quote
Click "Inspect views: background page", then click the "Console" tab
please?

I don't see that as being an option. Maybe a screenshot of where to find that?
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Sep 28, 2018, 03:56 pm
Sure, see attachment. (Edit attachment updated).


I just updated my Chromebook to Chrome OS 69, and uploaded to an Uno without any issues.

What board are you using?
Title: Re: 3020 timeout after 400ms
Post by: jedavis1@penderschools.org on Sep 28, 2018, 04:47 pm
That screenshot seems to be the wrong one. ? 

The boards are Uno Compatible/Sparkfun boards: https://www.sparkfun.com/products/13975

We've updated to Chrome 69 and still see the problem.
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Sep 28, 2018, 08:26 pm
I've updated the screenshot in my previous post, sorry about that.

The Chrome app has only been tested with official Arduino boards, clone/compatible boards are not officially supported.
Title: Re: 3020 timeout after 400ms
Post by: gio2266 on Oct 26, 2018, 04:22 am
I have this same problem I checked the console and it's telling me,
connected
background.bundle.js:249 reset complete.
background.bundle.js:249 flashing, please wait...
background.bundle.js:249 flash complete.
background.bundle.js:259 Error: Sending 3020: receiveData timeout after 400ms
    at background.bundle.js:24536
    at finished (background.bundle.js:24487)
    at background.bundle.js:24492
background.bundle.js:249 Programming with: avrgirl-arduino flash -f sketch_oct25a.hex -a uno -p /dev/ttyACM0


Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Oct 26, 2018, 02:57 pm
Hi @gio2266,

Thanks for the info, when you receive this error, is sketch you want to executing on the board?

Title: Re: 3020 timeout after 400ms
Post by: gio2266 on Oct 26, 2018, 07:19 pm
No it's not
Title: Re: 3020 timeout after 400ms
Post by: Balud on Apr 08, 2019, 01:25 pm
Hallo there, is there solution of this issue? I do experience the same one from yesterday.
Title: Re: 3020 timeout after 400ms
Post by: ballscrewbob on Apr 08, 2019, 01:41 pm
@Balud

Please stop cross posting.
Create your own threads and use the posts at the top of the forums to see what information you should be including. And deleting you other posts.

Title: Re: 3020 timeout after 400ms
Post by: Balud on Apr 11, 2019, 08:18 am
Honestly, I do not understand you are hitting me. I did create my own thread (http://forum.arduino.cc/index.php?topic=608421.0) after I carefully went through this forum and I have linked all posts related to my question there.

The only answer I get in the forum was from guy, who is not familiar with Chrome app. So he didn't help me with his answer. Then, I have tried to ask in other threads if anyone get the solution of the problem, because there is no *Solved* label.

Keep in mind, I do pay for the Chrome app monthly and only help and support is: Do not ask others! You see it as correct way? I do not.

So, are you able to help or advice me, how to solve the problem? Or can you connect me to someone, who is? That would be helpful.
Title: Re: 3020 timeout after 400ms
Post by: dysan on May 08, 2019, 05:00 pm
Is there an  solution for this issue yet, encountering the same issues (again on a dell 11" chromebook)
Refreshing the browser and switching from ttyACM0 to ttyUSB0 fixes the problem (for 1 write though)
Title: Re: 3020 timeout after 400ms
Post by: iankesbey on May 13, 2019, 04:02 am
i am having the same 3020 timeout thing....when is somebody going to fix it
Title: Re: 3020 timeout after 400ms
Post by: Tabby_Cat_Skippy on May 16, 2019, 09:15 pm
Npoe lren to slepp
Title: Re: 3020 timeout after 400ms
Post by: Enderdraak on May 17, 2019, 02:11 pm
I am having the issue to with AFAIK a arduino Nano clone. I am not sure cuz I was not the one to buy or unpack it.
As far as I can see it is a crome issue. I can read the monitor fine until I try to upload something, can it be that there goes something wrong with the reset? of should the time out timer be extended a little, to give the arduino a little more time to overwrite.

it tells me:

<code>
/home/builder/opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware /home/builder/opt/arduino-builder/hardware -hardware /home/builder/.arduino15/packages -tools /home/builder/opt/arduino-builder/tools -tools /home/builder/.arduino15/packages -built-in-libraries /home/builder/opt/libraries/latest -logger humantags -fqbn arduino:avr:nano:cpu=atmega328 -build-cache /tmp -build-path /tmp/740561557/build -verbose -prefs runtime.tools.avrdude.path=/home/builder/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs runtime.tools.linuxuploader.path=/home/builder/.arduino15/packages/arduino/tools/linuxuploader/1.5.1 -prefs runtime.tools.nrf5x-cl-tools.path=/home/builder/.arduino15/packages/arduino/tools/nrf5x-cl-tools/9.3.1 -prefs runtime.tools.arduino101load.path=/home/builder/.arduino15/packages/Intel/tools/arduino101load/2.0.1 -prefs runtime.tools.core2-32-poky-linux.path=/home/builder/.arduino15/packages/Intel/tools/core2-32-poky-linux/1.6.2+1.0 -prefs runtime.tools.flashpack.path=/home/builder/.arduino15/packages/Intel/tools/flashpack/2.0.0 -prefs runtime.tools.dfu-util.path=/home/builder/.arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino1 -prefs runtime.tools.x86-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/x86-linux-gcc/7.2.0 -prefs runtime.tools.CMSIS.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs runtime.tools.arduinoOTA.path=/home/builder/.arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs runtime.tools.bossac.path=/home/builder/.arduino15/packages/industruino/tools/bossac/1.7.0-industruino -prefs runtime.tools.sketchUploader.path=/home/builder/.arduino15/packages/Intel/tools/sketchUploader/1.6.2+1.0 -prefs runtime.tools.arm-none-eabi-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs runtime.tools.arm-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-linux-gcc/4.9.3 -prefs runtime.tools.avr-gcc.path=/home/builder/.arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs runtime.tools.CMSIS-Atmel.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs runtime.tools.arc-elf32.path=/home/builder/.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1 -prefs runtime.tools.i586-poky-linux-uclibc.path=/home/builder/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0 -prefs runtime.tools.openocd.path=/home/builder/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -libraries /tmp/740561557/custom -libraries /tmp/740561557/pinned /tmp/740561557/Utalent_V1_0

Sketch uses 2592 bytes (8%) of program storage space. Maximum is 30720 bytes.

Global variables use 218 bytes (10%) of dynamic memory, leaving 1830 bytes for local variables. Maximum is 2048 bytes.

Validating license ...

Free trial (expires in 30 days)

Programming with: avrgirl-arduino flash -f undefined -a nano (new bootloader) -p /dev/ttyUSB0

connected

reset complete.

flashing, please wait...

flash complete.

</c>
Title: Re: 3020 timeout after 400ms
Post by: BikerMark on May 22, 2019, 05:26 pm
I had this issue initially.
Changed settings of the board to Nano 328P (old Bootloader) fixed it.
Title: Re: 3020 timeout after 400ms
Post by: stkadmin on May 23, 2019, 04:02 pm
Today we got the same message in our class, changing to old boatloader sometimes solved the problem but most of the times it stayed. Our students had two hours to complete the first step today and they haveto continue with further steps next week, but now our entire timing is wasted.

Can somebody please suggest a possible solution so we can get to work next week?

The students were working with arduina nano on HP chromebooks, ChromeOS 74.
I had the same problem with arduina nano on Lenovo chromebook, ChromeOS 75.
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on May 23, 2019, 08:25 pm
Hi Everyone,

We've just published v1.0.15 of the Create Chrome app to address this.

You can visit chrome://extensions (http://chrome://extensions) to check which version you are at, there's an update button on that page to manually update, if that doesn't work you can also try to reboot the Chrome OS device.

Please let us know if you have any further issues.
Title: Re: 3020 timeout after 400ms
Post by: T_Barnitt on Jul 01, 2019, 06:08 am
Having the same problem.  Tried rebooting board, rebooting chromebook, verifying my chrome os is up to date, etc.

  Sending3020: receiveData timeout after 400ms
Just installed v1.0.15.
ChromeOS 75.0.3770.102
Acer Chromebook 14

I just paid for the subscription based on your post above that the issue is fixed.

Please advise, are you actively working to fix this?  If not, I'd like to make a decision
on whether to terminate the subscription, as this is DOA for me.

Also, just wondering, can I configure it to wait longer than 400ms for a reply?

Thanks.
Title: Re: 3020 timeout after 400ms
Post by: sandeepmistry on Jul 02, 2019, 03:17 pm
Hi @T_Barnitt

What board are you using?
Title: Re: 3020 timeout after 400ms
Post by: BikerMark on Aug 13, 2019, 09:28 am
The issue is back again, and therefore: so am I. :smiley-confuse:
I made progress with Arduino, and recently succeeded in flashing an ATTiny25. I had to upload a bootloader (micronucleus) first to get the clock in sync with my UNO as ISP.

Since the time-out issue of this topic was sometimes fixed by switching to the old bootloader, I wonder whether this could be the solution to the problem. If so, it could be an idea to provide here an appropiate bootloader which could be uploaded to any defective devices (read Nanos)?

Seen the number of reads of this issue (>13K now); it's an urgent one.

EDIT: Found a clue: defective device! Today I opened up a new Nano, flashed it to see whether defective or not (it was not) and then soldered the headers with my solder iron. I noticed a little shabby work on my side; needed to reheat some pins twice or even more.
After soldering the time-out issue came up again. So this seems to be the cause of the issue. Before soldering: no problemo! After soldering: 400ms time-out problem!

I'll now attach pins on another one (bought 10 in one lot) in my reflow oven and update this post again when done...

EDIT2: Done. What I thought: no problemo after reflowing the pin headers. So this whole thing might be invoked by soldering too hot/too long. I suspect it's the crystal on board that's pretty close to the pins to be soldered. I'll try and replace them on my defective boards (now I have three of them).