0
\$\begingroup\$

I'm hoping to build a simple bluetooth buzzer using a Serial Port BLE module: HM-10. When a slave connected to it, if the slave sends a certain predefined message, the buzzer sounds for one minute.

The HM-10 has PIO pins, so I'm guessing I could use one to power the buzzer. To control the buzzer (or the pins, in general), read the message, etc., would I need to reprogram the HM-10 entirely? That is, the AT interface should be no good and the HM-10 will need to be flashed - is that right? If so, what is the canonical approach to programming it? How about the CC Debugger?

Thanks

\$\endgroup\$
1
\$\begingroup\$

Communication devices that have a built-in GPIO bank typically include the ability to control those pins through whichever protocol they use to interface with the outside world. According to the datasheet for the HM-10 you just use standard AT commands.

On pages 9 and 10:

  1. Query/Set PIO pins output high or low (...)

    • AT+PIO [pin number] ? to query;
    • AT+PIO [pin number] [0 or 1] to set low or high.
| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Indeed. However, I'd like to read the message/command the slave sends to determine if the buzzer should sound. I don't think the AT interface supports that - am i right? \$\endgroup\$ – Kar Jul 2 '15 at 12:53
  • \$\begingroup\$ Ah, I see what you mean. Apolgies for misunderstanding your original question. You'll need an MCU connected to the master to decipher the UART messages and then turn on the buzzer. If you wanted the master device to turn on the buzzer, you'd have to get the slave to send the AT command. \$\endgroup\$ – CharlieHanson Jul 2 '15 at 13:06
  • \$\begingroup\$ Thanks. Could the HM10 not be (re) programmed/flashed though? \$\endgroup\$ – Kar Jul 2 '15 at 13:41
  • \$\begingroup\$ Yes - see the manufacturer's website. No - you'd have to have a custom firmware. \$\endgroup\$ – CharlieHanson Jul 2 '15 at 13:43
  • \$\begingroup\$ Can these AT commands be given remotely, via Bluetooth? For HC05 it appears you can't, is this different for HM10? \$\endgroup\$ – Bzazz Jul 1 '16 at 16:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.