Commit Graph

218 Commits

Author SHA1 Message Date
Martin Preuss
3094048e4b mqtt client: removed unused code. 2023-04-25 00:37:40 +02:00
Martin Preuss
2bc1752597 mqtt: fixed connect issues.
no works with connectable endpoint code.
2023-04-25 00:36:40 +02:00
Martin Preuss
7c946e50e8 removed TODO. 2023-04-24 20:36:38 +02:00
Martin Preuss
6469a257f1 added entry. 2023-04-24 20:36:29 +02:00
Martin Preuss
8847d051c1 aqhome-tool: more work on getdevices. 2023-04-24 20:36:13 +02:00
Martin Preuss
5f7e192e27 implemented ipc messages getdevices req/rsp 2023-04-22 19:13:59 +02:00
Martin Preuss
1893d50908 avr: minor changes to watchdogOn (not used, yet). 2023-04-22 16:38:03 +02:00
Martin Preuss
4bf20fb032 avr: added a note about the wait macro. 2023-04-22 16:37:37 +02:00
Martin Preuss
ad925c38ab aqhome-tool: increased verbosity 2023-04-22 16:37:15 +02:00
Martin Preuss
ebd5829435 avr: renamned some filesfrom flash module. handle FLASH_END. 2023-04-22 14:47:16 +02:00
Martin Preuss
1c09127235 aqhome: fixed a bug. 2023-04-22 14:46:40 +02:00
Martin Preuss
0f6ecdd95d aqhome-tool: cleanup of flash command. 2023-04-22 14:46:25 +02:00
Martin Preuss
c73f671deb aqhome-tool: flush out message queue after sending FLASH_END 2023-04-22 12:47:11 +02:00
Martin Preuss
317524bd0f aqhome-tool: write response messages for ping command 2023-04-22 12:46:33 +02:00
Martin Preuss
ea29e478e5 aqhome-tool: decreased verbosity. 2023-04-22 12:46:04 +02:00
Martin Preuss
0add18eeb7 aqhome: added Utils_FlushOutMessageQueue 2023-04-22 12:45:42 +02:00
Martin Preuss
270066dd9f avr: cleanup lowlevel com2 routines. 2023-04-22 12:45:06 +02:00
Martin Preuss
462515b566 avr: reduce register use in com2WaitForDataState1ms 2023-04-22 12:12:19 +02:00
Martin Preuss
3b44fb9c5b avr: split code in multiple files and routines. 2023-04-22 11:54:09 +02:00
Martin Preuss
3e6501c834 finished basic new structure. 2023-04-22 00:23:44 +02:00
Martin Preuss
5e12b8ad4e started reorganizing code into subfolders. 2023-04-22 00:04:10 +02:00
Martin Preuss
97016b21b9 Rebooting and flashing a node now works! 2023-04-21 23:38:44 +02:00
Martin Preuss
76e58b6fec avr: removed command to switch on debug led. 2023-04-21 00:15:42 +02:00
Martin Preuss
11c674d673 avr: started adding some often needed snippets to reduce code size. 2023-04-20 23:59:10 +02:00
Martin Preuss
73404d79f6 aqhome: increased verbosity 2023-04-20 23:58:29 +02:00
Martin Preuss
02b934c080 aqhome: fixed typos/bugs (in part copy'n'paste errrors) 2023-04-20 23:58:09 +02:00
Martin Preuss
82c7626783 flashing a device via boot loader works now!!
- use a simple rjmp to start main firmware
- add buffer size as a parameter for com2ReceivePacketRaw
- fixed bugs in
  - Flash_StartPage
  - Flash_FinishPage
  - Flash_ReadPageIntoPageBuffer
- assume irqs disabled in flash routines
- increase flash receive buffer size to 128
2023-04-20 23:57:13 +02:00
Martin Preuss
9b568393cd 0BUILD: added target to flash test image. 2023-04-20 00:46:30 +02:00
Martin Preuss
66d5afb882 fixed description of a message. 2023-04-20 00:45:44 +02:00
Martin Preuss
d8e5252697 avr: some more work on flash code. 2023-04-20 00:45:20 +02:00
Martin Preuss
1af9a78818 avr: added clobbered regs to calls. 2023-04-20 00:45:01 +02:00
Martin Preuss
39c4bcd720 avr: added routine com2WaitForDataState1ms (not yet used). 2023-04-20 00:44:30 +02:00
Martin Preuss
600a6d01ac avr: added test image for flash tests. 2023-04-20 00:44:02 +02:00
Martin Preuss
6f5ab3b0b8 aqhome-tool: started working on flash module 2023-04-20 00:43:35 +02:00
Martin Preuss
c65bd60bc5 avr: added flash-related messages. 2023-04-20 00:43:07 +02:00
Martin Preuss
5b9fe3d0cd added script for aqhome-tool.sh 2023-04-19 15:44:12 +02:00
Martin Preuss
736acc69a7 0BUILD: add target to flash base image (bootloader). 2023-04-19 15:43:46 +02:00
Martin Preuss
a7d587a134 avr: first step of boot loader works
- send FLASH_READY
- waits for FLASH_START

NOTE: Utils_WaitNanoSecs only works reliably with values way above 1000
because 1000 is already one cycle time, and since each assembler command
already uses multiple clock cycles a value of 1000 never flies.
2023-04-19 15:43:17 +02:00
Martin Preuss
b7a36cc732 avr: removed TODO. Fixed jump to bootloader. 2023-04-19 15:41:16 +02:00
Martin Preuss
6cb1a9816e avr: commented-out def. 2023-04-19 15:40:39 +02:00
Martin Preuss
a3502a3a40 avr: fixed comment. 2023-04-19 15:40:14 +02:00
Martin Preuss
fd2c4da9ce aqhome: added FLASH_READY msg. 2023-04-19 15:39:51 +02:00
Martin Preuss
20efe7d473 aqhome-tool: recorganized code for improved reusability. 2023-04-19 15:39:15 +02:00
Martin Preuss
cf3a90dccc avr: moved bootloader down to 0x0d00. 2023-04-18 23:51:40 +02:00
Martin Preuss
87c1692a7c implemented DEVICE msg again. 2023-04-18 23:46:58 +02:00
Martin Preuss
5c111aa935 avr: add modules mask variable.
will be used by bootloader.
2023-04-18 23:46:38 +02:00
Martin Preuss
95cb4e93c3 tools: added aqhome-tool.
First command implemented is PING.
2023-04-18 23:26:19 +02:00
Martin Preuss
db86d61e33 aqhome: make some parameters const. 2023-04-18 21:17:56 +02:00
Martin Preuss
4e409851f6 aqhome: added lib for hexfiles and flash records. 2023-04-18 19:41:56 +02:00
Martin Preuss
93e89e801e aqhome: added defines for FLASH messages. 2023-04-17 01:14:18 +02:00