prod/doc/index.html |
29 | 29 | Defective devices can be discarded or retained for a deeper analysis. |
30 | 30 | |
31 | 31 | |
| 32 | <!-- ====================================================================== --> |
| 33 | |
| 34 | |
32 | 35 | <H2>Terminology</H2> |
33 | 36 | |
34 | 37 | <DL> |
... | ... | |
73 | 76 | </DL> |
74 | 77 | |
75 | 78 | |
76 | | <H2>Setup</H2> |
| 79 | <!-- ====================================================================== --> |
| 80 | |
| 81 | |
| 82 | <H2>Software setup</H2> |
| 83 | |
| 84 | Before performing any production tests, various pieces of software |
| 85 | need to be installed on Ben and PC, and configuration settings |
| 86 | @@@ |
| 87 | |
| 88 | |
| 89 | <!-- ---------------------------------------------------------------------- --> |
| 90 | |
77 | 91 | |
78 | 92 | <H3>PC software installation</H3> |
| 93 | |
| 94 | @@@ |
| 95 | |
| 96 | <H4>Install ben-wpan tools</H4> |
| 97 | |
| 98 | @@@ |
| 99 | |
| 100 | <H4>Register Ben host name</H4> |
| 101 | |
| 102 | To simplify accessing the Ben via TCP/IP, its IP address should be |
| 103 | registered in the hosts file on the PC. If the Ben is running OpenWrt, |
| 104 | use the following command: |
| 105 | <PRE> |
| 106 | echo 192.168.254.101 ben >>/etc/hosts |
| 107 | </PRE> |
| 108 | <P> |
| 109 | If the Ben is running Jlime, the address would be as follows: |
| 110 | <PRE> |
| 111 | echo 192.168.1.202 ben >>/etc/hosts |
| 112 | </PRE> |
| 113 | <P> |
| 114 | If using the same PC with Bens running OpenWrt and Jlime, one may choose |
| 115 | different host names depending on the distribution, and adapt the commands |
| 116 | used in the production and testing process accordingly. For example, |
| 117 | <PRE> |
| 118 | echo 192.168.254.101 ben >>/etc/hosts |
| 119 | echo 192.168.1.202 jlime >>/etc/hosts |
| 120 | </PRE> |
| 121 | |
| 122 | |
| 123 | <!-- ---------------------------------------------------------------------- --> |
| 124 | |
| 125 | |
| 126 | <H3>Ben system setup</H3> |
| 127 | |
| 128 | The configuration setting described in this section are lost on each |
| 129 | reset or reboot and either need to be entered again or a setup script |
| 130 | running at boot time has to |
| 131 | This needs to be done each time the Ben is booted. |
| 132 | |
| 133 | |
| 134 | <H4>Enable network access</H4> |
| 135 | |
| 136 | Once the Ben has booted and started USB networking, the interface |
| 137 | on the PC side is configured as follows: |
| 138 | <PRE> |
| 139 | ifconfig usb0 192.168.254.100 up |
| 140 | </PRE> |
| 141 | <P> |
| 142 | These are the settings for OpenWrt, assuming the network device is |
| 143 | called "usb0". If using Jlime, the command would be as follows: |
| 144 | <PRE> |
| 145 | ifconfig usb0 192.168.1.200 up |
| 146 | </PRE> |
| 147 | |
| 148 | |
| 149 | <H4>Silence other 8:10 card users</H4> |
| 150 | |
| 151 | Before running any of the ben-wpan utilities, other users of the 8:10 |
| 152 | card slot have to be disabled. In a Ben running the regular OpenWrt or |
| 153 | Jlime distribution, the only such user that is automatically started |
| 154 | is the MMC kernel driver. The following command disables it: |
| 155 | <PRE> |
| 156 | echo jz4740-mmc.0 >/sys/bus/platform/drivers/jz4740-mmc/unbind |
| 157 | </PRE> |
| 158 | <P> |
| 159 | If a WPAN-enabled kernel has been installed, the AT86RF230 driver takes |
| 160 | the place of the MMC driver. To disable it, run |
| 161 | <PRE> |
| 162 | echo spi2.0 >/sys/bus/spi/drivers/at86rf230/unbind |
| 163 | </PRE> |
| 164 | |
| 165 | |
| 166 | <H4>Start atrf-proxy</H4> |
| 167 | |
| 168 | On the Ben, launch the proxy daemon. We pass the option -b to background it: |
| 169 | <PRE> |
| 170 | atrf-proxy -b |
| 171 | </PRE> |
| 172 | |
| 173 | |
| 174 | <!-- ---------------------------------------------------------------------- --> |
| 175 | |
| 176 | |
79 | 177 | <H3>Ben software installation</H3> |
80 | | <H3>Ben software setup</H3> |
| 178 | |
| 179 | <H4>Password-less remote access</H4> |
| 180 | |
| 181 | To enable password-less remote access from the PC, setup to betwork |
| 182 | access to the Ben and run the following command: |
| 183 | <PRE> |
| 184 | ssh ben 'cat >>/etc/dropbear/authorized_keys' <~/.ssh/id_rsa.pub |
| 185 | </PRE> |
| 186 | |
| 187 | |
| 188 | <!-- ---------------------------------------------------------------------- --> |
| 189 | |
| 190 | |
81 | 191 | <H3>Test profiles</H3> |
82 | 192 | |
83 | 193 | |
| 194 | <!-- ====================================================================== --> |
| 195 | |
| 196 | |
84 | 197 | <H2>Flashing (atusb only)<H2> |
85 | 198 | |
| 199 | <!-- ---------------------------------------------------------------------- --> |
| 200 | |
| 201 | |
86 | 202 | <H3>Flashing the boot loader</H3> |
87 | 203 | |
88 | 204 | <P> |
... | ... | |
90 | 206 | <P> |
91 | 207 | |
92 | 208 | |
| 209 | <!-- ---------------------------------------------------------------------- --> |
| 210 | |
| 211 | |
93 | 212 | <H3>Flashing the application</H3> |
94 | 213 | |
95 | 214 | <P> |
... | ... | |
97 | 216 | <P> |
98 | 217 | |
99 | 218 | |
| 219 | <!-- ====================================================================== --> |
| 220 | |
| 221 | |
100 | 222 | <H2>Functional test</H2> |
101 | 223 | |
| 224 | <!-- ---------------------------------------------------------------------- --> |
| 225 | |
| 226 | |
102 | 227 | <H3>Test setup for atben</H3> |
103 | 228 | |
104 | 229 | <P> |
105 | 230 | <IMG src="setup-A.png"> |
106 | 231 | <P> |
107 | 232 | |
| 233 | <!-- ---------------------------------------------------------------------- --> |
| 234 | |
| 235 | |
108 | 236 | <H3>Test setup for atusb</H3> |
109 | 237 | |
110 | 238 | <P> |
111 | 239 | <IMG src="setup-B.png"> |
112 | 240 | <P> |
113 | 241 | |
| 242 | <!-- ---------------------------------------------------------------------- --> |
| 243 | |
| 244 | |
114 | 245 | <H3>Test procedure</H3> |
115 | 246 | |
| 247 | |
| 248 | <!-- ====================================================================== --> |
| 249 | |
| 250 | |
116 | 251 | <H2>Fault analysis</H2> |
117 | 252 | |
| 253 | <!-- ---------------------------------------------------------------------- --> |
| 254 | |
| 255 | |
118 | 256 | <H3>Component placement and orientation</H3> |
119 | 257 | |
| 258 | <!-- ---------------------------------------------------------------------- --> |
| 259 | |
| 260 | |
120 | 261 | <H3>Supply voltages</H3> |
121 | 262 | |
| 263 | <!-- ---------------------------------------------------------------------- --> |
| 264 | |
| 265 | |
122 | 266 | <H3>Clock frequency</H3> |
123 | 267 | |
124 | 268 | The flawless performance of the crystal oscillator is crucial for |