Fang-Chuan Wu (Benny)
LINE Taiwan / Platform Business Team
LINE Beacon is the amazing technology to connect online-to-offline experience. It is deployed to the different fields in Taiwan such as Taipei MRT stations and the event venues. The development experience and the applications will be shared in this session.
2. Agenda • About me
• Introduction to Taiwan Market
• LINE Beacon Specification
• Taipei MRT Applications of LINE Beacon
3. ABOUT ME
Software Engineer
Backend Engineer
10+ years
Product Management
Partnership Management
Business Development
4+ years
LINE TW Platform Business
LINE TW Developer Relations
Lead
7. • Update secure messages every 15 seconds
• Advertise LINE Beacon packets
• Generate secure messages from data hashed by SHA-256 and XOR
• Show HWID on the case of the device
LINE BEACON DEVICE
8. LINE BEACON PACKETS
the broadcaster role (BLUETOOTH SPECIFICATION Version 4.0 [Vol 3], Part C Section 2.2.2.1) specified in the generic access profile
AdvData
Ad Structure Ad Structure Ad Structure Non-Significant Part
Leng
th
Data Leng
th
Data Length Data
Ad
Type
Ad
Data
(flag)
Ad
Type
Ad Data
(16bit
UUID)
Ad
Type
Ad Data (Service Data)
16bit UUID LINE Beacon Frame
Fram
e
type
HWID Measured
TxPower
Secure Message
Message
Authentication Code
Masked
Timestamp
Battery
Level
02 01 06 03 03 6F FE 11 16 6F FE 02 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 00 00
01:
Flag
03:
Comp
lete
list
of
16bit
Servi
ce
UUID
0xFE6F:
16bit UUID
for
LINEcorp
0x11=1
7
0x16:
Servi
ce
Data
- 16-
bit
UUID
(16bit
UUID)
for
Distanc
e
Measure
ment.
(iBeaco
n
compati
ble)
15. Increase Bluetooth “on” rate
Encourage users to install apps that support beacons
Develop attractive applications
3 FACTORS FOR SUCCESS IN BEACON SERVICES
16. TAIPEI MRT
Taipei MRT
• Total 117 stations around Taipei and New Taipei City
• 2.2M+ passengers every day
Goal
• Potential O2O business opportunities
• LINE Beacon awareness
LINE Beacon
Deployment
• 35 stations (Blue line, Transportation stations)
• Around 200 beacons on platforms and around exits
18. LINE Beacon management - over 200 beacons for different purposes
Event handling from LINE Beacons - trigger different scenarios for users
HW trigger issues - the enter event may not occur with some phone models
TECHNICAL CHALLENGES
19. LINE Beacon management - over 200 beacons for different purposes
Event handling from LINE Beacons - trigger different scenarios for users
● Utilize multiple layers of users’ status with cache
● Check and respond to users as fast as possible
HW trigger issues - the enter event may not occur with some phone models
● Take different approach other than the enter event of LINE Beacon
● Trigger by other method if there’s HW limitation
SOLUTIONS
● Employ divide-and-conquer strategy
● Split beacons to small groups and assign task for each group
20. SERVICES
• News digest of LINE TODAY
• Emergency news from MRT
• Weather information
• Interaction game
• Nearby coupons
• Transportation (bus information)
Providing services News/ Weather Coupon Interaction game
25. LIFF
● LINE Front-end Framework. The
main interaction page.
Open data from Taipei Government
● Bus information including waiting
time and routes.
Flex message
● Build the message template with
flexibility.
Applied Technologies
BUS INFORMATION
Intuitive way of picking routes
● There are many bus routes in
Taipei city. Use HTML pages.
Challenges
Data integrity
● Open data may contain incomplete
information. Add error handling.
Integration
● Use micro-service structure and
integrate services with less effort.
26. BUS INFORMATION
Open Data
MangoDB
Replica Set
Redis
Data Sync
{
"EssentialInfo":{
"Location":{
"name":"台北市",
"CenterName":"台北市公車動態資 中心"
},
"UpdateTime":"2018/03/13 22:39:30",/
"CoordinateSystem":"WGS84"
},
"BusInfo":[
{
"RouteID":10441,
"StopID":36299,
"EstimateTime":"2733",
"GoBack":"0"
},
{
"RouteID":10441,
"StopID":36298,
"EstimateTime":"2540",
"GoBack":"0"
},
…