I’ve bought your BT4502 modules and they seem to be great. I can successfully connect and transmit and receive TTM commands to my microcontroller (e.g. TTM:NAM-?\r\n\0 successfully returns my device name). I can also receive data from my bluetooth app when I send data to the FFE9 characteristic fine.
My problem however is sending the data from my microcontroller to my BLE app. I am listening in on FFE4 but I only seem to receive data sporadically, sometimes the data comes through, sometimes multiple data comes through. I’ve tried sending it with “\r\n\0”, “\r\n” or “\0” with no avail. What do I need to do to successfully send data from UART through BLE to my phone?
This is the line that I’m not sure about, when I want to transmit a string to my phone, what format do I need to send it as? do I need to pad it with anything?
Unfortunately I cannot answer to your question, because I am trying to get 4502 to work with Arduino.
But can you tell me how did you get it paired with BLE APP ? Any trick there, because I cannot do that.
You can select the relevant characteristics as they’re listed in the datasheet (FFE4 and FFE9). With these settings, I can communicate bidirectionally, the issue comes with sending data from my microcontroller to the app unfortunately.
Hi, I downloaded Serial Bluetooth Terminall APP and managed to go to Custom LE profile, but cannot figure out how to give those UUIDs. It is not possible to write anything to service UUID, if I click it, app tries to connect, but fails.
It appears that I have the same problem as you. You can send configuration commands (TTM) via Bluetooth, but trying to send something from MCU (I have Seeduino XIAO) via TX,RX fails.
I think someone in Seeedstudio should explain what is the problem here
This code needs to be modified a bit, as follows. @harris.shallcross@heikki728
1, the wakeup pin has to pull down the delay by about 3ms before sending data to the serial port
2, If you want faster data response, you can modify the connection interval a bit via the AT command. You can send this data to modify the parameters, do not immediately pull up after sending the data, also delay 1~3ms.
I’ve added delays between the high to low and low to high transition of 5ms. I can now receive data on my phone but it seems to receive twice and every two seconds, even though I’m sending it once and every one second.
You can see in the time stamps above that the first three messages are every second but then it becomes every two seconds.
I then tried to change the CIT to 20ms by sending the TTM command after I had connected and I still get the same issue - messages send after 2s and come in pairs!
Hi All,
I am also using this same module for my real time temperature update in to my android phone and i m having issues of lag from the data on serial terminal app, i try code with hm10 ,hc05 and other esp modules work fine without delay.
Why this module is giving me delay over the time?
Any idea or setting related to arduino programing