<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>several uart device send data to one android phone simultaneously</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10930/several-uart-device-send-data-to-one-android-phone-simultaneously</link><description>Sorry，my English is poor. I
Now,I have four uart BLE device. Every device sends data in frequency 20Hz. And I also have a android phone. I hope that the phone could receive the data from the four devices simultaneously.
I read this question link text</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Dec 2015 01:36:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10930/several-uart-device-send-data-to-one-android-phone-simultaneously" /><item><title>RE: several uart device send data to one android phone simultaneously</title><link>https://devzone.nordicsemi.com/thread/40859?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2015 01:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29bcc861-32c6-4d00-9e76-15ae0b65cc09</guid><dc:creator>mosiyao</dc:creator><description>&lt;p&gt;Thank you very much. &amp;quot;Other error&amp;quot; means basic android rules, not bluetooth. I copy the code of enableTXNotification() and put the copy in enableTXNotification(), and I change  names &amp;quot;RxService2, mBluetoothGatt2, TxChar2, descriptor2&amp;quot;.But I use the same action string. I didn&amp;#39;t receive anything.
I&amp;#39;ll try out more. Thanks for your suggestions.-.-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: several uart device send data to one android phone simultaneously</title><link>https://devzone.nordicsemi.com/thread/40860?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2015 13:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51e5cf97-d923-45f8-b9ca-e16cf5fb6781</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mosiyao:&lt;/p&gt;
&lt;p&gt;Could you let me know which error did you have as you mentioned &amp;quot; I neglect other error&amp;quot;.&lt;/p&gt;
&lt;p&gt;Have you made sure you have enabled CCCD (call enableTXNotification() ) on both devices ?&lt;/p&gt;
&lt;p&gt;Also when you fetch the event to  broadcastUpdate, you need to have  a way to distinguish between two device (you can use different action string)&lt;/p&gt;
&lt;p&gt;If you try to read a  characteristic&amp;#39;s value, would you receive any value ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: several uart device send data to one android phone simultaneously</title><link>https://devzone.nordicsemi.com/thread/40861?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2015 10:55:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45d66075-4186-458a-9fea-9618312d6e97</guid><dc:creator>mosiyao</dc:creator><description>&lt;p&gt;Thanks for your reply. The code of nrfUARTv2.apk, there is a mDevice(BluetoothDevice), a mBluetoothGatt(BluetoothGatt) and a mGattCallback(BluetoothGattCallback).
So I copy it and use the mDevice2, mBluetoothGatt2 and mGattCallback2 to connect another BLE device. The two GattCallback use the same broadcastUpdate. Maybe my android skill is not good, so I neglect  other error. And another question, &amp;quot;simultaneously&amp;quot; means really simultaneously or in turn.Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: several uart device send data to one android phone simultaneously</title><link>https://devzone.nordicsemi.com/thread/40858?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2015 10:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14311a93-510d-4742-b4dd-af9159c42c23</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi, I don&amp;#39;t think there is anything &amp;#39;tricky&amp;#39; to be done. It should work as you described. You scan for devices, connect to the first one and provide a callback object, then connect to another one and give a different callback object (it may be a second object of the same class, I don&amp;#39;t know if it can be the same object), and repeat it for all your devices.
Enable notifications for all devices, remember to keep all BluetoothGatt instances, as you have to send 0x0100 to a descriptor on each of them.
Maybe you passed the same callback object in connectGatt method and that&amp;#39;s why it&amp;#39;s not working? It&amp;#39;s hard to say without a code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>