Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

[EzShare SDcard wifi] Script to autodownload
RE: [EzShare SDcard wifi] Script to autodownload
I made a small update that may work for older models, but I have no way to validate.
Post Reply Post Reply
RE: [EzShare SDcard wifi] Script to autodownload
(01-25-2024, 06:56 PM)dwbrott Wrote: I made a small update that may work for older models, but I have no way to validate.

Hey man, just got my AS11 the other day and am trying to use the PowerShell script to download the files. For me, it seems to get stuck on the first SA2 file (probably one of the bigger files). It gets stuck because when it hits that file, it crashes the web server on the ezshare card. To get it back up and responding I have to take it out of the machine, clear the cfg file on the card and put it back in. I can access the ezshare site again until I try to fetch again. Not sure if it's a file size limitation or what but it's super annoying!  Ever run into this?
Post Reply Post Reply
RE: [EzShare SDcard wifi] Script to autodownload
(01-26-2024, 01:35 PM)gfisher99 Wrote: Hey man, just got my AS11 the other day and am trying to use the PowerShell script to download the files. For me, it seems to get stuck on the first SA2 file (probably one of the bigger files). It gets stuck because when it hits that file, it crashes the web server on the ezshare card. To get it back up and responding I have to take it out of the machine, clear the cfg file on the card and put it back in. I can access the ezshare site again until I try to fetch again. Not sure if it's a file size limitation or what but it's super annoying!  Ever run into this?

This is what I get when it gets stuck, seems to happen on any file over 63KB:

Writing web request                                                                                                       
 Writing request stream... (Number of bytes written: 64512)
Post Reply Post Reply
RE: [EzShare SDcard wifi] Script to autodownload
(01-26-2024, 01:52 PM)gfisher99 Wrote: This is what I get when it gets stuck, seems to happen on any file over 63KB:

Writing web request                                                                                                       
 Writing request stream... (Number of bytes written: 64512)

Don't know if it will fix your problem or not, but I replaced Invoke-Webrequest Cmdlet with System.Net.WebClient which is potentially a more robust way to make the call.
For me, there isn't much difference, but the earlier version would flash the PowerShell window with messaging and the new call doesn't do that.  I added a small amount of error messaging so that if it does fail, it should print a message with details.

File size hasn't been an issue for me as I've had no issue downloading files > 1MB.  It's possible that the folder you're writing to doesn't have the necessary write permissions and while 64k was downloaded from the ezShare card, it failed to write the output due to the permission error.

This was my first shot at real PowerShell programming.  I started with PHP and Linux and was able to put that together very quickly, but it seemed more appropriate to use something native to Windows to make it as simple as possible for others.

I've found the Powershell method easier for myself since I'm usually on my Windows computer and whether I run the script daily or every once in a while, it will pull any files that need to be updated.
Post Reply Post Reply
RE: [EzShare SDcard wifi] Script to autodownload
(01-27-2024, 11:26 AM)dwbrott Wrote: Don't know if it will fix your problem or not, but I replaced Invoke-Webrequest Cmdlet with System.Net.WebClient which is potentially a more robust way to make the call.
For me, there isn't much difference, but the earlier version would flash the PowerShell window with messaging and the new call doesn't do that.  I added a small amount of error messaging so that if it does fail, it should print a message with details.

File size hasn't been an issue for me as I've had no issue downloading files > 1MB.  It's possible that the folder you're writing to doesn't have the necessary write permissions and while 64k was downloaded from the ezShare card, it failed to write the output due to the permission error.

This was my first shot at real PowerShell programming.  I started with PHP and Linux and was able to put that together very quickly, but it seemed more appropriate to use something native to Windows to make it as simple as possible for others.

I've found the Powershell method easier for myself since I'm usually on my Windows computer and whether I run the script daily or every once in a while, it will pull any files that need to be updated.

Thanks - I tried the new version and have the same problem. Moreover, the ezshare card is incredibly unstable, web server crashes constantly, etc. I am just going to return the card and do my oscar imports manually when I want to see the data. Shame, I really wanted this to work. I am a Infrastructure Systems Architect myself and am intimately familiar with powershell (the reason I was excited to try it). Your script is good, it's just the card (or FW version of mine in particular) is trash.
Post Reply Post Reply
RE: [EzShare SDcard wifi] Script to autodownload
gfisher99 - Have you tested the communication with the SD card in another PC or using a USB reader plugged in to a USB power supply. In testing other wireless SD cards, I found the CPAP slot has minimal power that severely affects the needed additional power draw to use the Wi-Fi.

- Red
Crimson Nape
Apnea Board Moderator
Project Manager for OSCAR - Open Source CPAP Analysis Reporter
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply
RE: [EzShare SDcard wifi] Script to autodownload
Yeah, I often have WiFi disconnects. I don't know if I would go so far to say the HTTP server is crashing because when the WiFi is up, the web server seems to be up without issue. The only time I see problems are when the WiFi disconnects and that's all too frequently.

In fact, I have a tower computer next to my desk that I use for this purpose and I turned it about 35 degrees to get a "more" stable connection. There just doesn't seem to be enough power in the internal WiFi card on the computer and the access point on the tiny, tiny SD card. I'm impressed they've done what they've done in such a small space even if the HTTP server itself is a bit hokey.
Post Reply Post Reply
RE: [EzShare SDcard wifi] Script to autodownload
I read on lzeal's website that you can reformat the ez share wifi sd, so I did...there is now one 0 byte file called ezshare.cfg...:-(

Does anyone have or know where I can get the firmware? I have the orange 16 gb version...

Thanks,
Bob
Post Reply Post Reply
RE: [EzShare SDcard wifi] Script to autodownload
Reformatting the card does not erase the firmware. The Wi-Fi capability is usually a separate chip within the package.
- Red
Crimson Nape
Apnea Board Moderator
Project Manager for OSCAR - Open Source CPAP Analysis Reporter
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply
RE: [EzShare SDcard wifi] Script to autodownload
That's good. The SSID should go back to the default value? I don't see it. 

It used to work - I could see that SSID when hooked up to my desktop. I changed the SSID to my network's SSID. I put the ez share into my Philips CPAP just to see what would happen. I then put it back in my desktop and I could no longer find it. 

That's when I reformatted it...a bad ez share?

Thanks,
Bob
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Information EzShareApp - CPAP Data Downloader from EzShare SD card for macOS adrianfeeger 18 763 10-29-2024, 09:53 PM
Last Post: adrianfeeger
  WiFi SD Card for AirSense and OSCAR Stillglade 3 1,693 09-03-2024, 05:15 PM
Last Post: dwd1249
  Wifi to Oscar KimLB 1 500 07-01-2024, 06:30 PM
Last Post: Crimson Nape
  Created a program to support Wifi SD card for Resmed and all other devices narual 15 4,184 05-03-2024, 11:09 PM
Last Post: narual
  [split] FYSETC SD Wifi - Possible FlashAir Replacement Psikic 131 26,105 01-12-2024, 11:59 AM
Last Post: scowell
  Request Copy of Resmed Airsense 10 SDCard core files gedm 6 926 12-14-2023, 07:04 PM
Last Post: gedm
  FlashPAP - FlashAir WiFi SD card utility TiredToo 296 103,239 10-05-2023, 06:54 AM
Last Post: olddog27


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.