03-21-2021, 12:13 PM
(This post was last modified: 03-21-2021, 12:14 PM by happydreams.
Edit Reason: add another question
)
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
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
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!
03-21-2021, 01:23 PM
(This post was last modified: 03-21-2021, 01:29 PM by happydreams.
Edit Reason: added partition type...
)
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
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
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
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
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...
Arie KLERK: Member of the Dutch Apnea Association staff ( https://apneuvereniging.nl) and proud to be the OSCAR Translations Team Coordinator.
***Please help us: We’re always looking for more translators and language editors***
Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients, but just dedication to AB.
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
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.
03-21-2021, 03:52 PM
(This post was last modified: 03-21-2021, 03:55 PM by happydreams.
Edit Reason: added doesn't need to be in a card slot
)
RE: [split] FYSETC SD Wifi - Possible FlashAir Replacement
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
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. 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
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!
|