Raspberry Pi WebCam with 3G (Solarcam): Difference between revisions
Jump to navigation
Jump to search
Line 30: | Line 30: | ||
[ 10.250436] option 1-1.3:1.4: GSM modem (1-port) converter detected | [ 10.250436] option 1-1.3:1.4: GSM modem (1-port) converter detected | ||
[ 10.372741] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2 | [ 10.372741] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2 | ||
pi@raspberrypi ~ $ | |||
pi@raspberrypi ~ $ dmesg | grep HUA | |||
[ 3.442910] usb 1-1.3: Product: HUAWEI Mobile | |||
[ 3.448928] usb 1-1.3: Manufacturer: HUAWEI Technology | |||
[ 4.514394] scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 | |||
[ 4.535154] scsi 6:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 | |||
pi@raspberrypi ~ $ | pi@raspberrypi ~ $ | ||
Revision as of 21:11, 12 August 2017
The Idea
- Use solar panel to harvest energy
- Store the energy in a left over car battery
- Power a Pi with camera and 3G-Stick
- Make a nice webcam out of it :)
How To
Update your Pi
apt-get update apt-get upgrade
Install USB-Modeswitch
apt-get install usb-modeswitch
(you'll need this later to switch your stick from mass storage to modem mode)
Create network interface
Add to /etc/network/interfaces
iface eth1 inet dhcp allow-hotplug eth1 shutdown -r now
Check interface
It should read like this (on boot):
pi@raspberrypi ~ $ dmesg | grep GSM [ 9.322073] usbserial: USB Serial support registered for GSM modem (1-port) [ 9.805167] option 1-1.3:1.0: GSM modem (1-port) converter detected [ 9.893094] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0 [ 10.003375] option 1-1.3:1.3: GSM modem (1-port) converter detected [ 10.145947] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1 [ 10.250436] option 1-1.3:1.4: GSM modem (1-port) converter detected [ 10.372741] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2 pi@raspberrypi ~ $
pi@raspberrypi ~ $ dmesg | grep HUA [ 3.442910] usb 1-1.3: Product: HUAWEI Mobile [ 3.448928] usb 1-1.3: Manufacturer: HUAWEI Technology [ 4.514394] scsi 5:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 [ 4.535154] scsi 6:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 pi@raspberrypi ~ $
Tips
- Remember that this Pi is in the wild and easily stolen or all the data read
- Don't use your usual passwords for this project
- Don't store keys on the Pi
- Let your master server fetch the data
- Create a special user to access the data from remote