# bluetooth **Repository Path**: lothink/bluetooth ## Basic Information - **Project Name**: bluetooth - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-24 - **Last Updated**: 2023-09-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 运行环境搭建 ```shell # 在同一目录下clone工程 git clone https://gitee.com/lothink/libgm-c.git git clone https://gitee.com/lothink/bluetooth.git # 若系统未安装git工具,Ubuntu使用apt-get按照,centos使用yum按照 sudo apt-get install git # Ubuntu sudo yum install git # centos # 执行编译脚本,编译工程依赖的SM2、SM3、SM4实现动态库 cd libgm-c chmod +x compile_script.sh ./compile_script.sh cd - ``` ## 编译目标程序 ```shell cd bluetooth mkdir build cd build cmake .. make ``` 按照以上指令顺序执行生成两个可执行文件,bluetooth_module(车载蓝牙模块程序)、mobile_terminal(移动终端应用)。先运行bluetooth_module程序,该程序会以16进制的方式打印伪PIN码,该字符将作为mobile_terminal的输入。