BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY OF PI

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
vwaterson
 
Posts: 72
Joined: Thu Oct 11, 2018 3:47 pm

Re: BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY O

Post by vwaterson »

I need some more help, please. Acting on your last post response I cleared the cache on the ipad and that had no response. Then I could no longer communicate with the BluefruitLE module and had to implement the Factory Reset to enable the Ipad and BlueFruit to communicate.

I am not sure I fully understand which sketch I should be using so I would be grateful if you could tell me which of the sub-menu's listed below I should be using-

1: Atcommand
2: Battery
3: Beacon
4: Bluart cmdmode
5: Blueart datamode
6: Callbacks
7: Callback di
8: Controller
9: Cplay-neopixel picker
10: Eddystone
11:Factory reset
12: Feather tester
13: Healthshield monitor
14: Heartrate monitor
15: Hidcontrolkey
16:Hidekeyboard
17:Hidmouse
18:Midi
19: Ndof-hno 055
20: Neopixel_picker_Picker
21: Numdata
22:Throughput
23: urbeacon

I have attached a photo of the above and have numbered the different options to save you time so that you can just advise me on which numbered option I should use.

I have also attached a photo of the iPad screen MODE menu. Please advise which of these MODE's I should be using.

Also you requested a photo of my wiring of the BlueFruitLE to the Arduino UNO. I sent you a photo with each cable color coded and also an excel PDF showing all the pins connected. However you responded by asking me to check if I had all the right pins connected for the SPI Hardware version even though I had sent you the details. Please be kind enough to review the photo and list and advise if I have the Bluefruit and the UNO connected correctly.

Thanks very much for your help which is most appreciated.
Attachments
Bluefruit APP Display on IPad showing Modes.JPG
Bluefruit APP Display on IPad showing Modes.JPG (81.08 KiB) Viewed 152 times
Adafruit BluefruitLE nRf51 Sub-Menus.JPG
Adafruit BluefruitLE nRf51 Sub-Menus.JPG (94.53 KiB) Viewed 152 times

User avatar
adafruit_support_carter
 
Posts: 29471
Joined: Tue Nov 29, 2016 2:45 pm

Re: BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY O

Post by adafruit_support_carter »

Your wiring looks correct:
wiring.jpg
wiring.jpg (184.9 KiB) Viewed 141 times
and matches what you've shown for your setup code.

The first sketch to try does not involve pairing with a device. It simply makes sure the Metro and the SPI BLE breakout are talking to each other. That sketch is 1: Atcommand. It should work as shown here:
https://learn.adafruit.com/introducing- ... /atcommand

If that works, then you can proceed to try the next sketch which does pair with a device and then simply passes text back and forth. That sketch is 4: Bluart cmdmode. It should work as shown here:
https://learn.adafruit.com/introducing- ... ut/bleuart

User avatar
vwaterson
 
Posts: 72
Joined: Thu Oct 11, 2018 3:47 pm

Re: BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY O

Post by vwaterson »

Thank you. Both of the AT and Command Modes Work. I wish to be able to send a command to (i.e High or Low) and read a condition from (High or Low) on any Pin on the Arduino from the Ipad. Which Sketch do I use for that?

User avatar
adafruit_support_carter
 
Posts: 29471
Joined: Tue Nov 29, 2016 2:45 pm

Re: BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY O

Post by adafruit_support_carter »

We may not have a complete sketch that does all of that. You can see one example of going from phone-to-metro in the controller sketch, 8: Controller. With that sketch you can run the Control Pad Module on the interface:
https://learn.adafruit.com/introducing- ... dule-13-20
and send button presses.

Here's is the part of the code that receives the button presses:
https://github.com/adafruit/Adafruit_Bl ... r.ino#L197

User avatar
vwaterson
 
Posts: 72
Joined: Thu Oct 11, 2018 3:47 pm

Re: BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY O

Post by vwaterson »

Thank you the Command works fine. Which sketch do I use to operate the Pin I/O module from the Ipad so that I can change a pin status from Input to Output and change the Output status from High to Low or vice versa?

thanks for your help

User avatar
adafruit_support_carter
 
Posts: 29471
Joined: Tue Nov 29, 2016 2:45 pm

Re: BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY O

Post by adafruit_support_carter »

For that, use this guide:
https://learn.adafruit.com/bluefruit-le-connect/
Which discusses a different library which is used:
https://learn.adafruit.com/bluefruit-le ... and-config

User avatar
vwaterson
 
Posts: 72
Joined: Thu Oct 11, 2018 3:47 pm

Re: BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY O

Post by vwaterson »

Thanks for your recommendations. I uploaded the BluefruitLE_nfr51822 and made the necessary changed to Config.h however in the main part of the sketch the Adafruit help instructions prompts me to copy various block os code such as this one-

// Create the bluefruit object, either software serial...uncomment these lines
/*
SoftwareSerial bluefruitSS = SoftwareSerial(BLUEFRUIT_SWUART_TXD_PIN, BLUEFRUIT_SWUART_RXD_PIN);

Adafruit_BluefruitLE_UART ble(bluefruitSS, BLUEFRUIT_UART_MODE_PIN,
BLUEFRUIT_UART_CTS_PIN, BLUEFRUIT_UART_RTS_PIN);
*/

/* ...or hardware serial, which does not need the RTS/CTS pins. Uncomment this line */
// Adafruit_BluefruitLE_UART ble(BLUEFRUIT_HWSERIAL_NAME, BLUEFRUIT_UART_MODE_PIN);

/* ...hardware SPI, using SCK/MOSI/MISO hardware SPI pins and then user selected CS/IRQ/RST */
Adafruit_BluefruitLE_SPI ble(BLUEFRUIT_SPI_CS, BLUEFRUIT_SPI_IRQ, BLUEFRUIT_SPI_RST);

/* ...software SPI, using SCK/MOSI/MISO user-defined SPI pins and then user selected CS/IRQ/RST */
//Adafruit_BluefruitLE_SPI ble(BLUEFRUIT_SPI_SCK, BLUEFRUIT_SPI_MISO,
// BLUEFRUIT_SPI_MOSI, BLUEFRUIT_SPI_CS,
// BLU

It is not clear to me how to use this code-
1. Is this to replace existing code in the main sketch?
2. If the answer to (1) is YES then which code in the main sketch needs to be deleted and replaced by the above code?
3. If the answer to (1) is NO then where should the above code be inserted in the main sketch?

Thanks for yur help.

User avatar
adafruit_support_carter
 
Posts: 29471
Joined: Tue Nov 29, 2016 2:45 pm

Re: BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY O

Post by adafruit_support_carter »

You shouldn't need to copy in new code, just change the code that is there. You'll want to comment out some lines - the ones that don't apply to your setup. And you'll want to uncomment some others - the ones that do apply.

But I think you should be able to use it as is. The example sketch already has the hardware SPI version uncommented:
https://github.com/adafruit/Adafruit_BL ... 22.ino#L84
and the other config pins match what you've done:
https://github.com/adafruit/Adafruit_BL ... nfig.h#L44

User avatar
vwaterson
 
Posts: 72
Joined: Thu Oct 11, 2018 3:47 pm

Re: BLUEFRUIT LE I/O MODE -NO RESPONSE TO CAPABILITY QUERY O

Post by vwaterson »

Thanks

I have made changes to the config.h as suggested and selected the SPI hardware from the main sketch. The good news is that I can now control and receive data from the Arduino on the Ipad Pin I/O mode which now works.

Thanks for your help which is much appreciated.

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”