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

[split] FYSETC SD Wifi - Possible FlashAir Replacement
#61
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
Ah, so I am not alone with this.  

As a "hardware guy", I'm tempted to solder a capacitor across the power and ground pins of the SD extender socket.  I have a 100uF ceramic cap that will fit across pins 3 (which is a double contact GND) and pin 4 which is VDD.  I don't know about the start up, but the cap on the extender socket will be able to supply any local current to the FYSETC.  Beyond that, all I can think of is an independent power supply to rule out a weak CPAP power supply.  I'd much rather solder a surface mount cap than fool with an external supply.  I will try the cap tomorrow.  Got to set up the microscope to do it, the old eyes have a tough time otherwise.
Post Reply Post Reply






Donate to Apnea Board  
#62
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
(03-25-2021, 04:30 PM)Crimson Nape Wrote: I'm having a problem with the "SD card Failing to Initialize" error when trying to use the SDIO connection.

Does the FYSETC really support SDIO? All I can find is SPI?
Post Reply Post Reply
#63
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
I am referring to the SD card's I/O connection and not its USB connection. Ultimately you are correct, but more people understand the term SD as opposed to SPI.
Crimson Nape
Apnea Board Moderator
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
#64
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
There seem to be some 16gb FlashAir W04 cards floating around EBay for $60 - $70 if anyone is looking for one. Of course there are several at $300 as well...
Post Reply Post Reply






Donate to Apnea Board  
#65
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
A little update and hope this may point us in a positive direction. The "Failed to Initialize the SD Card" error seems to be a timing issue. Sometimes it will work and other times it won't. This error appears to be centered around the SD connection and not the USB one. I've noticed that the code uses several "delay()" calls throughout the entire program. According to Arduino documentation, this command shuts down everything while it executes. I'm working on code as a workaround that will allow for a dwell time without shutting everything else down.

Ideas?

-Red
Crimson Nape
Apnea Board Moderator
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
#66
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
@Crimson Nape - YES!  That's a great observation.  On my platform, the SD-WIFI never connects via CARDREADER.  Delays are dreadful things, they might work, but often don't.

Arduino 101 - one really shouldn't use delay() statements as they are blocking.  However, interrupts can be processed.  Arduino Reference delay

If there's a 1ms timer available (and there is, as I see it in ESPWebDAV statusBlink), then one could use something like in Timing using millis and state machine

This seems like a bit of work to clean it up.  There's 10 (I think) delay statements in the project.
First easy candidate would be blink().  Another would be ? SDControl:Confusedetup()  in sdControl.cpp Ahem, forum SW has mangled this, should be double colon s.
The delay in network.cpp is a candidate, as it occurs early in the startup process.
Post Reply Post Reply
#67
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
Here is the code I am trying.  Since there are several delay() calls, I went on and made it a procedure to avoid having to duplicate it.
Code:
void ESPWebDAV::delay_t(unsigned long dwell){
 static unsigned long start_t = millis();
 static unsigned long current_t = start_t;
 while (current_t - start_t < dwell) current_t=millis();
}
Crimson Nape
Apnea Board Moderator
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






Donate to Apnea Board  
#68
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
Was able to flash the device.  Felt like I needed another pair of hands to do it!  Was kind of awkward at first.  Made a few minor changes, none of which made a bit of difference.  Still get "Failed to initialize SD Card" whenever the FYSETC is powered by the SDCARD end.

Measured the CS (chip select) signal on the card reader extender when the power turned on.  It's behaving like either something is floating, or loading the line.  With a normal SD card plugged in, CS is 3.3V, except when the RPI accesses the SD.  With the FYSETC the CS is around 2V.  Not sure if it is bad, but it is different.  

I attempted to capture the voltage of the CS pin during power on.  The power on cycle is unusual, at least in an RPI system.  There's lots of activity over at least 10 seconds.  I couldn't capture it all with my low end scope.  Didn't think the sequence would last that long.  Maybe the FYSETC isn't waiting long enough for the activity to be over.  Might need to increase the initial timeout to be longer than the 20 seconds that is used now.
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [EzShare SDcard wifi] Script to autodownload biorn 45 1,016 Yesterday, 04:28 PM
Last Post: Crimson Nape
  Toshiba 32Gb FlashAir SD Card mktmgrjrm 9 93 06-18-2021, 03:56 PM
Last Post: Ratchick
  Direct Oscar to new WebDav drive for FlashAir feharris 2 129 06-08-2021, 04:51 AM
Last Post: feharris
Cool Recommendation: FlashAir and Flashpap - Wifi data transfer from CPAP to PC/Sleepyhead mogulman 54 7,983 05-26-2021, 01:18 PM
Last Post: AlanE
  FlashAir files DATALOG copy in 8x3 format DrNefario 4 94 05-03-2021, 12:13 PM
Last Post: DrNefario
  Using FlashAir, what's the timestamp on the data files? cathyf 16 416 04-24-2021, 11:30 AM
Last Post: biorn
  OSCAR and replacement CPAP parkerdt 2 155 03-26-2021, 05:53 PM
Last Post: parkerdt


New Posts   Today's Posts






About Apnea Board

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