Sep 18, 2017

raspi0 + HID gadget、他に参考にしたところ


・Pi-zero-w HID keyboard layout (2017/04)
 https://raspberrypi.stackexchange.com/questions/64521/pi-zero-w-hid-keyboard-layout
 qwerty キーボードが azerty と認識される事例

・Pi Zero as a USB keyboard (HID gadget) (2016/06/18)
 https://www.raspberrypi.org/forums/viewtopic.php?t=151940
「needs USB Gadget mode enabled in the kernel and it looks like the current kernels don't have this in」
Raspbian Jessie Lite image dated 2016-05-27
 (Pi Zero rev 1.2 from 2015)での苦労話

 結論が見えない、というか、読み切れない

・Using RPi Zero as a Keyboard Part 1: Setup and device definition (06/26)
 https://www.rmedgar.com/blog/using-rpi-zero-as-keyboard-setup-and-device-definition

 対応Kernelは4.9?(2017-06-21-raspbian-jessie.img = Linux version 4.9.28-v7+)

 iSticktoit(2016/02、Kernel 4.4  http://akasaka-taro.blogspot.jp/2017/09/raspi0.html)から
 追加されているパラメータは次の5つ
 | bDeviceClass: USB class code, assigned by USB organization (format: 0x00)
 | bDeviceProtocol: USB protocol code, assigned by USB organization (format: 0x00)
 | bDeviceSubClass: USB subclass code, assigned by USB organization (format: 0x00)
 | bMaxPacketSize0: maximum packet size for the device, only possible values are 8, 16, 32, and 64 (format: 0x00)
 ...
 | bmAttributes: configuration characteristics (format: 0x00), can have the following values:
 |     7: bus powered
 |     6: self powered
 |     5: remote wakeup
 |     4 to 0: reserved


----------------------------------------------------- 08/15のメモ

$ sudo iwconfig wlan0 essid 「SSID」 key s:「パスフレーズ」

# vi /etc/network/interfaces
「iface wlan0 inet 」の設定をmanualからdhcpに変更。

# vi /etc/wpa_supplicant/wpa_supplicant.conf   # <- ref 1

ref:
  1) http://qiita.com/teao26/items/970a721b5351e4c9918c
  2) http://systemp.hatenablog.com/entry/2013/04/21/152453
  3) http://stejp.blogspot.jp/2010/08/wpasupplicantconf.html
  4) https://www.xmisao.com/2014/01/16/how-to-connect-wpa2-wireless-lan-using-wpa-supplicant.html
  5) http://yamaryu0508.hatenablog.com/entry/2014/08/15/001312


No comments: