Apnea Board Forum - CPAP | Sleep Apnea
Toshiba FlashAir on Mac Notes - Printable Version

+- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums)
+-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area)
+--- Forum: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum)
+--- Thread: Toshiba FlashAir on Mac Notes (/Thread-Toshiba-FlashAir-on-Mac-Notes)

Pages: 1 2


Toshiba FlashAir on Mac Notes - mtwomey - 09-15-2019

This was a PITA to get working the way I wanted, but in the end it turned out to be fairly simple. The main issue was really that the FlashAir software isn't great, and it sort of sends you in a bad default direction for a CPAP machine (even if it's right for a camera).

Anyhow notes in case it helps anyone else...

Goal: Load my CPAP data into OSCAR running on my Mac (which is hardwired ethernet) without having to take the SD card out of the AirSense 10 and without having to jump through too many hoops on my Mac.

Solution:

The main discovery was that I could edit the WIFI config of the FlashAir card, directly on the card. The software wasn't giving me any option to set the card to a simple WIFI client (with DHCP, that would simply connect to my network just like any other device). It keep trying to set it up as an access-point.

If you plug the flashcard in, you'll see a directory called "SD_WLAN". Inside that folder is a CONFIG file. You can edit the options in there to set it up as a simple wireless client:


Code:
[Vendor]

CIPATH=/DCIM/100__TSB/FA000001.JPG
VERSION=F15DBW3BW4.00.04
CID=02544d535733324755e468cc7b012501
PRODUCT=FlashAir
VENDOR=TOSHIBA
APPSSID=your-wireless-network-name
APPNETWORKKEY=your-wireless-network-password
APPMODE=5
DNSMODE=0
APPNAME=resmed
LOCK=1
MASTERCODE=set-a-code-for-the-mobile-app
WEBDAV=2


Back up this file first, if you want to restore it in case of issues.

The above are the only options you should have in there - take out any other options (or they might cause issues). You'll really only need to edit APPSSID, APPSSID, and MASTERCODE in the above example.

DON'T copy and paste the above. For the fields you are not editing, you need the values generated on your own card (such as CIPATH, VERSION, CID, …etc). In other words, the config above is just an example - EDIT the config on your own card.

Once you've saved your edits, pop the card and put it back into your CPAP machine. You should now be able to browse to http://resmed.local/ and see the files on the card. Furthermore you can map a drive to it, as a WebDAV drive in OSX in the finder by going to Go -> Connect to Server then typing in http://resmed.local/

One your drive is mapped, OCSAC picks it up automatically (apparently it scans your volumes for what appears to be resmed data structures - cool).

Reference on this CONFIG file can be found here: https://flashair-developers.com/en/documents/api/config/


RE: Toshiba FlashAir on Mac Notes - mtwomey - 09-15-2019

It should also be noted that I'm using a FlashAir v4 card in the above. I have no experience with the earlier versions - but it seems like you no longer really need any 3rd party tools with the v4 cards (since you can just permanently mount the drive over your wireless network and OSCAR detects and reads straight from it).


RE: Toshiba FlashAir on Mac Notes - Crimson Nape - 09-15-2019

You may copy over the files as you noted but the 3rd Party software copies only the files that it doesn't have on the PC. Using WebDav requires some effort to achieve the same process.


RE: Toshiba FlashAir on Mac Notes - pholynyk - 09-15-2019

>>>the 3rd Party software copies only the files that it doesn't have on the PC

That's only important when you have a year or more of data and each high-rate (flow & pressure) are approaching 1MB worth of data... Big Grin


RE: Toshiba FlashAir on Mac Notes - Crimson Nape - 09-15-2019

Excellent point!


RE: Toshiba FlashAir on Mac Notes - mtwomey - 09-15-2019

In this setup, you're not copying any files anywhere.

OSCAR is just reading them straight over the mapped drive. In fact, on a MAC (not positive on PC), OSCAR even auto-finds the mapped drive with the CPAP data (just like it auto-detects the data on an SD card when inserted). I literally open up OSCAR and click Import, then click Yes and that's it.

I suppose you could copy the files over somewhere if you wanted to, for additional backup purposes.


RE: Toshiba FlashAir on Mac Notes - pholynyk - 09-15-2019

As long as your mapped drive doesn't ever go away, and then you have to start all over getting all the files...


RE: Toshiba FlashAir on Mac Notes - mtwomey - 09-15-2019

(09-15-2019, 10:49 PM)pholynyk Wrote: As long as your mapped drive doesn't ever go away, and then you have to start all over getting all the files...

Not sure I understand there? I've disconnected and reconnected the mapped drive several times in the process (as well as every time I take my laptop out of the house). I've never had to start all over - why would that happen?


RE: Toshiba FlashAir on Mac Notes - Crimson Nape - 09-15-2019

I'm glad that it is working for you.  Is your DHCP server acting as your WINS server as well?  The reason I ask is because if the DHCP server assigns a new address to the FlashAir, the WINS server is going to point to the old address unless it gets a refresh command.


RE: Toshiba FlashAir on Mac Notes - mtwomey - 09-15-2019

My DNS server does also act as a WINS server - however, this is a mac and that never comes into play (WINS is a Windows name resolution protocol).

.local based name resolution is multicast DNS resolution (rfc6762). So the name doesn't need to register itself anywhere. None-the-less, you could just as easily configure it with a static IP if you were concerned about this or if you were running on Windows and mDNS isn't supported there (not positive).

Notes on the options to configure it with a static IP can been found here: https://flashair-developers.com/en/documents/api/config/

Happy to help out anyone if they go this route and run into trouble.