47
TESLA as Internet of Things Yan Zhang University of Oslo, Norway

TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

TESLA as Internet of Things

Yan Zhang

University of Oslo, Norway

Page 2: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Learning Objectives

Throughout this lecture, it is aimed for the students to be able to:

TESLA as Internet of Things

Blockchain

Understand the vision of “TESLA as Internet of Things”

Understand the Blockchain concept and main features

Blockchain for energy systems

Understand the application of Blockchain for energy systems

Page 3: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

INDUSTRY INVITED TALK TODAY

DNV GL: a global quality assurance and risk management company. The largest technical consultancy and supervisory to the global renewable energy and oil & gas industry: 65% of the world's offshore pipelines are designed and installed to DNV GL's technical standards.

Blockchain Technology and its Application in Energy Systems

Frida BerglundCONSULTANT - ENERGY MARKETS & TECHNOLOGY, DNV GL

Page 4: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Outline

BlockchainConcept

Tamper-proof

51% attack

TESLA as IoT Blockchain for Energy

Distributed energy

Applications examples

Concept

IoT vision

Principles

Page 5: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

TESLA AS INTERNET OF THINGS

01

Page 6: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Different types of EVs

• Norway has the largest electric cars per capita in the world. 70% of world oil is consumed by the transportation sector. Transport electrification is on the rise worldwide.

Electric Vehicle (EV)

Hybrid Electric Vehicle (HEV)

Plug-in Electric Vehicle (PEV)

Plug-in Hybrid EV (PHEV)

Battery Electric Vehicle (BEV)Toyota Prius

Chevy Volt

NissanLeaf,Tesla

Page 7: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Electric Vehicles (EVs)

• Q: why do we need discharging?

Charging Station/ Aggregator

Charging

Discharging

Charging station/aggregator

• Energy domain: power charging and power discharging

• Information domain: information exchange between EVs and charging station

Electric Vehicles roles

• Energy consumer • Energy storage • Energy provider

Page 8: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

EVs as Emergency Power Supply - discharging

dischargingdriving

drivingdriving

Page 9: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Vehicle-to-Grid (V2G) Systems: information and energy domains

Power Grid

aggregator

aggregator

Three main components in thissystem: EVs, aggregators, and powergrid. Each aggregator serves as aninterface between the grid and agroup of EVs.

Information: The communicationsamong EVs, aggregators, and grid cango through a two-way digitalcommunications (wired or wireless)infrastructure.

Energy: EVs in the system charge ordischarge their batteries via anaggregator.

Page 10: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

An example: Tesla Model S

• Range, Battery: Range is between 350-540km depending on driving conditions and battery choice.

• In a test, Tesla was able to go 375km on a single charge in Norwegian winter (-6Celsius). There are supercharging stations that will charge the car 50% in 20 minutes.

Page 11: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Keywords related to TESLA

energy

communications

transport

computation machine learning

energy storage battery management

electronicssmart devices

Self-driving

Page 12: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Then, is TESLA still a car?

• Yes, it is a car!

• But, it is more than a car…

It is

• a super computer

• smart device

• mobile robot

Page 13: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Important: TESLA is a NOT a car. TESLA is an IT device that has the car function!

• IPhone is not just phone. It is a smart device that we can make a call.

• Making a call is just one function of the device.

• TESLA is not just a car. It is a smart device that we can drive. Driving is just one function of the device.

• TESLA is smarter than IPhone, it can even drive by itself.

• TESLA is learning by itself: learn how drivers use the car and then build the autopilot system

Page 14: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Internet of Things (IoT) Vision: anything connected

• Concept: a network of connected objects that collect and exchange data at anytime anyplace. This includes everything from cellphones, coffee makers, washing machines, wearable devices, airplane, a jet engine of an airplane and almost anything else you can think of.

• Anything connected: anything will be connected and information can be accessed and shared from anywhere and anytime.

Page 15: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

IoT Features of TESLA (I): information sharing

• 8 cameras: provide 360 degrees of visibility at up to 250m of range.

• 12 ultrasound sensors around the car: detect objects in range to 500m

