Internet Of Things Communications
  • Cover
  • Summary
  • About This Training
    • Objectives
    • Skills
    • Prerequisites
    • Requirements
  • Once Upon A Time ...
  • Introduction
    • Network Topologies
    • Software Defined Radio
    • Wireshark
    • Sub-1GHz Wireless
  • Connectivity
    • Serial
      • Laboratory
        • Linux and Arduino
    • Telephony
    • WiFi
      • WiFi HaLow
      • WiGig
    • Bluetooth
      • Architecture
        • Bluetooth Specifications
        • Bluetooth Low Energy
        • Bluetooth Smart Mesh
      • Protocol Stack
        • Linux
          • HCITool
          • BlueZ
          • L2Ping
          • SDPTool
          • GATTTool
          • BTMon
          • BTProxy
      • Development Boards
        • Intel Edison
        • Arduino
      • Laboratory
        • Serial Port Protocol
        • Linux and Arduino
        • Nordic
        • Virtual Keyboard
        • Reverse Engineering
        • Bluetooth Low Energy
    • Low-Power Wide-Area Networks
      • LoRa
      • SigFox
    • RFID
    • ZigBee
    • Z-Wave
    • Thread
    • HomeKit
    • Satellite
    • Near Field Communication
    • Neul
    • RF
  • Protocols
    • Web
    • Industrial Protocols
    • MQ Telemetry Transport
      • Mosca
      • Brokers
        • Mosquitto
        • VerneMQ
        • HiveMQ
      • Security
      • Applications
      • Laboratory
    • Advanced Message Queuing Protocol
    • Weave
    • Constrained Application Protocol
    • AllJoyn
    • XMPP
    • 6LoWPAN
    • ModBus
    • Others
    • Lightweight M2M
    • Cap'n Proto
    • IPv6
    • RPL
    • Very Simple Control Protocol
    • NATS
  • Libraries
    • ZeroMQ
  • Wrap-Up
    • Online Training
    • Challenge
  • SandBox
Powered by GitBook
On this page
  • HCITool
  • HCIConfig
  1. Connectivity
  2. Bluetooth
  3. Protocol Stack
  4. Linux

HCITool

PreviousLinuxNextBlueZ

Last updated 7 years ago

HCITool

root@edison:~# hcitool lescan
LE Scan ...
98:4F:EE:0F:80:FE BatteryMonitorSketch
98:4F:EE:0F:80:FE (unknown)
^Croot@edison:~#
root@edison:~# hcitool dev
Devices:
        hci0    98:4F:EE:04:1A:8C
root@edison:~#

HCIConfig

root@edison:~# hciconfig 
hci0:   Type: BR/EDR  Bus: UART
        BD Address: 98:4F:EE:04:1A:8C  ACL MTU: 1021:8  SCO MTU: 64:1
        DOWN 
        RX bytes:4219 acl:26 sco:0 events:120 errors:0
        TX bytes:3944 acl:24 sco:0 commands:75 errors:0

root@edison:~#
root@edison:~# hciconfig hci0 up
root@edison:~# hciconfig hci0 leadv 3
root@edison:~# hciconfig hci0 noscan
root@edison:~# hciconfig 
hci0:   Type: BR/EDR  Bus: UART
        BD Address: 98:4F:EE:04:1A:8C  ACL MTU: 1021:8  SCO MTU: 64:1
        UP RUNNING 
        RX bytes:4866 acl:26 sco:0 events:156 errors:0
        TX bytes:4696 acl:24 sco:0 commands:111 errors:0

root@edison:~#
root@edison:~# hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 E2 0A 39 F4 73 F5 4B C4 A1 2F 17 D1 AD 07 A9 61 00 00 00 00 C8 00
root@edison:~#
Adafruit Learn HCITool