- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have created project and build an image following " Chapter 6A: Classic Bluetooth - The Wireless Serial Port Profile (SPP)" as attached.
The application is running and the device can be seen and paired. However, I could not see virtual serial ports listed on the COM (device manager).
From the trace, I could see the pairing process has no problem. The problem is connecting. I could not see the trace information from the three SPP callback functions,
spp_connection_up_callback, spp_connection_down_callback and spp_rx_data_callback when connecting. it seems that the "wiced_bt_spp_startup(&spp_reg);" has not been executed properly somehow. Or the spp.c file is not linked properly. I don't know.
I have run the snip.bt.spp demo. It works fine and a bluetooth virtual com can been seen.
These two projects should have similar application size after build. However, the eq_spp is smaller (4.7K) thant spp (6.1k). Is something not right with Wiced Studio IDE?
I have seen a similar post here, and has no answer for it.
Could you please have a look to see what is missing in my project.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I found this in the snip.bt.spp demo:
#if defined (CYW20706A2)
// Initialize RFCOMM. We will not be using application buffer pool and will rely on the
// stack pools configured in the wiced_bt_cfg.c
wiced_bt_rfcomm_init(MAX_TX_BUFFER, 1);
#endif
I added this initialisation into the project I created and it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What's your application? Could you develop your application based on the SPP demo?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have tried the demo SPP project. It works fine.
After this, I created this eq_spp project following the attached tutorial. I could not see a big difference between them. When I run eq_spp, it seems the SPP library has been started, but its three callback functions don't work, if I connect/disconnect it, as I could not see the trace information. The connect/disconnect seems no problem, as I can see on windows, the status of bluetooth changed from paired to connected.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I found this in the snip.bt.spp demo:
#if defined (CYW20706A2)
// Initialize RFCOMM. We will not be using application buffer pool and will rely on the
// stack pools configured in the wiced_bt_cfg.c
wiced_bt_rfcomm_init(MAX_TX_BUFFER, 1);
#endif
I added this initialisation into the project I created and it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's great! Thanks a lot for your sharing.