element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MiniZed Hardware Design Help for Blue Tooth
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 323 subscribers
  • Views 287 views
  • Users 0 members are here
Related

Help for Blue Tooth

hugoliu56
hugoliu56 over 7 years ago

I use petalinux 2017.2 to generate the system.

Wifi is ok but Bluetooth not work. I use the bt.sh.

#To turn on BT_REG_ON, which is on EMIO GPIO #0
echo 960 > /sys/class/gpio/export
./bt_ttys2.sh: line 7: echo: write error: Device or resource busy
echo out > /sys/class/gpio/gpio960/direction
echo 1 > /sys/class/gpio/gpio960/value
#Set uart0 = serial1 = ttyPS1 baudrate:
#(this was for UART0 from PS) stty -F /dev/ttyPS1 115200
stty -F /dev/ttyS2 115200
sleep 1s
#For the flow control.
#It seems you have to send a character before RTS from the 1DX modulke will be set in the correct state.
#(this was for UART0 from PS) echo "W" > /dev/ttyPS1
echo "W" > /dev/ttyS2
sleep 1s
#Initialize the device:
#(this was for UART0 from PS) hciattach /dev/ttyPS1 bcm43xx 921600 flow -t 10
hciattach /dev/ttyS2 bcm43xx 3000000 flow -t 10
Initialization timed out.
sleep 2s
 
#Configure the right BT device:
hciconfig hci0 up
Can't get device info: No such device
 
#begin new
sleep 1s
random: crng init done
hciconfig hci0 reset
Can't get device info: No such device
hciconfig hci0 class 0x200404
Can't get device info: No such device
#for no password:
  #for no password:
  hciconfig hci0 sspmode 1
  Can't get device info: No such device
  hciconfig hci0 piscan
  Can't get device info: No such device
  hciconfig hci0 leadv
  Can't get device info: No such device
  hciconfig -a
  #end new
   
  sleep 1s
  #Scan for BT devices:
  hcitool scan
  Device is not available: No such device
  set +v
  *****************
  The kernel information as below:
 
   Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
 
   43c00000.serial: ttyS2 at MMIO 0x43c01000 (irq = 166, base_baud = 3000000) is a                       16550A
 
   e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 144, base_baud = 6249999) is a                       xuartps
 
   e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 145, base_baud = 6249999) is a                       xuartps
 
   console [ttyPS0] enabled
 
   console [ttyPS0] enabled
 
   bootconsole [earlycon0] disabled
 
   bootconsole [earlycon0] disabled
 
    
 
    

Please help me to solve it.

  • Sign in to reply
  • Cancel
  • stefanrousseau
    0 stefanrousseau over 6 years ago

    With the tools versions, the way GPIO is addressed has changed.  Please download the Using Bluetooth on MiniZed 2018.2

    document for 2017.4 or 2018.2 and look at the paragraph on playing audio over a Bluetooth Speaker.  The "get-gpio-offsets" utility can be used to discover the GPIO locations.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube