How to load new firmware?

93 views
Skip to first unread message

czyiv...@gmail.com

unread,
Dec 29, 2016, 2:49:50 PM12/29/16
to Safecast Air Quality Discussion
Greetings,

I have the new WIFI Module and want to proceed with loading the new software.  While I feel I am technically confident, I am lacking the detailed knowledge on how to proceed.  When I updated my firmware on my bGeigie, there was a document How to setup build environment on Mac OS X which I followed.  Has anyone created instructions on how to perform the firmware upgrade on the Air Particulate unit?

I am not sure which files in need to use?  I have searched the related Safecast Air https://github.com/Safecast/Safecast-Air and am left needing more information.

A list of steps to take and what files to use and how to find them would help.

Regards, JOHN

ta...@kithub.cc

unread,
Dec 29, 2016, 5:44:01 PM12/29/16
to Safecast Air Quality Discussion
Hi John,

You will need the following in order to update the firmware:

1. Arduino IDE 1.6.11

2. Teensy (software for version 3.2)

3. Firmware files

This is what we are working off of but you need the libraries from the main firmware branch. 

Make sure that your Arduino sketchbook location is pointing at the folder on your local drive. This is what mine looks like
/Users/tiger/Desktop/Safecast-Air-master/firmware/

This is what my Arduino Tools dropdown looks like:




Practice
If you are new to updating Arduino, then please go through this quick tutorial. Start with "Install Arduino" and then practice with the Blink exercise. You will then apply this same logic to upload the Safecast files.


I'll add this to the Safecast page and work with them to provide a more comprehensive set of instructions.

-Tara

czy...@aol.com

unread,
Dec 31, 2016, 3:53:35 PM12/31/16
to Safecast Air Quality Discussion
Greetings

I downloaded the Arduino 1.6.11 then tried teensyduino 1.3.4 but it is not compatible with 1.6.11?  I could not find 1.3.2?  Is it available?

Regards, JOHN

czy...@aol.com

unread,
Dec 31, 2016, 6:02:31 PM12/31/16
to Safecast Air Quality Discussion
More Greetings,

I did find version 1.3.3 in the PJRC archives and it seems to work?

Regards, JOHN

czy...@aol.com

unread,
Jan 1, 2017, 6:54:05 PM1/1/17
to Safecast Air Quality Discussion
Greetings All,

After a few twists and turns, I was able to load the new software on my unit.  I am now getting an error message on the display:

error:  config file

I presume that this is due to the fact that I added "xxxxxx" for the API Key?

I will double check the code of my text edit on my SAFECAST.txt file for correct Unicode content.  

I think that I am now in a hold pattern waiting on an API key.  Once I get it and can get passed this error message, I will check to see that my unit is connected to my Wireless Network.

Regards, JOHN

ta...@kithub.cc

unread,
Jan 2, 2017, 1:42:38 PM1/2/17
to Safecast Air Quality Discussion
The Safecast Air unit works without the API Key (which I just emailed to everyone).

I looked on the about screen for the Arduino and Teensy and this is what I have installed:

Arduino 1.6.11

Teensy Loader 1.30
I see on this page that 1.32 supports Arduino 1.6.11 but I don't see that 1.34 supports that version and I'm not sure about 1.33. 

Where did you find the archived versions?


Here is a photo of what my screen looks like. 

John Stanke

unread,
Jan 2, 2017, 3:12:52 PM1/2/17
to safeca...@googlegroups.com
Greetings Tara,

I have completed the attached in hopes it may help someone else.

I found the teensyduino software archive on the pjrc website link “Download Website” (upper righthand corner of site).

I will work on my SAFECAST.txt file and I have worked this out before and know it is my last hurtle to completing my update.

Regards, JOHN

Safecast Air Software Update.pptx

ta...@kithub.cc

unread,
Jan 4, 2017, 6:47:22 PM1/4/17
to Safecast Air Quality Discussion
John,

This was very kind of you to put together. Thank you!

Both Will and I updated the summarized instructions here:

Best,
Tara

John Stanke

unread,
Jan 4, 2017, 6:57:04 PM1/4/17
to safeca...@googlegroups.com
Tara,

I was blocked from downloading the archive from pjrc. (I was trying it again, I had previously done it successfully.)   I asked them why and they responded, why did in need version 1.32 or even 1.33?  They suggested that I upgrade to a new version of Arduino software.  Here is their response:

"t was perhaps my clumsy English (I'm not a native speaker) which lead to that misunderstanding. I wanted to suggest that you go away from the old and outdated Arduino 1.6.11 and take a newer version of it (for example 1.8), so that you can also use the newest version of Teensyduino.
***************


There may also be other replies, but you will not receive any more notifications until you visit the forum again.

All the best,
PJRC (Teensy) Forum”


They also indicated that they were changing servers so that may be why the archive was no longer available?

Is there a reason to stick with Arduino 1.6.11?

Just thought you should know about this small issue.

Regards, John

--
You received this message because you are subscribed to a topic in the Google Groups "Safecast Air Quality Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/safecast-air/si-nY-za8uk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to safecast-air...@googlegroups.com.
To post to this group, send email to safeca...@googlegroups.com.
Visit this group at https://groups.google.com/group/safecast-air.
For more options, visit https://groups.google.com/d/optout.

ta...@kithub.cc

unread,
Jan 4, 2017, 8:49:34 PM1/4/17
to Safecast Air Quality Discussion
Hi John,

I was thinking something similar and will ask the developers.  My preference is to get everyone working before we do an upgrade in case something isn't compatible and then leaves another variable to troubleshoot.

Tara

ta...@kithub.cc

unread,
Jan 4, 2017, 9:03:56 PM1/4/17
to Safecast Air Quality Discussion
Rob just told me he was able to compile with Arduino 1.8.0. If we are unable to get the compatible version of teensduino for arduino 1.6.11 then it seems the best course of action is to upgrade to Arduino 1.8.

I haven't tried myself yet to verify. I also haven't heard from Will who wrote the firmware.

czyiv...@gmail.com

unread,
Jan 5, 2017, 12:39:48 PM1/5/17
to Safecast Air Quality Discussion
Greetings Tara,

I am downloading Arduino 1.8 I already have Teensyduino 1.3.4.  I will give it a try and let you know.

Regards, JOHN

czyiv...@gmail.com

unread,
Jan 5, 2017, 1:19:44 PM1/5/17
to Safecast Air Quality Discussion
Greetings Tara,

I have successfully loaded the software and am back on line with my unit.  I used  Mac OS 10.10.1 with Arduino 1.8.0 and Teensyduino 1.3.4.

Regards, JOHN

James Petts

