What Communication Technology Powers Everyday Shared Bikes?

The article breaks down the communication architecture of shared bicycles, covering smart lock hardware, cellular and Bluetooth connectivity, QR‑code unlocking, payment integration, GPS positioning challenges, and the rise of NB‑IoT as the dominant IoT protocol.

Java Architect Handbook
Java Architect Handbook
Java Architect Handbook
What Communication Technology Powers Everyday Shared Bikes?

一、智能车锁

共享单车的核心硬件是智能车锁,集成了嵌入式芯片(通信模块)、GPS 模块和物联网 SIM 卡。制造商在锁内嵌入带唯一号码的 SIM 卡,通过 2G/3G/4G 网络与云端保持通信,实时上报车辆位置(GPS 信息)和锁定/使用状态。

智能车锁通信示意图
智能车锁通信示意图

二、芯片供电

通信模块需要电源。车身装有线圈装置,踏板转动时线圈切割磁感线产生电磁感应,为电池充电,实现自行车的发电供电。

发电装置原理图
发电装置原理图

三、扫码解锁

每辆车贴有唯一二维码。用户使用 APP 扫码后,APP 通过蓝牙获取二维码信息并将其发送至云端后台。云端下发解锁指令至车锁通信模块,车锁的控制单元驱动机电锁打开。

扫码解锁流程图
扫码解锁流程图

四、支付系统

云平台根据开锁和关锁时间计算骑行时长,匹配相应费用,并通过微信或支付宝的后台系统完成扣费。

五、蓝牙模块

在信号弱的郊区,SIM 卡无法收到云端指令导致开锁失败。此时通过蓝牙实现本地解锁:服务器将开锁密钥发送至用户手机,手机蓝牙配对后将密钥传给车锁,匹配成功后启动开锁程序。蓝牙无需网络,传输距离短、响应快,提升开锁成功率。

六、GPS 定位

1. 美团单车

APP 实时获取手机位置并在地图上显示轨迹。只要手机位于停车点 P,车可远程锁车;若手机不在 P 点,锁车指令失效。高楼密集区 GPS 误差可能导致手机上报位置偏离 P 点,触发违停扣费。

2. 青桔单车

APP 直接获取车载 GPS 位置。扫码开锁时,用户即使距离车十几米仍可成功开锁;关锁时同样距离外的用户操作,APP 同步显示行程结束。

七、物联网技术

共享单车常用的物联网通信方式包括 2G 通信模组、蓝牙和 NB‑IoT。NB‑IoT 具备覆盖更广、可连接设备更多、功耗更低的优势,正成为主流选择。

NB‑IoT 示例
NB‑IoT 示例

Code example

1.
我的私密学习小圈子,从0到1手撸企业实战项目~
2.
技术总监:公司不在乎你干了多少活!
3.
告别if-else噩梦:流程编排技术真的太香了!
4.
拼多多二面:为什么要使用 ElasticSearch?和传统关系数据库 MySQL 有什么不同?
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

BluetoothGPSIoTNB-IoTsmart lockshared bikes
Java Architect Handbook
Written by

Java Architect Handbook

Focused on Java interview questions and practical article sharing, covering algorithms, databases, Spring Boot, microservices, high concurrency, JVM, Docker containers, and ELK-related knowledge. Looking forward to progressing together with you.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.