jomjol 5 年之前
父節點
當前提交
816f4e90aa

二進制
firmware/bootloader.bin


二進制
firmware/firmware.bin


二進制
firmware/partitions.bin


二進制
sd-card/config/analog.tfl


+ 42 - 0
sd-card/config/config.ini

@@ -0,0 +1,42 @@
+[MakeImage]
+LogImageLocation = /log/source
+WaitBeforeTakingPicture=5
+ImageQuality = 5
+ImageSize = VGA
+
+[Alignment]
+InitalRotate=180
+/config/ref0.jpg 98, 257
+/config/ref1.jpg 449, 116
+SearchFieldX = 20
+SearchFieldY = 20
+
+[Digits]
+Model=/config/digits.tfl
+ModelInputSize 20, 32
+LogImageLocation = /log/digit
+digit1, 291, 97, 37, 67
+digit2, 344, 97, 37, 67
+digit3, 394, 97, 37, 67
+
+[Analog]
+Model=/config/analog.tfl
+ModelInputSize 32, 32
+LogImageLocation = /log/analog
+analog1, 433, 207, 99, 99
+analog2, 378, 313, 99, 99
+analog3, 280, 356, 99, 99
+analog4, 149, 313, 99, 99
+
+[PostProcessing]
+PreValueUse = True
+PreValueAgeStartup = 30
+AllowNegativeRates = False
+MaxRateValue = 0.1
+ErrorMessage = True
+
+[AutoTimer]
+AutoStart= true
+Intervall = 4.85
+
+[Ende]

二進制
sd-card/config/digits.tfl


二進制
sd-card/config/org_ref0.jpg


二進制
sd-card/config/org_ref1.jpg


+ 2 - 0
sd-card/config/prevalue.ini

@@ -0,0 +1,2 @@
+2020-07-26_17-36-20
+11.254200

二進制
sd-card/config/ref0.jpg


二進制
sd-card/config/ref1.jpg


二進制
sd-card/config/reference.jpg


+ 0 - 0
sd-card/firmware/leer.txt


二進制
sd-card/html/favicon.ico


+ 82 - 0
sd-card/html/file_server_upload_script.html

@@ -0,0 +1,82 @@
+<table class="fixed" border="0">
+    <col width="1000px" /><col width="500px" />
+    <tr><td>
+        <h2>ESP32 File Server</h2>
+    </td><td>
+        <table border="0">
+            <tr>
+                <td>
+                    <label for="newfile">Upload a file</label>
+                </td>
+                <td colspan="2">
+                    <input id="newfile" type="file" onchange="setpath()" style="width:100%;">
+                </td>
+            </tr>
+            <tr>
+                <td>
+                    <label for="filepath">Set path on server</label>
+                </td>
+                <td>
+                    <input id="filepath" type="text" style="width:100%;">
+                </td>
+                <td>
+                    <button id="upload" type="button" onclick="upload()">Upload</button>
+                </td>
+            </tr>
+        </table>
+    </td></tr>
+</table>
+<script>
+function setpath() {
+    var fileserverpraefix = "/fileserver";
+    var anz_zeichen_fileserver = fileserverpraefix.length;
+    var default_path = window.location.pathname.substring(anz_zeichen_fileserver) + document.getElementById("newfile").files[0].name;
+    document.getElementById("filepath").value = default_path;
+}
+function upload() {
+    var filePath = document.getElementById("filepath").value;
+    var upload_path = "/upload/" + filePath;
+    var fileInput = document.getElementById("newfile").files;
+
+    /* Max size of an individual file. Make sure this
+     * value is same as that set in file_server.c */
+    var MAX_FILE_SIZE = 200*1024;
+    var MAX_FILE_SIZE_STR = "200KB";
+
+    if (fileInput.length == 0) {
+        alert("No file selected!");
+    } else if (filePath.length == 0) {
+        alert("File path on server is not set!");
+    } else if (filePath.indexOf(' ') >= 0) {
+        alert("File path on server cannot have spaces!");
+    } else if (filePath[filePath.length-1] == '/') {
+        alert("File name not specified after path!");
+    } else if (fileInput[0].size > 200*1024) {
+        alert("File size must be less than 200KB!");
+    } else {
+        document.getElementById("newfile").disabled = true;
+        document.getElementById("filepath").disabled = true;
+        document.getElementById("upload").disabled = true;
+
+        var file = fileInput[0];
+        var xhttp = new XMLHttpRequest();
+        xhttp.onreadystatechange = function() {
+            if (xhttp.readyState == 4) {
+                if (xhttp.status == 200) {
+                    document.open();
+                    document.write(xhttp.responseText);
+                    document.close();
+                } else if (xhttp.status == 0) {
+                    alert("Server closed the connection abruptly!");
+                    location.reload()
+                } else {
+                    alert(xhttp.status + " Error!\n" + xhttp.responseText);
+                    location.reload()
+                }
+            }
+        };
+        xhttp.open("POST", upload_path, true);
+        xhttp.send(file);
+    }
+}
+</script>

+ 0 - 0
sd-card/img_tmp/leer.txt


+ 0 - 0
sd-card/log/analog/leer.txt


+ 0 - 0
sd-card/log/digit/0/leer.txt


+ 0 - 0
sd-card/log/digit/1/leer.txt


+ 0 - 0
sd-card/log/digit/10/leer.txt


+ 0 - 0
sd-card/log/digit/2/leer.txt


+ 0 - 0
sd-card/log/digit/3/leer.txt


+ 0 - 0
sd-card/log/digit/4/leer.txt


+ 0 - 0
sd-card/log/digit/5/leer.txt


+ 0 - 0
sd-card/log/digit/6/leer.txt


+ 0 - 0
sd-card/log/digit/7/leer.txt


+ 0 - 0
sd-card/log/digit/8/leer.txt


+ 0 - 0
sd-card/log/digit/9/leer.txt


+ 0 - 0
sd-card/log/source/leer.txt


+ 2 - 0
sd-card/wlan.ini

@@ -0,0 +1,2 @@
+ssid = SSID
+password = PASSWORD