Can't get index.htm from microSD-card.
Moskog
Posts: 554
After keeping the Spinneret in a shelf for more then a year I finally took it out and loaded it with Mike G's HTTPServer.spin and index.htm + led.htm on the microSD card. No error messages on the serial terminal, the mount SD card message is also OK.
But the problem is I cant seem to access the index.htm on the micro SD card. I tried several times also with several Formats in between. No index.htm but led.htm is easy to get. No problem turning LED on or off on the Spinneret. Also when accessing the Spinneret through a remote server.
So I wonder, could it be the SD card that doesn't fit? I have no information about the card, only know its 1,8Gb or something, formatted with FAT filesystem of some kind. The files are both in the root directory. No problem when puttiong the card into the computer, both files are shown and accessable. The SD card was taken from a cell-phone and formatted before use in the Spinneret.
Are there special things I should know when getting a microSD card for the Spinneret? Special limitations when used with this server?
Or is the problem related to something in the .spin-code I probably could have misunderstood or not seen?
But the problem is I cant seem to access the index.htm on the micro SD card. I tried several times also with several Formats in between. No index.htm but led.htm is easy to get. No problem turning LED on or off on the Spinneret. Also when accessing the Spinneret through a remote server.
So I wonder, could it be the SD card that doesn't fit? I have no information about the card, only know its 1,8Gb or something, formatted with FAT filesystem of some kind. The files are both in the root directory. No problem when puttiong the card into the computer, both files are shown and accessable. The SD card was taken from a cell-phone and formatted before use in the Spinneret.
Are there special things I should know when getting a microSD card for the Spinneret? Special limitations when used with this server?
Or is the problem related to something in the .spin-code I probably could have misunderstood or not seen?
Comments
led.htm can be seen from outside my network at http://la3usa.com:5000/led.htm too but index is not.
Now I also have another index.htm on the PINK server at port 80, but I dont think thats a problem, I tried to turn off the PINK and removed it from the ADSL-modem list, put Spinneret at port 80, changed port in .spin code but still could not see the index.htm, only the led-file.
Get a clean copy of index.htm and led.htm. Format the SD card. Then copy the files back to the SD card.
I've had weird issues with the SD driver. Sometimes overwriting an existing file directly on the SD card causes unexpected behavior.
-Phil
And Mike G,
I have attached the html-files and the HTTPServer.spin with my own settings. I can't seem to figure out if there are anything I have forgotten. The only things I have modified is the spinnerets mac-address, my own subnet mask and the spinnerets local IP-address, and the ADSL-port. The LED on and off works pretty good both from my domestic network and through the remote dyndns-server.
Hmm. it seems there are problems uploading the .htm-files, I get the message invalid files whatever I try.. The files was made in Notepad and saved as .htm. I post this and then I will try to make the files by using Frontpage and then try them with Spinneret. I'll be back!
And I wasn't able to upload any of them to Parallax' server using Basic Uploader.
Tried to make a copy of index and saved it as cat.htm, could not find the cat either, hmm
corrected code
I can't tell for sure if I have downloaded an earlier infected code or if I copy and pasted the PUB from your tutorials and simply made the bug by accident. Been a while since I started look at the Spinneret. But more important: The problem is gone and now everything seems to be OK.
Thank you so much for beeing so helpful here and know I really do appreciate all the hard work you have done with the Spinneret and for sharing all this with us!