aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboard/hhkb_rn42/MEMO.txt100
-rw-r--r--keyboard/hhkb_rn42/Makefile2
2 files changed, 97 insertions, 5 deletions
diff --git a/keyboard/hhkb_rn42/MEMO.txt b/keyboard/hhkb_rn42/MEMO.txt
index a5fa04db1..11f64b8c4 100644
--- a/keyboard/hhkb_rn42/MEMO.txt
+++ b/keyboard/hhkb_rn42/MEMO.txt
@@ -3,16 +3,24 @@ Roving RN-42
3 3
4TODO 4TODO
5---- 5----
6Bug:
7- with Nexus5 keyboard and mouse are very laggy.
8
6Power saving: 9Power saving:
7- When not connected in a few minuts get into deep sleep to save battery life 10- 8MHz clock
11- When not connected in a few minutes get into deep sleep to save battery life
8- CTS is needed for waking up from deep sleep? How deep sleep is activated? 12- CTS is needed for waking up from deep sleep? How deep sleep is activated?
13- firmware controlled 3.3V DC converter to switch on/off BT module
14- sleep MCU and BT module(keyboard is not used)
15- deep sleep MCU and BT module(keyboard is not used for long time)
16- deep sleep MCU and turn off BT module(keyboard is not used and not connected)
17- Battery ADC; switching, high resistance
9 18
10Improving: 19Improving:
11- Status LED; connecting, liked, low battery, sleeping, deep sleeping 20- BT LED; connecting, linked, sleeping, deep sleeping
12- Battry voltage display by command; like full(solid), medium(blink), low(flash) 21- Battry LED; blink(using timer?)
13- move rn42 to protocol directory when it becomes reusable stack 22- move rn42 to protocol directory when it becomes reusable stack
14- LUFA sendchar should be buffered and serial_uart.c buffur size is too large(256). 23- LUFA sendchar should be buffered and serial_uart.c buffur size is too large(256).
15- keyboard LED update
16 24
17Testing: 25Testing:
18- Factroy reset doesn't work; need to **test again** 10K pull-up is too high? 26- Factroy reset doesn't work; need to **test again** 10K pull-up is too high?
@@ -22,7 +30,91 @@ Testing:
22- Keymap layer bug: during space is pressed(mousekey) press Fn(HHKB) then release space before Fn, in result HHKB layer is locked(toggled) unintentionally. 30- Keymap layer bug: during space is pressed(mousekey) press Fn(HHKB) then release space before Fn, in result HHKB layer is locked(toggled) unintentionally.
23 31
24 32
33Done:
34- low battery alert(solid light) 09/04
35
36
37Power routing
38-------------
39Current:
40(USB) +---(Lipo)
41 | | |
42 | | +------+ DPDT
43 | | |Switch/-----------------------+
44 | | +------+ |
45 | +-------+ | |
46 +-|Charger| | |
47 | +-------+ | +---+ |
48 | | |MCU| |
49 | | +---+ |
50 | | | |
51 | | | |
52+--------------+ +-----+ +------+ +---/--+ +-----+
53|Power Selector|--|DC 5V|--|DC3.3V|---|Switch|----|RN-42|
54+--------------+ +-----+ +------+ +------+ +-----+
55USB Power is boosted unnecessarily, not harmful?
56
57Idea 1:
58(USB) +---(Lipo)
59 | | |
60 | | +------+ DPDT
61 | | |Switch/----------+
62 | | +------+ |
63 | +-------+ | |
64 +-|Charger| | |
65 | +-------+ | +---+ |
66 | +-----+ |MCU| |
67 | |DC 5V| +---+ |
68 | +-----+ | |
69 | | | |
70+--------------+ | +---/--+ +------+ +-----+
71|Power Selector|-----+---|Switch|----|DC3.3V|-----|RN-42|
72+--------------+ +------+ +------+ +-----+
73To enable BT when USB powered it still needs to turn siwtch on, Lipo consumes quinscent current at 5V converter in vain.(Not good)
74
75Idea 2:
76(USB) +---(Lipo)
77 | | |
78 | | +------+
79 | | |Switch|
80 | | +------+
81 | +-------+ |
82 +-|Charger| |
83 | +-------+ | +---+
84 | +-----+ |MCU|----+ Controlled by firmware
85 | |DC 5V| +---+ | On: Lipo powered
86 | +-----+ | | Off: USB powered
87 | | | |enable
88+--------------+ | +------+ +-----+
89|Power Selector|-----+---|DC3.3V|-----|RN-42|
90+--------------+ +------+ +-----+
91MCU can controlled power of RN-42 without hardware switch.
92When USB powered and switch is on Lipo consumes quinscent current at 5V converter in vain.(Not good)
93
94Idea 3:
95(USB) +---(Lipo)
96 | | |
97 | | +------+
98 | | |Switch|SPST(or without)
99 | | +------+
100 | +-------+ |
101 +-|Charger| |
102 | +-------+ | +---+
103 | | |MCU|----+ Controlled by firmware
104 | | +---+ | On: Lipo powered
105 | | | | Off: USB powered
106 | | | |enable
107+--------------+ +-----+ +------+ +-----+
108|Power Selector|-|DC 5V|-|DC3.3V|-----|RN-42|
109+--------------+ +-----+ +------+ +-----+
110Switch is needed to save Lipo when not used because decent power saving is not available now. If firmware can turn off BT module completely and make MCU deep sleep the switch will be not even needed.
111
112
113
114
115
25DONE: 116DONE:
117- BT_INDICATOR LED turns on wrongly when touching line or pin. -- pull-up enabled on PF6/GPIO2 08/30
26- Lipo charger configuration: fast charge time: USB charger spec? -- used 2kohm 118- Lipo charger configuration: fast charge time: USB charger spec? -- used 2kohm
27- use LED of charger to alarm low battery. LED should be powered directly from Lipo? - cancel; powered from VUSB 119- use LED of charger to alarm low battery. LED should be powered directly from Lipo? - cancel; powered from VUSB
28- Use RTS in serial_uart.c to resolve missing chars from help message of RN-42 - done 120- Use RTS in serial_uart.c to resolve missing chars from help message of RN-42 - done
diff --git a/keyboard/hhkb_rn42/Makefile b/keyboard/hhkb_rn42/Makefile
index e28b3e0be..3d9a602a5 100644
--- a/keyboard/hhkb_rn42/Makefile
+++ b/keyboard/hhkb_rn42/Makefile
@@ -111,7 +111,7 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
111# Build Options 111# Build Options
112# comment out to disable the options. 112# comment out to disable the options.
113# 113#
114BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration 114#BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
115MOUSEKEY_ENABLE = yes # Mouse keys 115MOUSEKEY_ENABLE = yes # Mouse keys
116EXTRAKEY_ENABLE = yes # Audio control and System control 116EXTRAKEY_ENABLE = yes # Audio control and System control
117CONSOLE_ENABLE = yes # Console for debug 117CONSOLE_ENABLE = yes # Console for debug