40
Image acquisition and Communication Developements around the ACME Fox Board E. Pamba Capo-ChiChi 1,2 ,G. Weisenhorn 1 ,J-M. Friedt 3,4 H. Guyennet 1,2 1 Department of Computer Science University of Franche-Comte 2 Laboratory of computer science of Franche Comte (LIFC) 3 Laboratory of Physics (FEMTO-ST/LPMO) 4 Student Association - Projet Aurore July 30, 2007 University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 1 / 40

Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and CommunicationDevelopements around the ACME Fox Board

E. Pamba Capo-ChiChi1,2,G. Weisenhorn1,J-M. Friedt3,4

H. Guyennet1,2

1Department of Computer ScienceUniversity of Franche-Comte

2Laboratory of computer science of Franche Comte (LIFC)3Laboratory of Physics (FEMTO-ST/LPMO)

4Student Association - Projet Aurore

July 30, 2007

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 1 / 40

Page 2: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 2 / 40

Page 3: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Wireless Sensor Network (WSN)

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 3 / 40

Page 4: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Wireless Sensor Network (WSN) What is a WSN ?

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 4 / 40

Page 5: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Wireless Sensor Network (WSN) What is a WSN ?

What is a WSN ?

SensorA device that responds to a stimulus, such as heat, light, or pressure,and generates a signal that can be measured or interpreted

Figure: Sonar

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 5 / 40

Page 6: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Wireless Sensor Network (WSN) What is a WSN ?

Components of sensor

Intelligent sensor

Monitoring areaCommunication areaBattery

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 6 / 40

Page 7: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Wireless Sensor Network (WSN) What is a WSN ?

Wireless Sensor Network

CharacteristicsSensor network is a large number of sensors devices which are able tocollect and process information in different environnement usingwireless communication and transmit it to the base station known asSink.

Low cost and tiny sensor nodesEvent detectionPower limitedDynamic network topologyHarsh environmental conditionsMany to one

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 7 / 40

Page 8: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Wireless Sensor Network (WSN) Typical applications of WSN

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 8 / 40

Page 9: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Wireless Sensor Network (WSN) Typical applications of WSN

Applications

Factory equipement managementRemote ecosystems monitoringForest fire monitoringEarthquake detectionCold chain management

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 9 / 40

Page 10: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Wireless Sensor Network (WSN) Purpose of this project

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 10 / 40

Page 11: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Wireless Sensor Network (WSN) Purpose of this project

WSN design

DeploymentCoverage of surfaceData gatheringEnergy management

Extended life-timeReliable communicationEfficient integrated data processingHybrid network infrastructureSecurity

Purpose of this workRealization of a real sensor network and definition of a new protocol ofcommunication considering sensors constraintUniversity of Franche-Comte (UFR) ACME Fox Board July 30, 2007 11 / 40

Page 12: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 12 / 40

Page 13: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Embedded board: ACME Fox Board

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 13 / 40

Page 14: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Embedded board: ACME Fox Board

General Aspect

Linux operating system on a ETRAX 100LX processor, a 100MIPS RISC CPU made by Axis with MMUOpen Source SDK supported by Acme SystemsAdvantages to develop on same operating systemFox LX: 4MB Flash and 16MB RAMPower supply: 5 Volt 280mA (lifetime on battery : 10 hours)Weight: 37 g Size: 66 x 72 mmUSB Host and Serial link

Main field applicationsStand alone device to build micro web server or other networkdevicesCore engine to plug onto another board instead of a simplemicrocontroller

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 14 / 40

Page 15: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Embedded board: ACME Fox Board

Technical Aspect

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 15 / 40

Page 16: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Image sensor acquisition

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 16 / 40

Page 17: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Image sensor acquisition

USB Webcam device

Block diagram

Controling WebcamTwo drivers : PWC from Luc Saillard and Spca5xx from MichelXhaardControlling webcam with Kernel API framework : Video for LinuxImage compression from different color spaces(YUV,RAW,JPEG)

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 17 / 40

Page 18: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Wireless PAN Communication

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 18 / 40

Page 19: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Wireless PAN Communication

Ubiquitous Computing Age

Many wireless LAN product : Wifi, Bluetooth, Zigbee,. . .

Our choice Bluetooth : low consumption with short range on a lowcost transceiver microchip based on a licence-free ISM band at2.45GHz (720kb/s).Radio layer technique : Frequency Hopping SpreadSpectrum(FHSS) system reduces interference of nearby systemsoperating on the same range of frequency, make link robust (79channels)Modulation characteristics: Gaussian Frequency Shift KeyingMany Bluetooth stacks : BlueZ (Qualcomm), Affix (Nokia),BlueDrekar (IBM), OpenBTStack (Axis)

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 19 / 40

Page 20: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Wireless PAN Communication

Bluetooth divided in 3 power classes:

