Banana Pi BPI-D1 User manual

1.1
1.2
1.2.1
1.2.2
1.2.3
1.2.4
1.3
1.3.1
1.3.1.1
1.3.1.2
1.3.1.3
1.3.1.4
1.3.1.5
1.3.1.6
1.3.2
1.3.3
1.4
1.5
1.6
1.7
TableofContents
AboutBPI-D1
BPI-D1hardware
BPI-D1hardwareinterface
BPI-D1hardwarespec
BPI-D1GPIOPindefine
BPI-D1schematicdiagram
BPI-D1Software
BPI-D1UseMethod
Howtorecordavideo
HowtoconnecttotheAP
ViewReal-timeVideo
Howtoviewfiles
Howtoset
WIFIrelevantInformation
ProgramtheFirmware
BPI-D1sourcecodeongithub
BPI-D1PowerSupply
AK3918Specification
Allbananapiproduct
BPI4.0customizedServer
1

BananapiBPI-D1opensourceIPcameraproject.
TheBPI-D1isthesmallestopen-sourcedevelopmentboardaround,withabuilt-inHDminicamera.At38mm(w)x38mm
(l)andweighinginat10g,it’smuchsmallerandlighterthananymini-camorcameraboardoutthere.Itallowsyoutocreate
andcustomizeyourownmini-camandcanbeavaluablepartofanycoolhardwareyouareworkingon.TheBPI-D1prides
itselfonprovidinghigh-resolutionimagequality:Bothvideoandphotosarecapturedat1280x720pwithavideocapture
rateof30fps.
TheBPI-D1isdesignedspecificallytogiveyouallthemultimediatoolsyouneedinonesmallpackage.Simplyconnectto
anexternalbatterysource(withyourdesiredpowercapacity),andtheBPI-D1doestherest:there’saHDmini-cam,audio
sensor,microphone,CPU,GPIO,WiFi,andmore-younameit,theBPI-D1hasit.
forum:http://www.banana-pi.org
forum:http://www.bananapi.com
product:http://www.banana-pi.com
AboutBPI-D1
2

AboutBPI-D1
3

FirstChapter
GitBookallowsyoutoorganizeyourbookintochapters,eachchapterisstoredinaseparatefilelikethisone.
BPI-D1hardware
4

BPI-D1hardwareinterface
Front:
Back:
BPI-D1hardwareinterface
5

BPI-D1hardwareinterface
6

BPI-D1hardwarespec
HardwareSpecification:
Product
Size PCB38x38mm
CPU 400MHzARM926EJ32BitsRISCCore
RAM 64MBDDR2
Flash 16MBSPI-FLASH
Storage MicroSDCardSeat,supportablefor8G,16G,32GTFcards
CMOS CMOSImageSensorSoC30FPS@720P,Visiblelightwith940nmtwo-wayinfraredlensfilter,with
infrarednightvisionfunction
Lens M7*P0.35EFL=3.0mm/F.NO=2.8/ViewAngle=60°
Video ItachievesH.264hardwareencodingat1280x720p_30fps.32GTFcardcanstore120hoursof
videodata
Audio MP3/WMA/AAC
WIFI USBWIFI(OPTION):WiFimodulecanbeswitchbetweentheAPandtheSLAVEmode,easyto
configuretheWiFimodule.BPI-D1supportWPSmode
RTC RTCcircuit,andsupportingOSD
PM SupportLi-ionChargingwithBuilt-inAXP173powermanagementchip
MIC Embeddedelectretsmicrophone
Power
Consumption
Recording:5V-200mA;WiFiOn:5V-350mA;continuouslyrecord720Pvideooraudiodatafor
24hourwhenamobilepowerof10000mAHisavailable.
GPIO 1UART/2GPIO;2PWM/2GPIO;I2C;AudioLineIN;HPAudioOutL;HPAudioOutR;1SPI
Interface
ART IndependentUARTdebugginginterface
USB USBprogrammaticinterface/OTGdevice(WiFimodule/USBdrive)
DCIN Micro-USBsingle+5Vpowerinput
Battery 3.7VLi-ionsocket
OS RunningonLinux3.4.35,KernelOperationsystemthatmakessecondarydevelopmentpossible
BPI-D1hardwarespec
7

BPI-D1GPIOPindefine
BPI-D1GPIOPindefine
8

Howtorecordavideo
Inafullychargedorconnectingmicro-powerUSBcable,BPI-D1willautomaticallystartthedefaultsetofvideo
application.StartrecordingthevideoandsoundandgeneratefilestoragetoTFcard.Recorded30minutesto
automaticallygenerateandsaveforavideofile.Clickthe“functionkey"button,thenmanuallystoprecordingthecurrent
taskandgenerateacompletevideofile,startthenextrecordfilesafter10seconds.
Howtorecordavideo
10

HowtoconnecttotheAP
ConnecttothespecifiedAP
TheUSB-WiFimoduleisconnectedtotheUSBinterfaceofOTG.PresstheBPI-D1"primarykey"button,greenLEDwill
keeplongbrightafterflashingabout8seconds;itmeansBPI-D1workinAPmode.
1. Connectanymobiledevices(e.g.Smartphone,tabletorcomputer)totheWiFiconnection“SSID=XXX_D1_A39XXX”
andenterthedefaultpassword“12345678”.
2. InInternetExplorer,entertheFTPaddress“ftp://192.168.0.1”.(username:admin,password:admin)
3. Click"Ethernet”,selectoneoftheavailableWiFi.TheSSIDparameterwillbedisplayedintheabove,clickpassword
blankandentertheknownpassword,thenclickthe"save".Afterflashingonthescreen,fourparametersintheform
disappearedthattheconnectionissuccessful.
4. Clickonthe(39)Boot/WPSbutton,BPI-D1switchestoslavemode;youwillseeLEDflashesfromfastintoslow,which
hasbeenconnectedtothespecifiedWiFi-AP.
HowtoconnecttotheAP
11

ViewReal-timeVideo
ViewinrangeofLAN
Atpresent,viewingreal-timevideocanbeachievedintheLANthroughVLCplayerorMXPlayer.Ifthetwoplayers
installedonyourPCsormobiledevices,itcouldbeviewvianetworkstream.Todothis:
note:JusttakethecaseofVLCplayer.
1. InstallVLCplayeronyourPCsormobiledevices.
2. Connectanymobiledevices(e.g.Smartphone,tabletorcomputer)totheWiFiconnection“SSID=XXX_D1_A39XXX”
andenterthedefaultpassword“12345678”.
3. OpenVLCplayerandclick“ ”andopennetworkstream.
4. EntertheAPofBPI-D1“rtsp://192.168.0.1”,click“open”andviewthereal-timevideo.
[Reminder]:Real-timevideomaybedelay,whichrelatedtothenetworktransmission.
ViewReal-timeVideo
12

Howtoviewfiles
1. RemovetheSDcardfromtheboardandinsertitintotheSDcardreaderofacomputer.
2. Batterymode,usingmicro-USBdatacabletoconnecttheBPI-D1andPC.PCclientcanaccessthecontentsofTF
cardthroughthedatacable,whilechargingthelithiumbattery.
[Reminder]:Micro-USBinterfacesupportsUSBflashdiskconnectedthroughUSBfemaleportofOTGcable,
SupportdirectlycopyfilesfromtheTFcardtotheexternalUSBdrive.
3. ConnectPCormobiledevicestotheSSIDaccesspointnamed“XXX_D1_A39XXX”,andaccessfilesattheFTP
addressftp://192.168.0.1
SupportIE,Chrome,Opera,SafariorFirefoxbrowserloginFTPtoviewordownload.Ifyouneedplaythevideo
youwillneedtoinstallplayersupportforH.264orMJPEGdecodingformat.
Howtoviewfiles
13

Howtoset
RecordParametersSettings
WhenBPI-D1powerisON,videorecordingwillstartautomaticallyaccordingtothedefaultset.IfyouwanttosettheBPI-
D1videoparameters,youcanrefertothefollowingsteps:
1. 1.SwitchontheWiFiandswitchtotheAPmode(TheLEDlightwillremainsteady).Connectanymobiledevices
(e.g.Smartphone,tabletorcomputer)totheWiFi,connection“SSID=“XXX_D1_A39XXX”andentertheFTPaddress
“ftp://192.168.0.1”.
[Reminder]:UserName:admin;Password:admin
2. Clickthe"VideoSettings"or"RecordSettings"canadjusttherecordparameters.
Aftersavingthechangedsettings,allsetuparevalidatedonlyaftermanuallyre-openafterswitchingoffthe
device.
VideoSettings
"Video"relatedtotheformatofthefinalrecordedandresolution,devicessupportthetwocodingformatswhichareH.264
andMJPEG;relevantparameterscanbesetmanuallyaccordingtotherequired.Aftersetting,click"Save".
RecordSettings
“Record“relatedtorecordingsavetime,thenumberofvideofilesandthesizeofvideofiles,devicessupportthetwocoding
formats,settingLoopRecordingTimeandTimedLoopRecording;relevantparameterscanbesetmanuallyaccordingto
therequired.Aftersetting,click"Save".
VideoStream:Choosethetwostreamsinthe“Video”whichareH.264andMJPEG.
LoopRecordingTime:Finishavideoandsaveafileaccordingtosettingrecordingtime.
TimedLoopRecording:StartrecordingaccordingtoLoopRecordingTimesettingafterswitchonthedevice,beyondthe
settingtimeautomaticallystoprecording.
Howtoset
14

