<?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>How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63354/how-to-inmplement-client-model-on-a-phone</link><description>Hi! 
 I met some issue ). 
 I use nrf mesh app on my phone and change it for my goals. I would like to get messages from nodes to phone via mesh. I read some posts that it is possible to implement client model on a phone and subscribe to server of nodes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Mar 2021 11:33:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63354/how-to-inmplement-client-model-on-a-phone" /><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/301403?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 11:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b409651-8dd0-4f51-9465-325971ce7533</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Another support engineer is already handling your case, I suggest you continue the case in the new ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/301292?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 17:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43d8ed49-b2ee-475d-86bc-f1def7ed16e3</guid><dc:creator>UdjinPr</dc:creator><description>&lt;p&gt;Hi! Could you help me with my new issue?&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73001/mesh-message-issue"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/73001/mesh-message-issue&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/263029?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 13:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e900f52e-0be1-4476-82a4-e1fd33801019</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In nRF Mesh for Android&amp;nbsp;you may send messages to a server on a remote Node just by sending messages to its Unicast Address or a Group Address. If you are sending a Acknowledged message, you should receive a status back. The phone&amp;#39;s Unicast Address is added to Proxy Filter list automatically when you send the first message, so the status should reach you. On contrary to iOS version,&amp;nbsp;where you&amp;#39;d have to implement a local client model, on Android version you need to organize your code on your own.&lt;/p&gt;
&lt;p&gt;To send a message, call&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/blob/81c6e9efec569d9dd9fa700ba9f96de7a2f05366/mesh/src/main/java/no/nordicsemi/android/mesh/MeshMngrApi.java#L211" rel="noopener noreferrer" target="_blank"&gt;createMeshPdu(int dst, MeshMessage meshMessage)&lt;/a&gt;. You should receive&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/blob/81c6e9efec569d9dd9fa700ba9f96de7a2f05366/mesh/src/main/java/no/nordicsemi/android/mesh/MeshStatusCallbacks.java#L95" rel="noopener noreferrer" target="_blank"&gt;onMeshMessageReceived(int src, MeshMessage meshMessage)&lt;/a&gt;&amp;nbsp;when you get the status message.&lt;/p&gt;
&lt;p&gt;It is a bit more difficult if it is the other Node that sends a message to you, as you need to make sure that the target address (unicast or group) is added to the Proxy Filer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/258461?ContentTypeID=1</link><pubDate>Sun, 05 Jul 2020 17:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d4bbdf9-f079-4f80-8f21-36148cb91e9a</guid><dc:creator>UdjinPr</dc:creator><description>&lt;p&gt;Thank you for your reply. I tried to do it, but i couldn&amp;#39;t achieve result. I have two provisioned nodes. First - proxy has onoff server. Second onoff client. Server receives messages from client, but phone doesn&amp;#39;t get any messages and events on onDataReceived().&lt;/p&gt;
&lt;p&gt;Also i tryed to adjust proxyfilter:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;         NodeConfigurationViewModel mViewModelProvisioned;
         mViewModelProvisioned = ViewModelProviders.of(this, mViewModelFactory).get(NodeConfigurationViewModel.class); 
         ProxyFilterType filterType = new ProxyFilterType((byte)0x00) ;

         ProxyFilter filter = new ProxyFilter(filterType);
         AddressArray adress = new AddressArray((byte)0x00,(byte)0x03);

         filter.addAddress(adress);
         mViewModelProvisioned.getMeshManagerApi().getMeshNetwork().setProxyFilter(filter);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/258395?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 17:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de55aba3-ad9d-409d-a808-60c85ae49887</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Sorry for the confusion. Seems like the local node I talked about is only implemented on the iOS version as of now. Like you said you have to implement this yourself.&lt;/p&gt;
