Author Topic: Slow / Delayed sketch uploads  (Read 4156 times)

byronsalty

  • Newbie
  • *
  • Posts: 7
Slow / Delayed sketch uploads
« on: February 21, 2016, 08:43:41 am »
I'm playing with the RGB LED shield and my Oak and I've been noticing some odd sketch upload behavior.

Sometimes when I try to upload it doesn't go through. When I change the sketch and upload, sometimes the previous sketch makes it's way to the Oak.

If I wasn't playing with simple blinking lights then it would probably be very difficult to see what's going on.

Has anyone else seen and/or fixed this?

byronsalty

  • Newbie
  • *
  • Posts: 7
Re: Slow / Delayed sketch uploads
« Reply #1 on: February 21, 2016, 09:07:35 am »
Ok I still don't know why but I can get a pretty good view of it happening by watching the particle event stream (using curl).

I see this when I flash it and it doesn't do anything:
event: spark/flash/status
data: {"data":"started ","ttl":"60","published_at":"2016-02-21T16:59:47.330Z","coreid":"..."}


And this when I flash it and it does work:
event: spark/flash/status
data: {"data":"success ","ttl":"60","published_at":"2016-02-21T17:01:15.168Z","coreid":"..."}

event: spark/status
data: {"data":"offline","ttl":"60","published_at":"2016-02-21T17:01:16.207Z","coreid":"..."}

event: spark/status
data: {"data":"online","ttl":"60","published_at":"2016-02-21T17:01:24.414Z","coreid":"..."}


I wonder if I flash it and then manually boot it, would it work every time?

byronsalty

  • Newbie
  • *
  • Posts: 7
Re: Slow / Delayed sketch uploads
« Reply #2 on: February 21, 2016, 09:57:35 am »
Heh - I think the answer is: just wait longer.

PeterF

  • Hero Member
  • *****
  • Posts: 883
Re: Slow / Delayed sketch uploads
« Reply #3 on: February 21, 2016, 09:05:30 pm »
lol... I noticed the same thing. I thought it wasn't going to load the program... and then a minute or so later it took. Just looks like sometimes it takes a bit longer for it to download and run the new program.

Z69

  • Newbie
  • *
  • Posts: 28
Re: Slow / Delayed sketch uploads
« Reply #4 on: February 22, 2016, 07:54:37 am »
Hi

What i am seeing is that it seems that the code i loaded the previous time is only loaded once i send a new upload???
I upload my code, basic led flashing, and it does not seem to load.
I then send new code, time interval changed and the old code load.... something looks broken

Is there a way to check what was loaded on Particle?

I am also seeing "OLD" code getting reloaded - What The Fudge???
« Last Edit: February 22, 2016, 08:58:32 am by Z69 »

eumb

  • Newbie
  • *
  • Posts: 3
Re: Slow / Delayed sketch uploads
« Reply #5 on: February 24, 2016, 07:08:11 am »
It took 3 minutes for me to upload the sketch. I must admit it is a big one (263,567 bytes)

spark/flash/statussuccess February 24th at 4:59:44 pmOak1
{"data":"success ","ttl":"60","published_at":"2016-02-24T14:59:44.642Z","coreid":"d9570400083ac9f8da60afcf","name":"spark/flash/status"}
spark/flash/statusstarted February 24th at 4:56:45 pmOak1


The funny part is that I have the device by my side and I canot upload faster :)

PeterF

  • Hero Member
  • *****
  • Posts: 883
Re: Slow / Delayed sketch uploads
« Reply #6 on: February 25, 2016, 02:02:50 am »
But the tubes are longer if it has to go all the way to the Particle server from your laptop, and then from the Particle server back to your Oak!

And I was about to ask how you knew the size of the upload... then the penny dropped (Arduino IDE)... has been a long day!

I raise you... five and six minutes for uploads... from started to success. It was more like a minute the first night I used them, but is now just a wee bit slower... And the Particle dashboard is cool for showing those programming start and finish messages, as well as the other messages you make your Oak send.