linuswck
ae74455f94
driver: Separate setting pd_config into two fns
2024-04-10 16:56:20 +08:00
linuswck
6bccbceb81
main: Add a state to only save network settings
2024-04-10 16:56:20 +08:00
linuswck
eaebdb390d
cmd_handler: change mW to W in SetLdPwrLimit cmd
2024-04-10 16:56:20 +08:00
linuswck
489333c43d
ld: save pwr_limit into settings
2024-04-10 16:56:20 +08:00
linuswck
4288d465c9
thermostat: Report temp_setpoint in degree celsius
2024-04-10 16:56:20 +08:00
linuswck
09863353cd
driver: Add lock for tcp writer & reader stream
2024-04-10 16:56:20 +08:00
linuswck
6d107d55cf
driver: Add StoppedConnecting exception
2024-04-10 16:56:20 +08:00
linuswck
d435dc06d8
fix typos
2024-03-25 15:43:20 +08:00
linuswck
898358f4e6
pykirdy: Add reporting interval in report_mode
2024-03-25 15:43:20 +08:00
linuswck
a13c6fa86c
pykirdy: Update handling of json objects received
...
- Accept new line delimited json in read_response()
2024-03-25 15:43:20 +08:00
linuswck
b1a1173075
cmd_handler: Add newline at the end of json sent
2024-03-25 15:43:20 +08:00
linuswck
af68b0e90a
Update rust, stm32-eth, hal, smoltcp versions
2024-03-25 15:43:12 +08:00
linuswck
f8abfd4300
Update nixpkgs version
2024-03-22 12:48:53 +08:00
linuswck
7d41edef20
ld: Increase the delay before turning on LD_PWR
...
- Delay is tested and verified with oscilloscope
- Tested with 0.3A LD output current
2024-03-21 15:21:24 +08:00
linuswck
607da8a822
ld: Add a delay before turning on LD PWR
...
- DAC output might not drop to 0V before PWR is being turned on
- Thus, it might drive nondeterministic current into the laser diode during pwr up
2024-03-20 17:24:47 +08:00
linuswck
7f06fc06fd
async driver: fix incorrect timeout handling
2024-03-20 15:35:12 +08:00
linuswck
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
linuswck
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
linuswck
e525a3f354
fix typo
2024-03-20 12:06:05 +08:00
linuswck
8431e9f43d
Update README
2024-03-20 11:55:21 +08:00
linuswck
e9d5f4598a
Fix wrong USB Product Description
2024-03-20 11:45:09 +08:00
linuswck
1867935047
Send report to connected socket
...
- Remove active report in flash settings
2024-03-19 17:38:29 +08:00
linuswck
99cf17f7e4
temp_mon: Add support for constant current mode
2024-03-19 14:52:26 +08:00
linuswck
048245f674
set_tec_max_i_pos/neg->...cooling_i/heating_i
2024-03-19 14:52:26 +08:00
linuswck
0a01d299bc
Fix wrong reporting of Thermostat Pwr_on status
2024-03-19 14:52:26 +08:00
linuswck
dbbd438e92
ld: Fix unable to save & load ld_i flash settings
2024-03-19 14:48:25 +08:00
linuswck
3ad7c417f6
Fix a ld current ramp up bug
...
- During ld_i ramp up, if pwr up cmd is called, ld_i is set incorrectly
2024-03-18 16:41:55 +08:00
linuswck
c06491a8b2
Update PID Autotune Code
2024-03-18 15:55:05 +08:00
linuswck
0380c8d30b
Unify naming and unit in firmware and driver
...
- mA, uA -> A
- K -> Degree Celsius
- tec -> thermostat
2024-03-18 15:55:05 +08:00
linuswck
ed5cda6364
Correct wrong comment in driver
2024-03-18 15:54:25 +08:00
linuswck
61624b0bd6
Implement Kirdy AsyncIo Driver and example code
2024-03-15 17:14:22 +08:00
linuswck
1480305c16
max1968: Fix ADC+DMA does not start converting bug
2024-03-15 17:12:42 +08:00
linuswck
74c465d16f
fix typos
2024-03-12 11:47:58 +08:00
linuswck
574abc2c2f
Add instructions to erase flash settings with DFU
2024-03-12 11:26:45 +08:00
linuswck
a9dbff8250
Send Response Back to The Client after Recv Cmd
2024-03-08 16:38:52 +08:00
linuswck
8cd3f70721
Add Instructions for Erasing Flash Settings
2024-03-07 16:20:51 +08:00
linuswck
b7231f48ff
Fix Recv Dfu cmd doesn't hard reset bug
2024-03-07 10:26:32 +08:00
linuswck
7f6a385e1d
Support controls from multiple TCP Socket Clients
2024-03-06 16:30:31 +08:00
linuswck
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
linuswck
a579e5c5d5
Add default gateway into IpSettings
2024-03-06 10:34:57 +08:00
linuswck
65b757ac3c
Add cmd to Store IP Settings in Flash
...
- Cmds Setup Flow: Set IP -> Save Settings to Flash -> Issue HardRst
2024-03-05 16:44:28 +08:00
linuswck
911d9a7bc9
Load & Config IP Settings from Flash at StartUp
2024-03-05 16:44:03 +08:00
linuswck
111d9a4226
cleanup
2024-03-05 16:33:49 +08:00
linuswck
a3885c365e
Implement Save & Load Flash Settings in FSM & cmd
2024-03-05 16:33:45 +08:00
linuswck
a58b0954ec
Add Set Default PWR On cmd for ld & tec
2024-03-05 10:35:05 +08:00
linuswck
92c6cf12d4
Add fns to apply ld, tec settings summary configs
2024-03-05 10:35:05 +08:00
linuswck
ef2410f441
Add fns, struct items for getting ld, tec settings
2024-03-05 10:35:05 +08:00
linuswck
adfa4f5fa3
Move TempAdcFilter struct def to Thermostat
2024-03-05 10:35:05 +08:00
linuswck
df939eb9a3
Use FSM to manage device state in main loop
2024-03-05 10:35:01 +08:00
linuswck
3aca712e1d
Fix typos
2024-03-04 10:32:33 +08:00