Can't communicate with HM-10 BLE module

Actually, I did communicate with the module and did an AT+Baud and the Baud rate was not 9600, so sent AT+BAUD0 to set it. Now I can't communicate with it. The program prints AT Commands, which is sent by the program with 9600 baud set, but if I type any AT commands nothing is received back from the module. Unfortunately I did not write the baud rate down when I first connected and I'm sure it wasn't a standard value, that I can send via the Arduino serial port.
What are the EN and STATE pins for?
The EN pin looks like an input and STATE is output.
How can I reset this so I can communicate again?
Can it be done with the EN pin?

I think AT commands are sent at 9600. It doesn't matter what the communications speed is, you just reset it. The STATE pin is for a LED which I believe follows the onboard one. The EN pin is redundant. You might find a little button switch adjacent, and the same applies. Check your wiring.

But how do I know it is communicating with the module, as the Arduino serial console displays nothing after I have typed in an AT command?

Before I changed things it sent a reply to the serial console.

Don't understand why I can't see the reply as a result of my AT command!

Two options are:

  1. improper command, and Bluetooth ignores it.
  2. improper wiring, and Bluetooth doesn't receive it.

I'm not familiar with HM-10, and can only say that baud rate should be the least of your problems. The Hm-10 will probably be just as particular about the command, caps, cr, lf, as any other bluetooth.

I can connect with it on my iPhane, with an App LightBlue by Punch Through, but not sure how to send commands, it seems as though you send hex code to the UUID.
Its easier with the Arduino serial port.

Has anyone got some code that I can test the device?

For an introduction the HM-10 with examples for Android (sorry, no IOS) have a look at HM-10 Bluetooth 4 BLE Modules

A great rundown on the HM-10! But alas I still have problems!
I purchased 2 new genuuine HM-10's and copied the basicSerial_003 code and wired it as suggested with potential divider and connected with BLE Scanner on my iPhone.
Connected OK, but as soon as I typed AT and send, it immediately disconnected. I triple checked my wiring and it's correct?
Why is this happening?
I don't seem to get off the first base!
Eventually, I want to design a device to turn lights on and off wit my iPhone.
Please help?

Martin replied to a comment I made on his webpage:

When there is a connection “AT” will break the connection. Normally it will not give any response or reply.
To get a response use “AT+NOT1″. Then when the connection is lost or broken the HM-10 will issue “AT+LOST”

However, I still do not get any response, even when I disconnect, which it should after entring "AT+NOT1".

If I type into the BLE Scanner app on my iPhone using Custom Service, I get a responce on the Arduino serial port. I typed "Hello" and it appeared in the serial monitor.
I am obviously communicating with the module, so why does the Arduino serial port not respond to AT commands as shown in Martins article?

Problem solved!
You did not make clear in your article that the module had to be DISCONNECTED, for the Arduino to use the serial monitor.
Now I can get on with working out how to use the module to switch lights on and off.

Any suggestios for the code would be appreciated.