changtimwu / changtimwu.github.com

Tim's testing/practice notes
7 stars 2 forks source link

Raspberry PI related #78

Open changtimwu opened 6 years ago

changtimwu commented 6 years ago

pi3_gpio

We're going to talk about

changtimwu commented 6 years ago

csi camera https://www.raspberrypi.org/products/pi-noir-camera-v2/

changtimwu commented 6 years ago

2nd uart https://www.rs-online.com/designspark/raspberry-pi-2nd-uart-a-k-a-bit-banging-a-k-a-software-serial

changtimwu commented 6 years ago

some common ground concept. Two systems with different power sources.

http://forum.arduino.cc/index.php?topic=13452.0

changtimwu commented 6 years ago

silicon labs cp2102 `https://detail.tmall.com/item.htm?id=44650961548&ali_refid=a3_430583_1006:1109313337:N:usb%E8%BD%AC%E4%B8%B2%E5%8F%A3%E6%A8%A1%E5%9D%97:872f4053cee0d345b36ffb43762a18c2&ali_trackid=1_872f4053cee0d345b36ffb43762a18c2&spm=a230r.1.14.1

tb2igoyrvxxxxxkxfxxxxxxxxxx_ 2074626935 ` 接 PI(TTL) 與一般 RS232 都是把 DIP 扳到 1, 只是要接不同 PIN

CP2102   -- RPI
TXD -> RXD0
RXD -> TXD0
USB GND ->GND
changtimwu commented 6 years ago

UBEC -- 22AWG ESC -- 14AWG BATTERY -- 12AWG

changtimwu commented 6 years ago

hardware encode https://www.raspberrypi.org/forums/viewtopic.php?t=152499

changtimwu commented 6 years ago

PS3 eye: camera + microphone https://www.raspberrypi.org/forums/viewtopic.php?t=171631

changtimwu commented 6 years ago

The Huawei LTE dongle I got is in hilink firmware. http://www.0xf8.org/2017/01/flashing-a-huawei-e3372h-4g-lte-stick-from-hilink-to-stick-mode/

pi@raspberrypi:~$ lsusb
Bus 001 Device 005: ID 12d1:14db Huawei Technologies Co., Ltd. E353/E3131

Amazingly it works without QMI. It just works with USB ethernet driver.

 cdc_ether 1-1.2:1.0 eth0: register 'cdc_ether' at usb-3f980000.usb-1.2, CDC Ethernet Device, 0c:5b:8f:27:9a:64
[   18.277228] usbcore: registered new interface driver cdc_ether
[   18.311337] cdc_ether 1-1.2:1.0 enx0c5b8f279a64: renamed from eth0
[   18.430689] cdc_ether 1-1.2:1.0 enx0c5b8f279a64: kevent 12 may have been dropped

pi@raspberrypi:~$ ifconfig enx0c5b8f279a64
enx0c5b8f279a64: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.8.100  netmask 255.255.255.0  broadcast 192.168.8.255
        inet6 fe80::b1e7:5d67:8937:1397  prefixlen 64  scopeid 0x20<link>
        ether 0c:5b:8f:27:9a:64  txqueuelen 1000  (Ethernet)
        RX packets 157  bytes 63897 (62.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 52  bytes 6481 (6.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
changtimwu commented 6 years ago

commands to run everytime boot https://www.raspberrypi.org/documentation/linux/usage/cron.md

changtimwu commented 6 years ago

various ways to have 360 view

changtimwu commented 6 years ago

there is usb microphone

changtimwu commented 6 years ago

raspberry pi rtmp https://www.raspberrypi.org/forums/viewtopic.php?p=1110595#p1110595

changtimwu commented 6 years ago

It's been saying that PI video streaming must be H.264/RTSP or MJPEG/HTTP( here and here). To watch h.264 video in browser, It's impossible to the <video> tag like this since the video tag only works for media file having countable size.

WEBRTC comes to rescue.

changtimwu commented 6 years ago

ffmpeg 3.1 supports PI's H.264 hardware encoding https://github.com/voidlinux/void-packages/issues/6398

changtimwu commented 4 years ago

enable ssh via

Create a file on the boot partition named “ssh”

https://www.raspberrypi-spy.co.uk/2012/05/enable-secure-shell-ssh-on-your-raspberry-pi/