• A radar: radar produce electromagnetic waves and detects the reflection of those waves to determine the distance, angle, and velocity of those objects (i.e., where they are and how they are moving).

• Digitalization: Tesla has a free 3G connection to the Internet that is paid by Tesla. With built Wifi, Bluetooth, these make it access information from anytime anywhere. All aspects of the cars are digitized and available for inspection, including brakes, seat positions…

Page 16: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

IoT Features of TESLA (II): smart energy

• The car has a smart charging system that can adapt to almost any electrical source that is plugged into the car.

• It has the ability to regulate the power consumed to the capability of the line it is connected to.

• It can reduce consumption and cost as the batteries can allow the user to set a timer to control when it starts charging. (Q: Demand Response Management?)

Page 17: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

IoT Features of TESLA (III): energy sharing

• Wireless Power Transfer experiment: At kilowatts power level, the transfer distance can be several hundred millimeters with efficiency above 90% (*)

• Energy sharing concept: Each vehicle can buy and sell its own electricity with other vehicles.

(*) S. Li and C. Mi, "Wireless Power Transfer for Electric Vehicle Applications", IEEE Journal of Emerging and Selected Topics in PowerElectronics, vol.3, no.1, March 2015.

1 meter

1kw 0.9kw

Wireless Power Transfer

Airport Parking

Page 18: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

BLOCKCHAIN CONCEPTS

02

Page 19: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Energy sector has great interest in Blockchain

GermanyUSA

Australia

Page 20: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Two concepts: Blockchain and Bitcoin

• Bitcoin: unregulated digital currency designed to bypass currency controls and simplify online transactions by getting rid of third-party payment processing intermediaries.

• Blockchain&Bitcoin relationship: Bitcoin was an application of Blockchain. Blockchain has applications far beyond Bitcoin.

July’17 Sept’17 Nov’17 Jan’18$5000

$10000

$15000

$20000

Bitcoin Price

• Blockchain: a distributed database where anyone can create and complete transactions stored permanently. There are no central nodes and all nodes are equal. Each node stores the whole database.

Page 21: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Central trusted authority

A B

C D

All data

Traditional central trusted authority

• Individual person: owe her data

• Central trusted node: ow all users’ data, e.g., Visa, Mastercard, PayPal, banks, and Amazon. The center has full control of all data, it can search, add, delete and modify data.

A’s data

C’s data

B’s data

D’s data

Page 22: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

The center

Traditional central trusted authority

• A has data exchange with D (e.g., transaction)

• A sends request to the center

• The center answers the request and connects D

• Data processing

• Q: any disadvantages of such architecture?

A

A’s data

D

D’s data

All data

• Very high working load in the center since all transactions go through the central node; the central tends to become malicious; the single failure point of the central node by the cyber attacks.

Page 23: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain concept

• Blockchain is a globally maintained and shared distributed database. Everyone has all same database and there is no central organization to manage the database.

• Blockchain records the transactions permanently. The data can only add and search; the data cannot be deleted or modified.

A B

C D

All data

No central data. Each node has all data

All data

All data

All data

Page 24: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

An example of transaction using Blockchain concept

https://https://www.linkedin.com/pulse/securing-internet-things-iot-blockchain-ahmed-banafa/

A wants to send money to D

Block is created and represents the transaction

This Block is broadcast to every party in the network

Those in the network approve the transaction

The Block is then added to the Chain which provides a permanent record of the transaction

D receives the money from A

• Blockchain: decentralized database that keeps a record of all transactions. This provides a perfect way for systems to record transactions that should be transparent and permanent.

Page 25: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain types

Public Private Consortium

Administration No administrator Single Multiple

Permission Permissionless Permissioned Permissioned

Computation cost High Low Medium

Applications

Public Private Consortium

Bitcoin Bank, international organization, prison

Consortium of Banks, e.g., DNB, NORDEA

Page 26: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Concept: hash function and hash value

• Bitcoin uses a standard SHA-256 hash algorithm which generates a 256 bit hash value. For example: SHA256(123) = a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3

