import sys;
import uuid;
s=uuid.uuid4().hex
#s="f6bc15e0939046679be1866ec8a199dc"
sys.stdout.write("UUID:\t\t"+s+"\n")
sys.stdout.write("Proximity UUID:\t"+s[0:8]+'-'+s[8:12]+'-'+s[12:16]+'-'+s[16:20]+'-'+s[20:]+"\n")
sys.stdout.write("Cmd:\t\thcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 "+
s[0:2] +' '+s[2:4] +' '+s[4:6] +' '+s[6:8] +' '+
s[8:10] +' '+s[10:12]+' '+s[12:14]+' '+s[14:16]+' '+
s[16:18]+' '+s[18:20]+' '+s[20:22]+' '+s[22:24]+' '+
s[24:26]+' '+s[26:28]+' '+s[28:30]+' '+s[30:32]+' '+
"00 00 00 00 C8 00\n")

最新文章

  1. MongoDB聚合运算之group和aggregate聚集框架简单聚合(10)
  2. PHP大文件存储示例,各种文件分割和合并(二进制分割与合并)
  3. android-exploitme(六):基础加密
  4. 20130909QA整理笔记
  5. bzoj 2588 Spoj 10628. Count on a tree(主席树)
  6. hdoj 2568 前进
  7. sgu Ice-cream Tycoon
  8. 超高性价比USB转CAN适配器,2500V工业级隔离,兼容ZLG软件
  9. UNIX网络编程卷1 时间获取程序server TCP 协议相关性
  10. 支付宝移动支付开发详细教程服务端采用.net mvc webapi(C#)
  11. ubuntu 常用命令记录
  12. linux 如何打包代码
  13. Node.js前言
  14. 如何打开hprof文件
  15. 对Java框架spring、hibernate、Struts的粗浅理解
  16. scheduleAtFixedRate 与 scheduleWithFixedDelay 的区别
  17. windows kafka 环境搭建踩坑记
  18. MySQL备份mydumper的原理【转】
  19. Ubuntu1404 开启定时任务 crontab
  20. Windows环境墙内搭建Go语言集成开发环境

热门文章

  1. POJ1985 树的直径(BFS
  2. 动态规划(DP)算法
  3. [Cracking the Coding Interview] 4.4 Check Balanced
  4. python2.7入门---运算符 &案例
  5. Hadoop学习(一) Hadoop是什么
  6. Java输出日历写法
  7. 第十篇 Python的字符串格式化
  8. 用node是踩过的一些坑
  9. 软工实践Beta冲刺(1/7)
  10. 【WebService】——CXF整合Spring