&lt;p&gt;A suggestion from our developer:&lt;/p&gt;
&lt;div&gt;&lt;em&gt;They can just send messages, as if they had a node with elements.&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;Each time they send and message, the source unicastAddress is added to proxy filtr on the connected proxy. Add messages, that the proxy device will receive, will be relayed to gatt client.&lt;/em&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;em&gt;​&lt;/em&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;If they want additional addresses, or set filter to black list, they have to use proxy filter API&lt;/em&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/258361?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 14:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbda3343-ace0-4f4c-992e-6e72e112d271</guid><dc:creator>UdjinPr</dc:creator><description>&lt;p&gt;At the end I run app at the virtual devices, and I couldn&amp;#39;t see Phone tab&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2146._1104350437044B043C044F043D043D044B043904_.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/258356?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 14:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51fcd6d6-bc08-4eff-9105-728a913e2464</guid><dc:creator>UdjinPr</dc:creator><description>&lt;p&gt;I have download from GitHub latest version, but when i start it it shows error:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
    Process: no.nordicsemi.android.nrfmeshprovisioner, PID: 7448
    java.lang.RuntimeException: An error occurred while executing doInBackground()
        at android.os.AsyncTask$3.done(AsyncTask.java:353)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
        at java.util.concurrent.FutureTask.run(FutureTask.java:271)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)
     Caused by: java.lang.IllegalStateException: A migration from 10 to 9 was required but not found. Please provide the necessary Migration path via RoomDatabase.Builder.addMigration(Migration ...) or allow for destructive migrations via one of the RoomDatabase.Builder.fallbackToDestructiveMigration* methods.
        at androidx.room.RoomOpenHelper.onUpgrade(RoomOpenHelper.java:117)
        at androidx.room.RoomOpenHelper.onDowngrade(RoomOpenHelper.java:129)
        at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onDowngrade(FrameworkSQLiteOpenHelper.java:135)
        at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:297)
        at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:194)
        at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableSupportDatabase(FrameworkSQLiteOpenHelper.java:92)
        at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.java:53)
        at androidx.room.RoomDatabase.inTransaction(RoomDatabase.java:476)
        at androidx.room.RoomDatabase.assertNotSuspendingTransaction(RoomDatabase.java:281)
        at no.nordicsemi.android.mesh.data.MeshNetworkDao_Impl.getMeshNetwork(MeshNetworkDao_Impl.java:248)
        at no.nordicsemi.android.mesh.MeshNetworkDb$LoadNetworkAsyncTask.doInBackground(MeshNetworkDb.java:356)
        at no.nordicsemi.android.mesh.MeshNetworkDb$LoadNetworkAsyncTask.doInBackground(MeshNetworkDb.java:325)
        at android.os.AsyncTask$2.call(AsyncTask.java:333)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)&amp;#160;
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)&amp;#160;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)&amp;#160;
        at java.lang.Thread.run(Thread.java:764)&amp;#160;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/258336?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 13:22:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:407fd46b-e4af-483e-8b64-0f4f60847644</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Are you using the latest version of the app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/258334?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 13:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2971f4f4-9d85-4237-8d19-32015aef2723</guid><dc:creator>UdjinPr</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20200703_2D00_161713.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/258328?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 13:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7323de5-90f3-4bc8-8144-ed6de94597a4</guid><dc:creator>UdjinPr</dc:creator><description>&lt;p&gt;I have read&amp;nbsp;&lt;/p&gt;
[quote userid="15475" url="~/f/nordic-q-a/63354/how-to-inmplement-client-model-on-a-phone/258307"]&lt;a href="https://devzone.nordicsemi.com/support-private/support/251319" rel="noopener noreferrer" target="_blank"&gt;thread&lt;/a&gt;&amp;nbsp;[/quote]
&lt;p&gt;but in my tab only &amp;quot;Network, Groups, Proxy Filter, Setings&amp;quot; options. I cund&amp;#39;t find -&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;quot;Phone-&amp;gt;&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to inmplement Client model on a phone?</title><link>https://devzone.nordicsemi.com/thread/258307?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 12:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f76edeb-d016-46dc-95c9-a23de510ee66</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I use nrf mesh app on my phone and change it for my goals[/quote]
&lt;p&gt;What kind of changes have you made to the app?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you say &amp;quot;&lt;span&gt;subscribe to server of nodes to get messages&amp;quot;, do you mean status messages from the server?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;In our current nRF Mesh app, there is a local client model on the phone. Have a look at this &lt;a href="https://devzone.nordicsemi.com/support-private/support/251319" rel="noopener noreferrer" target="_blank"&gt;thread&lt;/a&gt;&amp;nbsp;on how you can receive status messages from server.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>