Enhanced Data Rate in Bluetooth Specification V2.0 (DifferentialPhase Shift Keying Modulation), data rate of 2Mbps or 3Mbps.Packet oriented => 3 Logical Transports : SCO (SynchronousConnection-Oriented), ACL (Asynchronous Connection-orientedLink), eSCO. 15 different packet types in each logical transports.Link control packets : ID, NULL, POLL, FHSACL packets : DM1, DH1, DM3, DH3, DM5, DH5,. . .SCO packets : HV1, DV, EV3, 2-EV3, . . .Error checking : HEC in header and CRC in payloadError correction: 1/3 rate FEC (Forward Error Checking), 2/3 rateFEC and ARQ (Automatic Repeat Scheme)

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 20 / 40

Page 21: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Wireless PAN Communication

Bluetooth core system architecture

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 21 / 40

Page 22: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Image acquisition and Communication Wireless PAN Communication

Bluetooth design

Bluetooth Piconet

Master-slave configurations/ Up to 7 active slaves255 inactive (parked) slaves

Bluetooth Scatternet

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 22 / 40

Page 23: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 23 / 40

Page 24: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Image transmission

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 24 / 40

Page 25: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Image transmission

Image transmission principle

Application featuresProtocol over L2CAP (Logical Link Control and AdaptationProtocol) layer in ACLProtocol over Obex layer (RFCOMM)Card doesn’t store frames to reduce I/O operations on flashmemory

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 25 / 40

Page 26: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Image transmission

HCI : Host Control Interface

DefinitionHCI provides a command interface to the baseband controller and linkmanager and access to hardware status and control registers. Thisinterface provides a uniform method of accessing the Bluetoothbaseband capabilities.

Playing with HCIEach command : 2 bytes Opcode in 2 fields OGF 6 bits (OpcodeGroup Field) and OCF 10 bits (Opcode Command Field)Inquiry Opcode 01 04:

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 26 / 40

Page 27: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Image transmission

L2CAP Protocol

DefinitionL2CAP provides connection-oriented and connectionless data servicesto upper layer protocols with protocol multiplexing capabilities,segmentation and reassembly operation. L2CAP logical linkssupported by an ACL logical transports.

L2CAP communicationCID (Channel Identifier) Logical Channel endpoint on the devicePSM (Protocol/Service Multiplexor): SDP 01, RFCOMM 03. . .

static uint16_t psm = 0xaa79;num_rsp = hci_inquiry (dev_id, length, num_rsp, NULL, &info, flags);sock=socket(AF_BLUETOOTH, SOCK_SEQPACKET,BTPROTO_L2CAP); . . .

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 27 / 40

Page 28: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Image transmission

How a piconet is established ?

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 28 / 40

Page 29: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Image transmission

Image transmission principle

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 29 / 40

Page 30: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Image transmission

Fox card with webcam and bluetooth key

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 30 / 40

Page 31: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Image transmission

Who says a Fox card can’t fly ?

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 31 / 40

Page 32: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Image transmission

10s/imageDistance between Fox card and laptop : 35 meters

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 32 / 40

Page 33: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Bluetooth signal strength

Outline

1 Wireless Sensor Network (WSN)What is a WSN ?Typical applications of WSNPurpose of this project

2 Image acquisition and CommunicationEmbedded board: ACME Fox BoardImage sensor acquisitionWireless PAN Communication

3 Experimental resultsImage transmissionBluetooth signal strength

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 33 / 40

Page 34: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Bluetooth signal strength

Fox card and Bluetooth experiment

PrincipleExperiment in outdoor environment2 measurements of the signal strength on a fixed device and amobile Fox cardFox card with GPS receiver to answer to Finding a relationshipbetween the receiving signal strength and distance ?

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 34 / 40

Page 35: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Bluetooth signal strength

Fox card with GPS receiver ET301 and bluetooth

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 35 / 40

Page 36: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Experimental results Bluetooth signal strength

Bluetooth range and Receiving Signal StrengthIndication (RSSI)

5.9892 5.9894 5.9896 5.9898 5.99 5.9902 5.990447.2476

47.2477

47.2478

47.2479

47.248

47.2481

47.2482

47.2483

47.2484

longitude (o)

latit

ude

(o )

11 m

15 m

~ 60 m

stat

ion

fixe

0,0004o

RSSI local

RSSI distant

décalage

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 36 / 40

Page 37: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Summary

Summary

Problem of Bluetooth reconnectionProblem of scalabilityCommunication between several Fox cardDeveloppement of a new routing algorithms for WSN

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 37 / 40

Page 38: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Appendix Interest in WSN ?

Futher Reading I

M. Ilyas Ed.,The Handbook of Ad Hoc Wireless Networks.CRC Press (2003)

G. Weisenhorn, E. Pamba Capo-chichi, J-M. FriedtCommunications de données et d’images issues de la carte Foxpar Bluetooth.Linux Magazine France (juin 2007)

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 38 / 40

Page 39: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Appendix Interest in WSN ?

Free Sofware Meeting: RMLL 2007

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 39 / 40

Page 40: Developements around the ACME Fox Board - Freejmfriedt.free.fr/fox_slides.pdf · cost transceiver microchip based on a licence-free ISM band at 2.45GHz (720kb/s). Radio layer technique

Appendix Interest in WSN ?

About authors

E. Pamba Capo-ChiChi : [email protected]. Weisenhorn: [email protected]. Friedt: [email protected]

University of Franche-Comte (UFR) ACME Fox Board July 30, 2007 40 / 40