Author Topic: Can you guess?  (Read 3394 times)

PeterF

  • Hero Member
  • *****
  • Posts: 881
Can you guess?
« on: October 26, 2016, 02:21:01 am »
I wounder what this could be (see attached pic)? ;D ;D ;D

(sorry Erik, I couldn't help myself!)
« Last Edit: October 26, 2016, 02:24:21 am by PeterF »

ScottM

  • Newbie
  • *
  • Posts: 41
Re: Can you guess?
« Reply #1 on: October 27, 2016, 06:23:59 am »
Does this mean that Blynk finally works?

emardee

  • Full Member
  • ***
  • Posts: 135
Re: Can you guess?
« Reply #2 on: October 27, 2016, 06:46:10 am »
Blynk has been working for several months now.... so it is not that.

What Peter is hinting at, is that it would appear that Particle Build IDE is now finally working (on v1.0.6 firmware only!). This means that you can edit your sketch from a browser window and upload it to your Oak without needing Arduino IDE to be installed at all. I've been waiting for this, as it'll help me a lot! Tread carefully though, as no instructions in the Wiki yet, but Peter has clearly had success uploading a basic sketch to his using this method! Yay!

I wonder how the "includes" work? Do you have to upload them to the site yourself?

As I understand it official announcement from Erik is coming soon, but I guess he is getting instructions ready first....

Mike


PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Can you guess?
« Reply #3 on: October 27, 2016, 06:14:55 pm »
Yeah, I can confirm it's not blynk! :-D

btw, the 1.0.6 fw is not in relation to the version of firmware running on the Oak (user rom or config rom), but the version of the firmware that your code (user rom) with be compiled against. So as long as you're Oak is online and receptive of OTA programming, it should work.

I suspect all the libraries included with the Oak are there behind the scenes, so those ones won't be an issue. Third party libraries may be an issue... you can add extra tabs and import the files that way, which would work, but be annoying. Hopefully the 'Community libraries' will work with the Oak, my concern there being they may have been tailored for the Photon/Electron, and thus be not compatible with the Oak. If there is some way of getting integration with Arduino Create, that would be a better option, as they let you import zip libraries, and have a view so you can see the custom libraries you've loaded.

However, only time and breaking testing will tell! ;)

In lieu of official docs... maybe the attachment will wet your appetite and show the layout of things a bit?

The important thing to do at this time is to go into Devices, choose your victim (it has a star next to it's name), and then click the ">" beside it, and make sure it will compile using 1.0.6 (otherwise you WILL need a USB to serial adapter to unbrick your Oak about 30 seconds after pressing the "Flash (Upload)" button). Then write code to your hearts content, make sure it compiles (Verify) and then send it to your Oak when ready (Flash).

Now, if Particle's DNS wasn't down at the moment!!!
« Last Edit: October 27, 2016, 06:21:26 pm by PeterF »

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Can you guess?
« Reply #4 on: October 29, 2016, 11:21:40 pm »
Actually, I take it back... there is still something b0rked in relation to libraries. The core ESP8266 libraries are accessible (ESP8266Wifi, ESP8266mDNS, ESP8266WebServer), and so is Wire, but most of the other stuff is missing. I've been poking around in the docker image that should be the base of the whole thing, I was able to get SPI, Adafruit_ILI9341 and Adafruit_GFX to be acknowledged/compiled (needed for my TFT Oak display), but some of the other libraries are doing my head in (due to the looping nature of how code is being processed - all the non-arduino helper codes are being compiled - so they either need to be removed, or have conditional compilation defines so they get ignored).
« Last Edit: October 29, 2016, 11:47:22 pm by PeterF »

emardee

  • Full Member
  • ***
  • Posts: 135
Re: Can you guess?
« Reply #5 on: October 30, 2016, 06:00:41 pm »
What are the implications from your findings?

Presumably the problems don't brick the the Oak?

My guess is that it either doesn't compile and therefore flags a warning, or it compiles and uploads with wrong or missing libraries, which causes the script to not run correctly... but you can always upload a new sketch over the top. Is that correct?

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Can you guess?
« Reply #6 on: October 30, 2016, 08:19:23 pm »
Spot on Mike... it simply doesn't compile... no bricking needed! ;-)

From what I can tell, simple arduino stuff will work, but basically anything outside that doesn't work yet... other than Particle stuff as that is core. So a blinky sketch works and a particle publish sketch works. A Oak serving a web page *should* work. A onewire sketch (for a DS18B20 temperature sensor) doesn't work (compile) [not 100% sure on that last one].

However, it seems that the cloud compiler has broken again... (or Particle is suffering more DNS issues?), as it is now simply spitting out "Error: Could not compile. Please review your code." to a simply blink sketch. :-(