6bccbceb81
main: Add a state to only save network settings
2024-04-10 16:56:20 +08:00
af68b0e90a
Update rust, stm32-eth, hal, smoltcp versions
2024-03-25 15:43:12 +08:00
67f9e65df8
Start tec_readings_conversion after report is sent
...
- Before this fix, tec_readings only converts when eth_is_pending
2024-03-20 15:35:12 +08:00
7d2e14ef2f
eth: Poll Iface In ETH IRQ
...
- Improve responsiveness of TCP packets handling
- Fix a bug when one client is connected and active report is ON, the other client's cmds do not receive Ack from Kirdy
2024-03-20 15:32:28 +08:00
1867935047
Send report to connected socket
...
- Remove active report in flash settings
2024-03-19 17:38:29 +08:00
a9dbff8250
Send Response Back to The Client after Recv Cmd
2024-03-08 16:38:52 +08:00
7f6a385e1d
Support controls from multiple TCP Socket Clients
2024-03-06 16:30:31 +08:00
eff8adc184
Update Eth Link Speed with the detected Speed
...
- adds support to Half/FullDuplexBase10T, HalfDuplexBase100Tx Eth Speed
- fix a bug which Kirdy requires link to up to enter main loop
2024-03-06 12:15:08 +08:00
911d9a7bc9
Load & Config IP Settings from Flash at StartUp
2024-03-05 16:44:03 +08:00
a3885c365e
Implement Save & Load Flash Settings in FSM & cmd
2024-03-05 16:33:45 +08:00
df939eb9a3
Use FSM to manage device state in main loop
2024-03-05 10:35:01 +08:00
4526536a48
Ignore packets of 0 bytes size
2024-03-01 11:31:06 +08:00
f488786e1c
Use DMA to read Tec_I & Tec_V
...
- Remove the single conversion polling time with DMA
2024-03-01 11:31:01 +08:00
d1cc677668
thermostat: split poll_adc & update_pid into 2 fns
2024-02-28 12:21:37 +08:00
c09ccc29cd
cmd: Add cmd to get all device settings
2024-02-23 12:45:29 +08:00
a8787430b1
Add Temperature Monitor to Thermostat
...
- Issue an alarm when temperature goes out of user-defined operating range during Pid Controller startup
or reading is outside of +-0.5 Degree from temperature set point after Pid Controller becomes stable
- If alarm is observed, power down laser and tec controller and disengage Pid Controller
- Add the corresponding cmd for configuring the temperature monitor
2024-02-21 17:32:11 +08:00
88cca12a60
ld: Use Timer IRQ to ramp up/down output current
...
- Fixes possible watchdog timeout
- Improves ethernet response time & thermostat Pid update interval consistency
2024-02-20 16:18:06 +08:00
5f83b73011
cmd: Add active report mode cmd
2024-02-19 15:08:00 +08:00
0642640da7
dfu: Add eth cmd, fns to put stm32 into dfu mode
2024-02-16 17:23:47 +08:00
e29898f8f8
fix typos
2024-02-15 12:14:14 +08:00
f22ab430b8
pid: Use IDSP impl of Pid, Add Eth Pid Ctrl Cmds
2024-02-07 11:56:38 +08:00
de262b849d
eth: Add Thermostat related json cmd
2024-02-05 15:14:23 +08:00
6096711d2c
eth: Poll and Handle Json based Ld ctrl cmd
...
- Upgrade to miniconf 9.0
- Only non report related laser diode ctrl command is implemented
2024-02-02 17:35:58 +08:00
ee0ed8ebe7
eth: add drivers for init, polling & sending data
2024-02-01 16:20:36 +08:00
4e0d14def2
laser: Add driver and fn to get termination status
2024-01-30 13:01:33 +08:00
85b50bf824
Analog_Wdg: Finish Power Excursion Protection fns
...
- Verified to be working
2024-01-26 16:56:39 +08:00
af283b17ac
laser_diode: use analog wdg fns
2024-01-24 12:18:42 +08:00
2f7ca2a706
Thermostat: Add fns to report status & settings
...
- Report all system status, PID Settings, NTC parameter, TEC Settings
2024-01-24 12:16:06 +08:00
42cd55645c
main: Add demo fns to use on-board flash
2024-01-15 17:21:48 +08:00
d190b8b192
flash: Add init boot seq
...
- Max flash erase time for PSize = 8 and 128KiB Sector is 4s
- Watchdog period is changed accordingly
2024-01-15 17:21:06 +08:00
33ff0c3678
main: Add demo fns reading all hardware status
2024-01-11 17:17:38 +08:00
277796d2a4
boot: Add ld_drive boot sequence
2024-01-10 10:38:05 +08:00
4cf7b7fdf9
Rewrite MAX1968 Driver Generically
...
- Set variable to proper types(Rate, ElectricalPotential, etc)
- Declare const MAX_I_POS, MAX_I_NEG, MAX_V conversion
2023-12-21 13:13:06 +08:00
475fe28604
Initial Commit for AD5680 and MAX1968 Drivers
...
- GPIO Initializations for AD5680, MAX1968 drivers
- CTLI voltage of MAX1968 can be set with AD5680
- All features of MAX1968 can be controlled
2023-12-20 12:08:48 +08:00
f2b419f8d0
Fix nix build to compilation error at Check Phase
...
- "panic_handler" should not be declared during test
- "main" and "std" are needed during test
2023-12-15 13:21:19 +08:00
topquark12
1b3b121a2d
cleanup
2022-10-23 16:59:15 +08:00
topquark12
e562b822dc
use RTT for PanicInfo
2022-10-22 21:00:17 +08:00
topquark12
6867a293e5
squash (most) warnings, cleanup
2022-10-22 15:49:01 +08:00
topquark12
361c2ff316
add gpio setup
2022-10-21 12:05:55 +08:00
topquark12
18a603ab5f
refactor, shorten main
2022-10-20 21:21:01 +08:00
topquark12
fc90593f84
blinky, working systick and delay
2022-10-20 20:57:24 +08:00
topquark12
710b3ff5d5
project init
2022-10-20 15:17:43 +08:00