logicog
e63d1bf577
Merge pull request #27 from vDorst/doc_2M-PCB23-V3_1-managed
...
Add docs: 2M-PCB23-V3.1-managed
2025-12-01 22:30:06 +01:00
René van Dorst
1c78d32493
Merge pull request #36 from logicog/config
...
System settings and configuration management
2025-12-01 19:22:03 +00:00
logicog
b910692caf
Use random session ID in httpd.c
2025-12-01 18:26:46 +01:00
logicog
9c21d94b65
Add read_reg_timer function
2025-12-01 18:26:46 +01:00
logicog
7f715e9218
Move inline itohex() into header file to allow external access
2025-12-01 18:26:46 +01:00
logicog
ad27566030
Use current password in httpd.c
2025-12-01 18:26:46 +01:00
logicog
0722b147fe
Add cache control to make sure new pages are served on session timeout
2025-12-01 18:26:46 +01:00
logicog
4e4e6a55ba
Redirect to login page when status request not authorized
2025-12-01 18:26:46 +01:00
logicog
dc6734236c
Add rnd and passwd commands
2025-12-01 18:26:46 +01:00
logicog
70c14fb23e
Add get_random_32()
2025-12-01 18:26:46 +01:00
logicog
73a81ec031
Add initial implementation for authentication
2025-12-01 18:26:46 +01:00
logicog
cac7fbe080
Add simulator support for session management
2025-12-01 09:22:46 +01:00
logicog
6e0e907afb
Add register definitions for random number generation
2025-11-29 12:44:23 +01:00
logicog
a8a770f27f
Add login page and style
2025-11-29 12:44:23 +01:00
logicog
69110531b7
Add support for reading configuration and command history
2025-11-29 12:44:23 +01:00
logicog
00a415c755
Add filtering logic for configuration commands
2025-11-29 12:44:23 +01:00
logicog
f485102d26
Add fetching of configuration file and current cmd history
2025-11-29 12:44:23 +01:00
logicog
4d915a0d80
Add support for command history
...
This adds a command history, both for the CLI as well as for
commands sent by the web-interface. They are written to a ring buffer
in order to work safely with a relatively small amount of RAM
The buffer is used to read the current in-RAM configuration
from the switch by the web-interface. It could also be used
to implement cmd history via cursor up/down in the CLI.
2025-11-29 12:44:23 +01:00
logicog
9d4ba57cd0
Add support for chunking of served files
...
This removes the limitation that a file served from FLASH memory
needs to be smaller than the TCP buffer size. Now we serve up to
the TCP buffer size in the first go and then remember what parts
still need to be sent. As soon as the previous package has been
acked, the next chunk of data is copied from flash into the
TCP transmit buffer and gets sent. We take care only to send
the current TCP window size so no further fragmentation needs to
happen, thus optimizing transmission of the remainder.
2025-11-29 12:44:23 +01:00
logicog
ba9bc2e845
Initial web-files for system settings and configuration management
2025-11-29 12:44:23 +01:00
logicog
76344e172c
Merge pull request #42 from vDorst/cmd_version
...
Added software version + git short hash string to firmware.
2025-11-27 20:05:47 +01:00
René van Dorst
f59be9cf2b
Added software version + git short hash string to firmware.
...
The Makefile has the version number and generates a version.h which
has VERSION_SW define that looks like "v<VERSION>-g<GIT_SHORT_HASH>".
Software version shows at boot in the serial console.
And shown with command: `version`.
It can also be requested via `information.json`.
```
{
"ip_address": "192.168.10.247",
"ip_gateway": "192.168.10.1",
"ip_netmask": "255.255.255.0",
"mac_address": "1c:2a:a3:23:00:02",
"sw_ver": "v0.1.0-gd48235f",
"hw_ver": "SWGT024-V2.0"
}
```
2025-11-26 23:08:23 +01:00
René van Dorst
d48235f652
Merge pull request #37 from logicog/sfp_demagic
...
De-Magic I2C configuration for SFP-EEPROM reads
v0_1_alpha
2025-11-03 21:07:15 +00:00
logicog
9c7572b289
De-Magic I2C configuration for SFP-EEPROM reads
2025-11-02 09:49:13 +01:00
logicog
0989b227c0
Merge pull request #34 from vDorst/feat_html_firmware_select
...
html: firmware selection: limit extension only to .bin
2025-10-31 11:48:37 +01:00
René van Dorst
aa406e1d98
html: firmware selection: limit extension only to .bin
...
This makes it quicker to select firmware image from the output directory.
You can still select at File type "All Files" if the extention is diffrent.
2025-10-30 21:30:37 +01:00
René van Dorst
1d6f0a2163
Merge pull request #33 from logicog/mirror
...
Mirror
2025-10-30 20:03:22 +00:00
logicog
f93cfd467f
Use better css elsewhere
2025-10-29 15:39:47 +01:00
logicog
51c5bd75eb
Add mirroring web-calls
2025-10-29 15:39:47 +01:00
logicog
2008d490a9
Add support for mirror status and mirror deletion via CLI
2025-10-29 15:39:47 +01:00
logicog
5622f1c843
Add Mirroring web-pages
2025-10-29 15:39:47 +01:00
logicog
aa99921ea2
Merge pull request #32 from vDorst/gen_json
...
Improve JSON response.
2025-10-29 15:39:23 +01:00
René van Dorst
7d94f3d328
Improve JSON response.
...
Remove all the extra spaces from the json.
Also simplify the generation of the json.
Codespace is cheap so duplicated strings is not an issue.
But generating strings from different parts is more expensive in clock cycles.
Add a helper funcion `bool_to_html()` to generate bool value for html output.
2025-10-28 21:10:26 +01:00
René van Dorst
d0b6a73bf2
Merge pull request #30 from logicog/crc16
...
CRC-16 Calculation and verification
2025-10-26 21:59:50 +00:00
logicog
eb0e4df5ea
Fix reset after image upload
2025-10-26 14:20:30 +01:00
logicog
9c062edc75
Fix CRC calculation during upload
2025-10-26 14:20:07 +01:00
René van Dorst
9929fcc169
Merge pull request #31 from logicog/eee_status
...
Eee status display
2025-10-22 09:12:02 +02:00
logicog
e5f5955f71
Add timeouts to XhttpGet requests
2025-10-22 08:05:44 +02:00
logicog
ba902a68d4
Defer cmd execution for console and via http POST
2025-10-21 18:05:33 +02:00
logicog
03fb3fe6b4
Reduce PHY reset time to 20ms
2025-10-21 17:47:38 +02:00
logicog
726b421824
Add EEE httpd support
2025-10-21 17:46:18 +02:00
logicog
df1cd62518
Add EEE style and navigation
2025-10-20 18:35:35 +02:00
logicog
aab4d334e5
Formatting fix
2025-10-20 18:35:35 +02:00
logicog
73b8335bef
Add EEE html page
2025-10-20 18:35:35 +02:00
logicog
0d64efacb3
Add EEE status query
2025-10-20 18:35:35 +02:00
logicog
f3ff8eed42
Make use of CRC checksum calculation when building image
2025-10-20 07:29:39 +02:00
logicog
4d17d9ff00
Add CRC verification
2025-10-20 07:29:39 +02:00
logicog
8499e9e464
Add CRC-16 calculator for a firmware image
2025-10-20 07:29:39 +02:00
logicog
ac4f0d410f
Add CRC16 initial code
2025-10-20 07:29:39 +02:00
René van Dorst
adc4bfc9a0
Merge pull request #29 from logicog/constseg
...
Fix bug in usage of CONST segment in banked code. Use #pragma constseg
2025-10-15 18:34:54 +00:00