added embedded firmwares to python projects folder
parent
0ace6ebb5b
commit
5e347ba806
@ -0,0 +1,14 @@
|
|||||||
|
const http = require("http");
|
||||||
|
|
||||||
|
const hostname = "127.0.0.1";
|
||||||
|
const port = 3000;
|
||||||
|
|
||||||
|
const server = http.createServer((req, res) => {
|
||||||
|
res.statusCode = 200;
|
||||||
|
res.setHeader("Content-Type", "text/plain");
|
||||||
|
res.end("Hello Worldyy bro");
|
||||||
|
});
|
||||||
|
|
||||||
|
server.listen(port, hostname, () => {
|
||||||
|
console.log(`Server running at http://${hostname}:${port}/`);
|
||||||
|
});
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "anka_anvil",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "app.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
"start": "./node_modules/.bin/nodemon npm index.js"
|
||||||
|
},
|
||||||
|
"author": "Selcuk Sari",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"nodemon": "^2.0.18"
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,61 @@
|
|||||||
|
|
||||||
|
// Turn Echo off
|
||||||
|
ATE0
|
||||||
|
|
||||||
|
// Get Wifi Info with ssid...
|
||||||
|
AT+CWJAP?
|
||||||
|
+CWJAP:"Oppo","6a:e3:01:e5:f0:f1",11,-54,0,1,3,0,1
|
||||||
|
|
||||||
|
// Set Wifi to Station Mode
|
||||||
|
AT+CWMODE=1
|
||||||
|
|
||||||
|
// Get Connection Status
|
||||||
|
AT+CWSTATE?
|
||||||
|
/*
|
||||||
|
<state>: current Wi-Fi state.
|
||||||
|
|
||||||
|
0: ESP32 station has not started any Wi-Fi connection.
|
||||||
|
|
||||||
|
1: ESP32 station has connected to an AP, but does not get an IPv4 address yet.
|
||||||
|
|
||||||
|
2: ESP32 station has connected to an AP, and got an IPv4 address.
|
||||||
|
|
||||||
|
3: ESP32 station is in Wi-Fi connecting or reconnecting state.
|
||||||
|
|
||||||
|
4: ESP32 station is in Wi-Fi disconnected state.
|
||||||
|
|
||||||
|
<”ssid”>: the SSID of the target AP.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Connect to a AP
|
||||||
|
AT+CWJAP="Oppo","qwerty124"
|
||||||
|
WIFI CONNECTED
|
||||||
|
WIFI GOT IP
|
||||||
|
|
||||||
|
// Get IP information
|
||||||
|
AT+CIPSTA?
|
||||||
|
+CIPSTA:ip:"192.168.54.135"
|
||||||
|
+CIPSTA:gateway:"192.168.54.6"
|
||||||
|
+CIPSTA:netmask:"255.255.255.0"
|
||||||
|
|
||||||
|
// Disable DHCP and set network parameters
|
||||||
|
AT+CIPSTA="192.168.54.138","192.168.54.6","255.255.255.0"
|
||||||
|
|
||||||
|
// Enable DHCP and get a new ip
|
||||||
|
AT+CWDHCP=1,1
|
||||||
|
|
||||||
|
|
||||||
|
// get Mac address
|
||||||
|
AT+CIPSTAMAC?
|
||||||
|
+CIPSTAMAC:"24:0a:c4:c5:ac:24"
|
||||||
|
|
||||||
|
|
||||||
|
https://circuitdigest.com/microcontroller-projects/interfacing-esp8266-with-stm32f103c8-stm32-to-create-a-webserver
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
AT+HTTPCLIENT=2,1,"http://192.168.1.200:26323/sensekittest","http://192.168.1.200:26323","/sensekit",1
|
||||||
|
|
||||||
|
|
||||||
|
esptool.py --chip auto --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 16MB 0x8000 partition_table/partition-table.bin 0x10000 ota_data_initial.bin 0xf000 phy_multiple_init_data.bin 0x1000 bootloader/bootloader.bin 0x100000 esp-at.bin 0x20000 at_customize.bin 0x24000 customized_partitions/server_cert.bin 0x39000 customized_partitions/mqtt_key.bin 0x26000 customized_partitions/server_key.bin 0x28000 customized_partitions/server_ca.bin 0x2e000 customized_partitions/client_ca.bin 0x30000 customized_partitions/factory_param.bin 0x21000 customized_partitions/ble_data.bin 0x3B000 customized_partitions/mqtt_ca.bin 0x37000 customized_partitions/mqtt_cert.bin 0x2a000 customized_partitions/client_cert.bin 0x2c000 customized_partitions/client_key.bin
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
--flash_mode dio --flash_freq 40m --flash_size 4MB 0x8000 partition_table/partition-table.bin 0x10000 ota_data_initial.bin 0xf000 phy_multiple_init_data.bin 0x1000 bootloader/bootloader.bin 0x100000 esp-at.bin 0x20000 at_customize.bin 0x24000 customized_partitions/server_cert.bin 0x39000 customized_partitions/mqtt_key.bin 0x26000 customized_partitions/server_key.bin 0x28000 customized_partitions/server_ca.bin 0x2e000 customized_partitions/client_ca.bin 0x30000 customized_partitions/factory_param.bin 0x21000 customized_partitions/ble_data.bin 0x3B000 customized_partitions/mqtt_ca.bin 0x37000 customized_partitions/mqtt_cert.bin 0x2a000 customized_partitions/client_cert.bin 0x2c000 customized_partitions/client_key.bin
|
||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"write_flash_args" : [ "--flash_mode", "dio",
|
||||||
|
"--flash_size", "detect",
|
||||||
|
"--flash_freq", "40m" ],
|
||||||
|
"flash_settings" : {
|
||||||
|
"flash_mode": "dio",
|
||||||
|
"flash_size": "detect",
|
||||||
|
"flash_freq": "40m"
|
||||||
|
},
|
||||||
|
"flash_files" : {
|
||||||
|
"0x8000" : "partition_table/partition-table.bin",
|
||||||
|
"0x10000" : "ota_data_initial.bin",
|
||||||
|
"0xf000" : "phy_multiple_init_data.bin",
|
||||||
|
"0x1000" : "bootloader/bootloader.bin",
|
||||||
|
"0x100000" : "esp-at.bin",
|
||||||
|
"0x20000" : "at_customize.bin",
|
||||||
|
"0x24000" : "customized_partitions/server_cert.bin",
|
||||||
|
"0x39000" : "customized_partitions/mqtt_key.bin",
|
||||||
|
"0x26000" : "customized_partitions/server_key.bin",
|
||||||
|
"0x28000" : "customized_partitions/server_ca.bin",
|
||||||
|
"0x2e000" : "customized_partitions/client_ca.bin",
|
||||||
|
"0x30000" : "customized_partitions/factory_param.bin",
|
||||||
|
"0x21000" : "customized_partitions/ble_data.bin",
|
||||||
|
"0x3B000" : "customized_partitions/mqtt_ca.bin",
|
||||||
|
"0x37000" : "customized_partitions/mqtt_cert.bin",
|
||||||
|
"0x2a000" : "customized_partitions/client_cert.bin",
|
||||||
|
"0x2c000" : "customized_partitions/client_key.bin"
|
||||||
|
},
|
||||||
|
"partition_table" : { "offset" : "0x8000", "file" : "partition_table/partition-table.bin", "encrypted" : "false" },
|
||||||
|
"otadata" : { "offset" : "0x10000", "file" : "ota_data_initial.bin", "encrypted" : "false" },
|
||||||
|
"phy" : { "offset" : "0xf000", "file" : "phy_multiple_init_data.bin", "encrypted" : "false" },
|
||||||
|
"bootloader" : { "offset" : "0x1000", "file" : "bootloader/bootloader.bin", "encrypted" : "false" },
|
||||||
|
"app" : { "offset" : "0x100000", "file" : "esp-at.bin", "encrypted" : "false" },
|
||||||
|
"at_customize" : { "offset" : "0x20000", "file" : "at_customize.bin", "encrypted" : "false" },
|
||||||
|
"server_cert" : { "offset" : "0x24000", "file" : "customized_partitions/server_cert.bin", "encrypted" : "false" },
|
||||||
|
"mqtt_key" : { "offset" : "0x39000", "file" : "customized_partitions/mqtt_key.bin", "encrypted" : "false" },
|
||||||
|
"server_key" : { "offset" : "0x26000", "file" : "customized_partitions/server_key.bin", "encrypted" : "false" },
|
||||||
|
"server_ca" : { "offset" : "0x28000", "file" : "customized_partitions/server_ca.bin", "encrypted" : "false" },
|
||||||
|
"client_ca" : { "offset" : "0x2e000", "file" : "customized_partitions/client_ca.bin", "encrypted" : "false" },
|
||||||
|
"factory_param" : { "offset" : "0x30000", "file" : "customized_partitions/factory_param.bin", "encrypted" : "false" },
|
||||||
|
"ble_data" : { "offset" : "0x21000", "file" : "customized_partitions/ble_data.bin", "encrypted" : "false" },
|
||||||
|
"mqtt_ca" : { "offset" : "0x3B000", "file" : "customized_partitions/mqtt_ca.bin", "encrypted" : "false" },
|
||||||
|
"mqtt_cert" : { "offset" : "0x37000", "file" : "customized_partitions/mqtt_cert.bin", "encrypted" : "false" },
|
||||||
|
"client_cert" : { "offset" : "0x2a000", "file" : "customized_partitions/client_cert.bin", "encrypted" : "false" },
|
||||||
|
"client_key" : { "offset" : "0x2c000", "file" : "customized_partitions/client_key.bin", "encrypted" : "false" },
|
||||||
|
"extra_esptool_args" : {
|
||||||
|
"after" : "hard_reset",
|
||||||
|
"before" : "default_reset",
|
||||||
|
"stub" : true,
|
||||||
|
"chip" : "esp32"
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue