Mobile raspberry pi

Preview:

Citation preview

MOBILERASPBERRYPI

presentedbyGiorgioNatiliMOBILETEA#5

ROME,10JULY2013(WAT?It'srainingagain?!)

Aboutmee-mail:g.natili@gnstudio.com

twitter:@giorgionatiliblog:webplatform.io(comingsoon!)

community:codeinvaders.net

Agenda• WhatisWebRTCandwhatwecandowithit

• Whatislibjingle• ExplorethelibjingleGYPfiles

• MakeabuildforiOS• Demo

WHATISWEBRTC

WhatisWebRTC• AccordinglytogoogleWebRTCisanewwayyodorealtime

communicationonthewebwithoutusinganyplugin.• WebRTCisafree,openprojectthatenableswebbrowserswith

Real-TimeCommunications(RTC)capabilitiesviasimpleJavascriptAPIs.

• WebRTCAPIareavailableinChrome24+,Firefox22+andOpera12+.

• Don'tconfuseWebRTCAPIandthethe<device>API.

InternetExplorer

InternetExplorerWhat'saboutourgoodfriendIE?• It'sunclearhowandwhenthesupportwillbeavailable• SofaryoucanuseChromeFrametosupportWebRTC(moreinfoabouttheChromeFrameextensionareavailableontheofficialwebpageoftheprojectdevelopers.google.com/chrome/chrome-frame/)• Youguess?Microsoftisworkingonitsownstandard:)

Modela/Modelb-Theethernetportisavailableonlyonmodelb

-Themodelahasonly256mbofmemory(SDRAM)-ThemodelbhasadualUSBconnector

-Alltheotherfeaturesarethesameinmodelaandb-Adetalidcomparisonisavailableonelement14

Modelbcomponents

DidacticalUsage-Generalcomputerusage

-Programming(python,java,etc.)-Understandhardwarecomponents

-LinuxandBash

PracticalUsages-MediaCenter(HDMI)

-Electronics(micro)controller-Surveillancesystems(i.e.cameramodule)

-ArcadeGameCoffeeTableusingMAME-Supercomputers(attheUniversityofSouthamptonlinkedup64

RaspberryPis)

Performances-AttheheartoftheRaspberryPiisthesameprocessoryou

wouldhavefoundintheiPhone3GandtheKindle2-ThereisastandardRCA-typejackthatprovidescomposite

NTSCorPALvideosignalsinadditiontotheHDMIoutput-There’snoharddriveonthePi,everythingisstoredonan

SDCard

WhereandHowto

WhereandHowtoGetIt?

-PremierFarnell/Element14-RSComponents

-EgomanTechnologyCorp-RobotItaly

Thenyouhavetobereallypatient,waitandprayitwillarriveintime...

ExploretheBoard

Theprocessor

RASPBERRYPERIPHERALS

WhatYouCanConnect

-Youcanconnectperipheralsusingthepinsontheboard-GeneralPurposeInputandOutput(GPIO)

-P2andP3headers-CameraSerialInterface(CSI)-DisplaySerialInterface(DSI)

Selectalwaystheproper

peripherals!http://elinux.org/RPi_VerifiedPeripherals

InternalPowerHub

BatteryPack

Keyboard&TouchpadMouse

ChoosetheRightDistribution

RaspbianThe“officiallyrecommended”officialdistributionfromthe

Foundation,basedonDebian

AdafruitItisaRaspbian-baseddistributionthatincludestoolsanddriversuseful

forteachingelectronics

XbianItisadistributionbasedonRaspbianforuserswhowanttousetheRaspberryPiasamediacenter(seealsoOpenELECandRaspbmc)

ArchLinuxItisadistributionspecificallytargetsARM-bssedcomputerssoit'sthe

earlyadoptedRaspberryPiOS

PreparetheSDCard

OSDiskImage-Theoperatingsystemisdistributedasadiskimage

-Itisabit-for-bitrepresentationofhowthedatashouldbewrittentotheSDcard

OSX

OSX-Opentheterminalutility

-df-h,inserttheSDcardandthentypeitagain

-Unmountthecard(diskutilunmount/dev/disk3s1)-Figureouttherawdevicename(replacediskwithriskand

leaveoffthes1)-Usetheddutilitytowritebyteperbytethediskimage

Windows-DownloadtheWin32DiskImager

(https://launchpad.net/win32-image-writer)-InserttheSDcard

-OpenWin32DiskImagerandselecttheOSimage

RuntheRaspberrypi

StepbyStep-PlugtheSDcardintothesocket-PluginanUSBkeyboardandmouse

-PlugtheHDMIoutputintoyourTVormonitor-Pluginthepowersupply

-Crossthefingersandhavefun!!!

TroubleShooting-ChecktheSDcardiscorrectlydocked

-ChetyouareusingthecorrecttypeofSDcard-Checkifthecardiswriteprotectenabled

TheConfigScreen

TheConfigScreen1/2

-Expandrootfs,enlargethefilesyteminordertousethewholeSDcard

-Overscan,enableitifthetextrunoffthescreenonanhighdefinitionmonitor

-Keyboard,setupthekeyboardstyle(thedefaultisUK)-Password,chosesomethingstrongerthanraspberry

-ChangeLocaleTheConfigScreen

-ChangeLocaleTheConfigScreen2/2

-Memorysplit,changetheamountofmemoryusedbytheCPUandtheGPU

-Overclock,speeduptheprocessorspeedto1000Mhz-SettheTimezone

-SSH,switchon/offthesecureshellserverthatallowsyoutorunheadless

-Desktopbehavior,settingupnoyourunitasCLILinux(commandline!)

(commandline!)

Don'tupdatetheOSthefirsttimeyourunthedevice!!!

PreInstalled

PreInstalledSoftware

-Midoribrowser(optionallyNetSurforDillo)-Omxplayer

-LeafpadandNano-BourneAgainShell(BASH!)

-apt-get(e.g.sudoapt-getinstallscrot)

Recommended