fox

The red fox runs across the ice

The red fox walks across the ice

Hashfunction

input hash value

• Hash function: takes any size input text and returns a fixed size string (i.e., hash value).

– Easy to calculate a hash for any given data

– Hard to calculate the original text that has a given hash

– Two slightly different messages produce drastically different hash value

Page 27: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain data structure (I)

• Block: blockchain is composed of block. Block refers to a group of transactions at a specific time and hash pointer of the previous block. Each block includes: header and body (i.e., data).

• Each block contains its own hash and also hash of the previous block. For instance, block 7 contains the hash of block 6, and block 6 contains the hash of block 5.

• A simple blockchain in Python: https://github.com/EricAlcaide/pysimplechain

Header

• Timestamp

• Block 6#’s hash value

• Block 7# data’s hash value

• ….

Transaction 1 data

Transaction 2 data

Transaction N data

Body

Block 7#

Page 28: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain data structure (II)

Block 3#

Prev Hash: 2K7G

Hash: 4C3L

Data: <transaction data>

Block 2#

Prev Hash: 1A9Z

Hash: 2K7G

Data: <transaction data>

Block 1#

Prev Hash: 0000

Hash: 1A9Z

Data: <transaction data>

• Blockchain data structure: a linked list with hash pointers used to record all transactions. New blocks are added to the end of the chain.

• Hash pointer: gives you a way to retrieve data along with the hash of the data. A regular pointer only gives you a way to retrieve data.

Genesis block

Page 29: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Tamper-proof mechanism

• Tamper-proof: an adversary is not able to tamper data in any block without getting detected.

• If anyone changes the data in Block 2, even just one bit from 1 to 0, the hash value of this block changes dramatically. Then, Block 3#’s “PrevHash” is not same as Block 2#’s hash value, this makes the whole chain invalid.

Block 3#

Prev Hash: 2K7G

Hash: 4C3L

Data: <transaction data>

Block 2#

Prev Hash: 1A9Z

Hash: N59A

Data: <transaction

data> 10

Block 1#

Prev Hash: 0000

Hash: 1A9Z

Data: <transaction data>

Genesis block

Page 30: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

51% attack in Blockchain

• Definition: malicious attackers control a majority (51%) of the total network’s computation power and collude to attack bitcoin or other crypto.

Trusted nodes add blocks by broadcasting them to the public chain

Malicious attackers add block in the private blockchain without broadcasting

Attackers add block faster with majority computation power. Rule in Blockchain: the longest chain wins

The old public chain is abandoned because it is shorter and its data is irrelevant. The attackers roll-back many blocks and start a new blockchain.

Page 31: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

51% attack in Blockchain - consequence

• Consequence: spend coins twice (i.e., double-spending). The attacker can spend the same coins twice and buy two different cars.

Block 40 transaction data: attacker used coins to buy a car and this transaction is stored in Block 40.

Block 42Block 39Block 38 Block 40

Block 40 Block 42Block 39

Block 38

Block 41

With 51% attack, the attacker starts a new Blockchain and the transaction data in the old chain is abandoned. There is no record of using the coins. The attacker can then spend the coins again to buy another car.

Page 32: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain applications in general

• Blockchain: decentralized database that keeps a record of all transactions.

• This provides a perfect way for systems to record transactions that should be transparent and permanent.

Sweden officially use Blockchain to register land and properties

Second-hand car value

certification

Page 33: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

BLOCKCHAIN FOR SMART GRID

03

Page 34: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain: centralized distributed ledger, verification and computation

Three conditions to use Blockchain:

1) distributed environment (i.e., no central node)

2) nodes do not trust each other

3) nodes perform transactions and need a method to record transactions permanently and updated securely

• Q: do we have such scenarios that satisfy these three conditions in smart grid?

Page 35: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Example 1: Blockchain for energy sharing among EVs

• Each vehicle can: (1) buy and sell its own electricity with other vehicles in distributed environment; (2) EVs do not trust each other

• Challenge: we need a method to ensure secure energy trading among EVs. Blockchain’s principle!

