# Help in bluetooth communication with CHR-UM6

**URL:** https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829
**Category:** Wireless and radio
**Created:** [February 28, 2014, 4:49am UTC](https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829 "2014-02-28T04:49:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![rai](https://forum.pololu.com/letter_avatar_proxy/v4/letter/r/67e7ee/32.png) [@rai](https://forum.pololu.com/u/rai)
#### Post date: [February 28, 2014, 4:49am UTC](https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829/1 "2014-02-28T04:49:30Z")

</div>

hi

i want to communicate my um6 to pc via bluetooth (EGBT-045MS) vice versa. in usb to rs232(serial com) it work perfectly i get what i expected. but when i transfer it via bluetooth, the um6 cant receive data through the bluetooth but i can transmit data from um6 to bluetooth. the bluetooth can send the packet but the receiver of um6 cant receive or cant recognize what the data has been sent. need ur help badly!  
this is how the packet sent through um6.  
(ignore the request\_data)

```auto

unsigned char connect_data[]={'s','n','p',0,200,2,25};	
void CBluetoothDlg::Serial_USARTSend(void)
{
	int i;
	DWORD size;

	for(i=0; i<7; i++)
	{
		if(isConnected) // for request
		{
		test.SendData(&m_hComm, &size, request_data[i]);
		Sleep(10);
		}
		else // for connect
		{
		test.SendData(&m_hComm, &size, connect_data[i]);
		Sleep(10);
		}
	}	

}
```

---

<div class="post-metadata">

### Author: ![JeremyT](https://forum.pololu.com/user_avatar/forum.pololu.com/jeremyt/32/540_2.png) [@JeremyT](https://forum.pololu.com/u/JeremyT)
#### Post date: [February 28, 2014, 11:10pm UTC](https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829/2 "2014-02-28T23:10:49Z")

</div>

Hello.

I am sorry you are having problems using your UM6 sensor. Could you tell us more about your setup? How do you have the Bluetooth modules connected? Could you post pictures of your setup?

- Jeremy

---

<div class="post-metadata">

### Author: ![rai](https://forum.pololu.com/letter_avatar_proxy/v4/letter/r/67e7ee/32.png) [@rai](https://forum.pololu.com/u/rai)
#### Post date: [March 1, 2014, 4:17am UTC](https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829/3 "2014-03-01T04:17:28Z")

</div>

hi jeremy,

the setup on this bluetooth module(EGBT-045MS) and the um6-sensor.  
the bluetooth module is in usart.  
same baudrate = 38400  
all connections are good (tested already)  
TTL level works perfectly (3.3v)  
they have common ground  
supply voltage 3.7v  
the program in bluetooth is tested via the PROTEUS(ISIS) simulation.

 ![](https://forum.pololu.com/uploads/default/original/2X/2/269571c4a88d40a4ddf0804cf4bcb222c96f98b0.jpg)  

setup on the USB to rs232 cable with the serial breakout board of the um6-sensor and the um6-sensor.

same baudrate = 38400  
all connections are good (tested already)  
TTL level works perfectly (3.3v)  
they have common ground  
regulated ac/dc adaptop supply voltage 4.5v

 ![](https://forum.pololu.com/uploads/default/original/2X/2/2b3c0f88ccc7969ac71d38b48ca71f8aed23521d.jpg)  

the problem is that the um6-sensor received garbage data from the bluetooth module.  
but in the serial connection using the USB to rs232 cable as shown in the image. it worked perfectly as what we expected to come out. and about the code we used the open um6-source code and for the bluetooth part we get the idea from the open um6-source code. any one have idea what’s the cause of the problem?

---

<div class="post-metadata">

### Author: ![JeremyT](https://forum.pololu.com/user_avatar/forum.pololu.com/jeremyt/32/540_2.png) [@JeremyT](https://forum.pololu.com/u/JeremyT)
#### Post date: [March 3, 2014, 11:56pm UTC](https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829/4 "2014-03-03T23:56:53Z")

</div>

Thank you for the photos. It is still not clear how you are sending commands via Bluetooth to your UM6. Could you post more information about the Bluetooth module that is connected to the computer? Also, could you tell me how you tested the Bluetooth module that is connected to the UM6?

- Jeremy

P.S. Your Bluetooth module looks awesome. I would definitely like to hear more details about it (it looks like you might have salvaged an old cell phone for power).

---

<div class="post-metadata">

### Author: ![rai](https://forum.pololu.com/letter_avatar_proxy/v4/letter/r/67e7ee/32.png) [@rai](https://forum.pololu.com/u/rai)
#### Post date: [March 10, 2014, 6:21am UTC](https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829/5 "2014-03-10T06:21:31Z")

</div>

Hi Jeremy,

Sorry for the late response,after many times of testing and troubleshooting, we found that the problem is in the baudrate of the bluetooth which we though it is 38400 but it is 9600. thank you for your response.

-Rai

P.S. about the bluetooth we used EGBT 045-MS. YES, we used a cellphone battery as our supply since it has the specific volts we need and it is rechargable and it is recycle, so less cost =))…about the casing, we just salvage it.

---

<div class="post-metadata">

### Author: ![JeremyT](https://forum.pololu.com/user_avatar/forum.pololu.com/jeremyt/32/540_2.png) [@JeremyT](https://forum.pololu.com/u/JeremyT)
#### Post date: [March 10, 2014, 11:51pm UTC](https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829/6 "2014-03-10T23:51:21Z")

</div>

Thanks for letting us know. I am glad you were able to figure it out and get it working.

- Jeremy

---

<div class="post-metadata">

### Author: ![mhobbies](https://forum.pololu.com/letter_avatar_proxy/v4/letter/m/e36b37/32.png) [@mhobbies](https://forum.pololu.com/u/mhobbies)
#### Post date: [May 23, 2014, 11:31am UTC](https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829/7 "2014-05-23T11:31:48Z")

</div>

Good information about the Bluetooth module that is connected to the computer?

---

<div class="post-metadata">

### Author: ![JeremyT](https://forum.pololu.com/user_avatar/forum.pololu.com/jeremyt/32/540_2.png) [@JeremyT](https://forum.pololu.com/u/JeremyT)
#### Post date: [May 23, 2014, 10:33pm UTC](https://forum.pololu.com/t/help-in-bluetooth-communication-with-chr-um6/6829/8 "2014-05-23T22:33:49Z")

</div>

Hello.

> [@mhobbies](#):
>
> Good information about the Bluetooth module that is connected to the computer?

I’m not sure if I understand your question. Are you looking for more information on the Bluetooth module the original poster used?

- Jeremy
