linuswck
ec5bf1d6b6
gui, ld: term_status -> term_50ohm
...
- term_status (Is50Ohm / Not50Ohm) -> term_50ohm (On/Off)
2024-07-19 18:10:38 +08:00
linuswck
4cd328d98c
ld: apply pwr limit setting to analog watchdog
...
- This fixes a bug which power limit is not applied to pd_mon at startup
2024-07-19 18:10:38 +08:00
linuswck
af95de0f16
thermostat: cal gain error at TEC DAC output
2024-07-19 18:10:12 +08:00
linuswck
80d94270a2
fix typo
2024-06-18 15:43:36 +08:00
linuswck
dc97f42bd0
boot: Do not pwr up LD & TEC at boot stage
...
- This fix LD current spike at boot up
2024-06-17 13:16:52 +08:00
linuswck
83a764889c
ld_pwr_exc_protector: set smpr to be slowest
...
- reduce noise on the analog watchdog
2024-06-17 13:16:52 +08:00
linuswck
c09da0db98
ld_pwr_exc_protector: Apply 32-pt avg to pd_v
...
- Reduce noise amplitude from STM32f4 ADC
2024-06-17 13:16:52 +08:00
linuswck
d5a620c76b
pd_mon: make transconductance user-configurable
...
- hw change: different boards now have different gain settings in order
to set a pd current range close to the ld being used
- transconductance and fin_gain params are added to flash with "Device"
as key
2024-06-17 13:16:48 +08:00
linuswck
d1660c6090
ld_pwr_exc_protector: cal volt offset for pd mon
...
- hw change: A voltage offset is added onto the pd mon pin
2024-06-13 15:43:44 +08:00
linuswck
0dceb8c3c6
correct typo
2024-05-10 12:27:34 +08:00
linuswck
266110ba14
pid: rm setpoint change kick
...
- See Thermostat Firmware PR#107
2024-05-10 11:34:58 +08:00
linuswck
e8aaf5f66b
net: Implement iface polling timer
...
- iface needs to be polled with ref to iface.poll_at time to ensure quality of service
- iface.poll() also services TCP related Timers
2024-05-02 13:13:47 +08:00
linuswck
70fed23c51
main: Add checks before sock send/recv are called
2024-05-02 13:05:10 +08:00
linuswck
b8241d1f27
cargo fmt
...
- rustfmt.toml is ported from artiq-zynq repo
2024-04-23 17:09:26 +08:00
linuswck
7be35fe7f0
thermostat: Reduce DAC calibration time
...
- 13 out of 18 bit of DAC is used to calibrate the output with 12bit ADC
- Calibration with more than 13 bit does not improve the accuracy
2024-04-23 15:45:37 +08:00
linuswck
c5efc6ca57
MAX1968: Improve STM32 ADC calibration consistency
2024-04-23 15:35:23 +08:00
linuswck
554f292cab
net: Disable nagle algo & Set keep_alive duration
2024-04-22 17:06:07 +08:00
linuswck
f303ab639a
net: Reset tcp socks when new eth link is detected
2024-04-22 17:06:02 +08:00
linuswck
4116962175
firmware: rst active_rpt if eth link is not active
2024-04-18 17:33:09 +08:00
linuswck
0e087c6992
ld: ld_soft_i_limit now limits ld_i_out being set
2024-04-18 17:04:52 +08:00
linuswck
ceb003e07e
cmd_handler: Add msg_type params to report & settings
2024-04-10 16:57:43 +08:00
linuswck
10873f4791
firmware: Load default pwr_on settings from flash
2024-04-10 16:57:43 +08:00
linuswck
e160316bfc
ld: add ld_terms_short in settings report
2024-04-10 16:57:43 +08:00
linuswck
0a992c1dc8
ld: pd_responsitivity -> pd_mon_params
2024-04-10 16:57:43 +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
d435dc06d8
fix typos
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
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
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
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
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
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
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
a9dbff8250
Send Response Back to The Client after Recv Cmd
2024-03-08 16:38:52 +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