1 meter

1kw 0.9kw

Wireless Power Transfer

Airport Parking

Page 36: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Example 2: Blockchain for charging stations sharing

• (1) when your charging station is not in use, someone else can rent the station; (2) you do not trust each other

• Challenge: we need a method to ensure secure charging station sharing Blockchain’s principle!

• Role of Blockchain: (1) allow users to share charging stations across a decentralized platform, without the need for intermediaries; (2) make simple, secure payments using the blockchain; (3) the charging stations operate autonomously, allowing users to access and obtain energy through direct payments.

NAVN NAVNSEN

Page 37: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Example 3: An emerging concept: Prosumer = Producer + Consumer

• Recently, we have renewable energy in our home, consumers are not just customer anymore

• A house can both produce and consume energy

Page 38: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Selling your energy to your neighborhood

• Brooklyn Microgrid: In your house roof, you have solar power. The power can be used by yourself. If you are not able to use all power, you can sell to your neighbors.

Page 39: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Energy Peer-to-Peer (P2P) Trading

• Each house can: (1) buy and sell its own electricity with other houses in distributed environment; (2) the houses do not trust each other;

• Challenge: need a method to ensure secure energy trading among houses. Blockchain’s principle!

Page 40: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain applications: energy sharing where everyone can contribute/share power

• Each house can generate, store, buy and sell its own electricity with neighbors

• Common feature: (1) distributed energy trading; (2) houses/EVs donot trust each other

• Challenge: need a method to ensure secure energy trading among houses or EVs. Blockchain’s principle!

• Each vehicle can buy and sell its own electricity with other vehicles.

Page 41: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain for Energy Trading

• Two types of energy nodes: energy buyer and energy seller

• Charging stations are nodes to audit the transactions and record them into the shared ledger.

• Consortium blockchain: blockchain with multiple authorized nodes to establish the distributed shared ledger with moderate cost

• Q: which type of blockchain should be used: public, private or consortium blockchain?

BuyerSeller BuyerSeller

Page 42: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Role of grid operators in energy P2P trading

• Q: the energy production, usage, and storage can be done locally, which formulates a distributed energy market. The grid operators worry about this. Why?

• Q: can Blockchain help grid operators to address this challenge?

Energy production

Energy trading

Energy usage

Energy storage

Page 43: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain will transform energy market

• Energy companies or suppliers will not be used in the new energy market.

• Energy consumers and energy producers trade energy directly with each other without a third party.

Distribution system operator

Transmission system operatorMeter operator

Energy consumer

Energy producer

Energy company, or Electricity supplier

Distribution system operator

Transmission system operator

Meter operator

Energy consumer

Energy producer

Current energy market Blockchain enabled decentralized energy market model

Page 44: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

MORE CONSIDERATIONS…

04

Page 45: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Blockchain and AI

• AI for Blockchain: all transactions are saved in

blockchain permanently. Machine learning can be used

to analyze the data and find malicious transactions

• Blockchain for AI: blockchain can be used to protect

private data; and control the use of data and training

model

AI Blockchain

• Q: what is the interaction between AI and

Blockchain?

Block 3#

Prev Hash: 2K7G

Hash: 4C3L

Data: <transaction data>

Page 46: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

Similar as Bitcoin, can we create a new cryptocurrency for use within the energy market?

• The SolarChange project was created to financially reward producers of solar energy via a blockchain.

• The project was launched by the company SolarCoin, which has developed its own cryptocurrency – similar to Bitcoin – for the purpose of selling solar energy.

• Main idea: for every MegaWatt of solar energy fed into the grid, the producer is awarded one SolarCoin, which they can either store in their SolarCoin wallet or convert to bitcoins.

SolarChange platform for the exchange of SolarCoin. See more: http://solarcoin.org/

Page 47: TESLA as Internet of Things - folk.uio.no...Learning Objectives Throughout this lecture, it is aimed for the students to be able to: TESLA as Internet of Things Blockchain Understand

47

References

• PWC Global power and utilities, “Blockchain- an opportunity for energy producers and consumers?”