unread,
Jan 5, 2017, 1:30:02 PM1/5/17
to safeca...@googlegroups.com
I feel so left out :-( Especially as I could be reporting temperatures of 14 degrees F. :-(((

--
You received this message because you are subscribed to the Google Groups "Safecast Air Quality Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to safecast-air+unsubscribe@googlegroups.com.

ta...@kithub.cc

unread,
Jan 7, 2017, 3:44:32 PM1/7/17
to Safecast Air Quality Discussion
That's great news! Thanks so much for testing that out. 

ta...@kithub.cc

unread,
Jan 7, 2017, 3:44:53 PM1/7/17
to Safecast Air Quality Discussion
James did you get your new cable?
To unsubscribe from this group and stop receiving emails from it, send an email to safecast-air...@googlegroups.com.

James Petts

unread,
Jan 7, 2017, 6:26:10 PM1/7/17
to safeca...@googlegroups.com
Not yet - I'm away from home at present. As soon as I get it I'll update my status.

To unsubscribe from this group and stop receiving emails from it, send an email to safecast-air+unsubscribe@googlegroups.com.

James Petts

unread,
Jan 8, 2017, 8:15:05 PM1/8/17
to safeca...@googlegroups.com
Back home, F/W upgraded, connected to WiFi, and collecting data. It's at an inside location, and hasn't gotten a GPS fix yet, but please can you check to see whether data is being logged?

Sean Bonner, Safecast

unread,
Jan 8, 2017, 8:26:12 PM1/8/17
to safeca...@googlegroups.com, James Petts
Hi James-
Needs a GPS fix before it’ll send data as it needs to be outside and data without GPS tends to cause more problems. Let us know when it’s outside and locked?

Thanks!
-s


Sean Bonner

Co-Founder, Director of Global Operations

Safecast.org | pgp key

signature.asc

John Stanke

unread,
Jan 8, 2017, 8:28:07 PM1/8/17
to safeca...@googlegroups.com
James,

If you are 08, you are on line and the gps points to Seattle.

Regards, JOHN

James Petts

unread,
Jan 8, 2017, 8:34:07 PM1/8/17
to safeca...@googlegroups.com
Yes, just got a fix, and I am 08. GPS is Redmond, WA, 14 mi E of Seattle.

ICBM address of house is: 47.682590 N, 122.129137 W



To post to this group, send email to safecast-air@googlegroups.com.

Visit this group at https://groups.google.com/group/safecast-air.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Safecast Air Quality Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to safecast-air+unsubscribe@googlegroups.com.
To post to this group, send email to safecast-air@googlegroups.com.

-- 
You received this message because you are subscribed to a topic in the Google Groups "Safecast Air Quality Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/safecast-air/si-nY-za8uk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to safecast-air+unsubscribe@googlegroups.com.
To post to this group, send email to safecast-air@googlegroups.com.

John Stanke

unread,
Jan 8, 2017, 8:35:26 PM1/8/17
to safeca...@googlegroups.com
James, 

You can see your data at:


Regards, JOHN

James Petts

unread,
Jan 8, 2017, 8:37:08 PM1/8/17
to safeca...@googlegroups.com
Thanks to all for getting this set. I'll be placing it outside tomorrow.

Regards, JOHN

To unsubscribe from this group and all its topics, send an email to safecast-air+unsubscribe@googlegroups.com.

To post to this group, send email to safeca...@googlegroups.com.
Visit this group at https://groups.google.com/group/safecast-air.
For more options, visit https://groups.google.com/d/optout.

Alberto Villa

unread,
Feb 27, 2017, 7:48:06 AM2/27/17
to Safecast Air Quality Discussion
To John: Thanks for your <Safecast Air Software Update.pptx> document.

There is a point I would like to clarify.

1) Page 16, last sentence: "Make sure you use a text editor with Unicode UTF-8 encoding."
2) When I powered on the air kit for the first time with the SD card in place (but firmware not updated), after the boot phase the OLED display showed the message "error: config file".
3) In Section 8 of the Operations Manual (Troubleshooting) I read that one of the possible causes of this error message could have been a txt file encoded with UTF-8 instead of ANSI/ASCII. Here is the text:

"Another possibility is that the safecast.txt file doesn’t contain valid JSON code. This happens when it has been edited with a text editor that uses UTF-8 encoding instead of ASCII."

This info is conflicting with your recommendation. So my doubt is: which one is the correct encoding for the configuration files? Consider that I am not a software programmer...

Thank you very much and best regards,

Alberto
===========================

czy...@aol.com

unread,
Feb 28, 2017, 12:30:51 AM2/28/17
to Safecast Air Quality Discussion
Greetings,

I believe I got this backwards as you have pointed out.  You should be using a ASCII text editor.  I just reviewed Tara's recommendation back when we were having display issues.  So you are correct the wording in my work should be reversed.

Hope this helps.

Regards,  JOHN

Alberto Villa

unread,
Feb 28, 2017, 4:59:25 PM2/28/17
to Safecast Air Quality Discussion
Thank you very much, John!

Best regards,

Alberto
Reply all
Reply to author
Forward
0 new messages