added embedded firmwares to python projects folder

This commit is contained in:
selcuk committed 2022-06-27 19:26:34 +03:00
1 parent 0ace6ebb5b
commit 5e347ba806
47 files changed
+131104

No files matched your search

+14
View File
@@ -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}/`);
});
+2022
View File
File diff suppressed because it is too large. Load diff
+15
View File
@@ -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.
@@ -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
@@ -0,0 +1 @@
S'•{"Service": [{"index": 0, "uuid": "2800", "uuid_len": 16, "val_max_len": 2, "value": "A002", "perm": 1, "val_cur_len": 2}, {"index": 1, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "02", "perm": 1, "val_cur_len": 1}, {"index": 2, "uuid": "C300", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 1, "val_cur_len": 1}, {"index": 3, "uuid": "2901", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 17, "val_cur_len": 1}, {"index": 4, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "02", "perm": 1, "val_cur_len": 1}, {"index": 5, "uuid": "C301", "uuid_len": 16, "val_max_len": 512, "value": "3031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031", "perm": 1, "val_cur_len": 512}, {"index": 6, "uuid": "2901", "uuid_len": 16, "val_max_len": 512, "value": "3031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031", "perm": 17, "val_cur_len": 512}, {"index": 7, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "08", "perm": 1, "val_cur_len": 1}, {"index": 8, "uuid": "C302", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 16, "val_cur_len": 1}, {"index": 9, "uuid": "2901", "uuid_len": 16, "val_max_len": 1, "value": "01", "perm": 1, "val_cur_len": 1}, {"index": 10, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "04", "perm": 1, "val_cur_len": 1}, {"index": 11, "uuid": "C303", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 16, "val_cur_len": 1}, {"index": 12, "uuid": "2901", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 16, "val_cur_len": 1}, {"index": 13, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "08", "perm": 1, "val_cur_len": 1}, {"index": 14, "uuid": "C304", "uuid_len": 16, "val_max_len": 512, "value": "3031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031", "perm": 16, "val_cur_len": 512}, {"index": 15, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "10", "perm": 1, "val_cur_len": 1}, {"index": 16, "uuid": "C305", "uuid_len": 16, "val_max_len": 512, "value": "", "perm": 1, "val_cur_len": 0}, {"index": 17, "uuid": "2902", "uuid_len": 16, "val_mLine truncated
@@ -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
@@ -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"
}
}
@@ -0,0 +1 @@
�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Line truncated