-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAN NOT SEARCH THE BLUETOOTH DEVICE #3
Comments
Hi hitqiu, do you use smartphone as the peer? What about PC? On Wed, Apr 16, 2014 at 06:44:14PM -0700, hitqiu wrote:
Kind regards, |
Thank you for your response! |
Today,I add printf functin to the class_callback fuctions. when I insert the BT device to the board. It can detected the device attached ,device speed ,device desc available and assigned the address to the device. BUT it can not configure desc avaiable, detect manufacturer string, product string, serialnum string and enter the process of USB Enumeration. BUT when I insert USB disk to the board ,I can get the information as follows: |
On Thu, Apr 17, 2014 at 09:05:58PM -0700, hitqiu wrote:
This is unlikely. Have you properly patched the ST USB library? And what is your BT device exact model? What is "IR3011" (is it AR3011)? lsusb (or similar) info you attached may be misleading.
Kind regards, |
It is "AR3011". How to patch the ST USB library? The project can generate uubt_noos.bin file without patching the ST library? |
On Thu, Apr 17, 2014 at 09:55:35PM -0700, hitqiu wrote:
AR3011 needs to load firmware before it is operational, it is described in my README.
See my README, but reportedly it is the most weird part due to different library versions available or unavailable.
Probably, yes, unfortunately ;).
Kind regards, |
I can not open the website (http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f4discovery_fw.zip). provided by the READEME file. Is there any way to get the patch. |
Accurately,there is no fireware in the website. |
On Thu, Apr 17, 2014 at 10:37:34PM -0700, hitqiu wrote:
Kind regards, |
Thank you for your help. I have not been able to search for and connect to a Bluetooth device until I modify the ST lib. But how can I communicate with the board. For example, I want to send a string to the microcontroller. Which software do I need. There is some bluetoothspp app in google store. But it doesn't work. |
On Sun, Apr 20, 2014 at 11:30:32PM -0700, hitqiu wrote:
Nice to hear. If you have at least SPP working, I guess, you can ask for further help on BTStack list. Good luck and don't forget to report your success ;) P.S. Anyway, I suspect you will need to program your apps, probably on both sides of BT link.
Kind regards, |
I try to download the uubt-noos.bin which has been made by your uubt projecct to the STM32F4discovery board and use the printf funtion to print the information . The heartbeat clocks , usb_bsp_init,run_loop_init works very well. But my smart phone can not search for the bluetooth device on the stm32F4discovery. The cmd of "lsusb -v" gives the informations like this:
Bus 002 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 1 Bluetooth
bMaxPacketSize0 16
idVendor 0x0a12 Cambridge Silicon Radio, Ltd
idProduct 0x0001 Bluetooth Dongle (HCI mode)
bcdDevice 1.34
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 108
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x 0 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x 9 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x 9 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 2
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x 17 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 1
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x 17 bytes
bInterval 1
I think the usb dongle is the IR3011 and I guess it must be something wrong in the SDP , USB HOST_Init or run_loop add data source.
Can you give me some advice about how to fix the project.
Thank you for sharing the code.
The text was updated successfully, but these errors were encountered: