Apnea Board Forum - CPAP | Sleep Apnea
[split] FYSETC SD Wifi - Possible FlashAir Replacement - 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: [split] FYSETC SD Wifi - Possible FlashAir Replacement (/Thread-split-FYSETC-SD-Wifi-Possible-FlashAir-Replacement)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - happydreams - 03-21-2021

FWIW the video link on the FYSETC/WebDAV github site is a dead link.  It will say the video is unavailable.
The link Crimson Nape supplied is good.

Phew!  Can't keep up.  To follow the procedure you just indicated, how is the board powered, through the cable?  I just plug it in to the board and the usb port?  No button pushing? Do I need a FAT32 formatted SD card to start?  Or can I connect using the "M" commands for the moment?

To make this permanent, I need to edit SETUP.INI by installing in a separate card reader? Then put it back in SD-WIFI?


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - Crimson Nape - 03-21-2021

The M-codes will store the data in NVRAM. The USB connection will power the card. You just connect to the board using the USB. Using the Comport name or number assigned to the card, you enter the M-codes via a xterm emulator. - That simple!


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - happydreams - 03-21-2021

My goodness, it's been a long time since I have had to use putty.  It took a while to set it up right.    

It's blinking now.  And connected to my network.  I tried to attach to it remotely, but since there was no SD card in it that failed.  Now to find an SD card that I can steal from one of my RPI's...

I'd like to be able to image my current SDHC card to a microSD.

I plugged in a random small SD card (FAT16 !) and restarted the SDwifi.  If I open a dav://ip/DavWWWRoot I see nothing.  Is the SD card supposed to be initialized with something?

Message on putty console shows:
m: PROPFIND r:0 u: /DavWWWRoot
Processing PROPFIND
Depth: 0
404 Not Found

Slowly getting there...


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - Crimson Nape - 03-21-2021

The SD card has to have something on it for it to display.  To cover all the bases, try a web search using the term, "mount a WebDAV drive on a fill in your OS here!" (Mac, Linux, or Windows).


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - happydreams - 03-21-2021

Well that was dumb of me to follow the instructions...  I don't have a file or directory called DavWWWRoot on the SD card...  So I couldn't connect to a non-existent directory.  On an RPI, if I set it up to just dav://my_FYSETC_ip/ I can see the contents of the card!  And copy something over to it.  It seems the WEBDAV firmware does copy over a file called ip.gcode.  It wasn't there before.  It also has a file date of 12/31/1999...

Next step is to image my old Data on my SDHC card over to a microSD.

Now once I do that, do I need to change the position of the switch when it's installed in the PAP machine?
I have noticed this unit cannot read or process files with spaces in the name.  I had a music file with spaces and tried to copy it.  This cause the FYSETC webdav to crash.  Curiously it responds to a ping.

Hope none of the PAP files have spaces...
Otherwise it seems to work, if a little slow.  Still a lot better than me forgetting to install the SD card...


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - A KLERK - 03-21-2021

I came as far as "Check Tools > Port and make sure that you are connected to the correct Com port."
But Port stays greyed out:

[attachment=30971]

Must the card also be in an SD-slot or not? I tried both without luck...


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - happydreams - 03-21-2021

When operating in a CPAP, what is the switch position?  Cardreader?

One thing I do notice: if a file is transferred to the FSETC via DAV  from my computer, the timestamp is lost.  (It gets set to 12/31/99  20:00)  So it isn't good to transfer from your machine to the PAP.


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - happydreams - 03-21-2021

To get this to work, technically one doesn't even need to use Arduino.  Stubborn people like me had to install the correct libraries and do the compile.  I have not flashed the device.  It isn't necessary, just to get started.  So I exited Arduino to do the next steps.

To get it to connect initially, plug in the USB cable - making sure the switch is in the USB2UART position. The device does not have to be in a card slot.
Then use putty to connect to it.  The tricky part is figuring out which port.  If windows, I'd guess you would use a variant of device manager?  Not sure on a mac.  For linux I checked in /dev to see what showed up when I plugged in the SDwifi card.

Then send the M commands that Crimson Nape showed.  That should get you connected on the SDwifi end.  

It's not all that hard, but the documentation isn't that good.  If it wasn't for Crimson Nape, I'd probably have moved on.  Thanks for all the help Crimson Nape!


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - Crimson Nape - 03-21-2021

happydreams:
When using the SDIO connection, you slide the switch to CARDREADER.

The DavWWWRoot is just the initial mount point of the drive and not a directory. On a Windows system this is like pointing to "C:\" or" D:\", etc. On a Linux system this would be like "/dev/sda1". Like normal for me, I have no clue what a Mac is. Big Grin You don't need a directory named, "DavWWWRoot".

For your knowledge; WebDav is a communication protocol (a set of unique commands) that uses port 80 (a standard web page, "http://") to listen on for commands to execute and respond accordingly. FlashAir SD cards use a LUA protocol as its primary communication dialog with WebDAV being a secondary protocol in latter versions of the card.

Arie:
It sounds like you aren't connected via a USB connection. When it's connected it will act like a serial port.

Before connecting with the Arduino IDE, try connecting to the card using the USB port. Just make sure the switch is in the USB2UART position. You don't need a micro SD inserted to do this.


RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement - happydreams - 03-21-2021

FWIW, when I saved my SETUP.INI I failed to enter a carriage return after my password. This results in a failure to connect. I had to reconnect via M commands. Then I was able to edit SETUP.INI with a carriage return. (Linux - which if I inspect the file with a hex editor shows 0x0A = LF) After a reset, SD-WIFI read the INI file correctly and connected. Don't know if the file is tolerant of CR LF 0xD 0x0A.

You do not need to do this at all, technically, since the value was stored in NVRAM. However, SETUP.INI will override the NVRAM. So either don't use SETUP.INI (don't have the file at all) or make sure you get it correct. Took me a couple of tries!