[Reminder]:Videoresolutiondependsonchoosingadifferentvideostream,andthegeneratedvideofilesizewillbe
different.
Howtoset
15

RelevantInformation
WiFiLEDatwork
BPI-D1"functionkey"button,clickopenWiFiAPmode,andthenclickclose.“GreenLED“willflashforabout8seconds:
LEDStatus Description
Light WiFiworkinAPmode,youcansearchtheAPSSID.(forexample,XXX_D1_A39XXX)
Flash WiFiworkinslavemode,itwillautomaticallyconnecttheAPthatsettheparametersbefore.
WiFiON/OFFEnergyConsumption
WiFiON/OFFtosavethepowerconsumption,thetwostatusesgenerallyasfollows:
1. WiFiOFF,BPI-D1isrecordingandsavedtoTFcard,current5Vpowerisabout250mA.
2. WiFiON,BPI-D1isrecordingandsavedtoTFcard,atthesametimeBPI-D1connectedtothenetworkthroughWiFi,
current5Vpowerisabout350mA.
3. Itcanbeusedtopredict500mahlithiumbatteriescanmaintainBPI-D1work1to2hours.
WIFIrelevantInformation
16

ProgramtheFirmware
ImportantNotesbeforeYouStart:
1. Youmustusethecompatibleversionofthefirmwareprogramingsoftwarewithsourcecodes.
2. ThesoftwareworksonWindowsXPServicePack3andnewerversions.
3. Thesoftwarefilepathislocatedat:/lamobo.dev/tool/burntoolinthecodedirectory
4. Beforeprogrammingthefirmware,pleasemakesuretocopyandpastethe3compiledfiles“zImage,”“root.sqsh4,”and
“root.jffs2”totherootdirectory.(Note:Thecompliedfilesaresavedat:/lamobo.dev/output)
5. imagedownloadandforum:http://www.banana-pi.org
HowtoProgramtheFirmware
1. Batterymode,pressandholdthe"primarykey"5secondsoffBPI-D1power.BeforethePCinsertsBPI-D1micro-
USBprogrammingcable,double-clickfirmprogrammingtoolsicon,runstheburntool.Holdingdownthe"functionkey"
andthemicro-USBprogrammingcableconnectingtothePC,themoduleenterstheprogrammingmode.Atthistime
BPI-D1LEDnoinstructions.Ifthereisnolithiumbattery,youdonotneedtoconnectthemicroUSBpowercable.
2. AfterthePCinsertsBPI-D1micro-USBprogrammingcable,thefirmprogrammingtoolswilldetectthelaunchofthe
application.Onceconnected,ayellowstatusbarwillappearnexttothedeviceinthewindow,andthestatuswillshow
“Ready”(pleaserecheckandrepeatthestepsaboveifnoresponse).Pressthe“Start”buttononthetoptostartthe
firmprogrammingautomatically.
3. Burningcompleted,micro-USBdatacabledisconnectedwithPC.
StatusDescriptions
Thestatus,progressandelapsedtimewillappearintheprogrammingwindow.
[Successful]
Oncethestatusandprogressbarturngreen,theprogressbarreaches100%,andthestatusreads“Completed,“the
firmwarehasbeenprogrammedsuccessfully.
ProgramtheFirmware
17

[Unsuccessful]
Whenthestatusandprogressbarturnred,thestatusareawilldisplayoneofseveralerrormessages,indicatingan
unsuccessfulprogrammingattempt.
Iftheoperationisunsuccessful,pleaseretryafteradjustingthefollowingsettings:
1. ClickSettings,select“Researcher”astheUserName,leavethePasswordblank,andthenselect“OK”.
2. 2.Choose“General”ontheleft-sidemenuandcheckthetwoboxes“forcewritetotheMacaddress”and“forcewrite
serialnumber,”andthenselect“OK.”
ProgramtheFirmware
18

3. Repeatsteps1-3inthe“HowtoProgramtheFirmware”andtryagain.
ProgramtheFirmware
19
Other manuals for BPI-D1
1
Table of contents
Other Banana Pi Motherboard manuals