<?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>TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104412/twi-with-nrf-beacon</link><description>Hello Can TWI data be broadcast with nRFbeacon is it necessary to combine two sample codes in the sdk</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Nov 2023 12:41:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104412/twi-with-nrf-beacon" /><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/454912?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 12:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fed32f9-1610-4a86-bbf8-f86ce20d7166</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think the problem is the folder you are putting the example into. If you put the project folder at a different level in the SDK than I do then the source and include references in the project will fail.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The folder I use is this one:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;C:\nrf5\nRF5_SDK_15.2.0_9412b96\examples\_cust\315666_ble_app_beacon_twi_sensor_152&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Essentially the project directory needs to be located in one of the sub-directories to examples, no further up or down the directory tree.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The name of the sub-directory (&lt;em&gt;_cust&lt;/em&gt; in my case) can be whatever you like, it is only the directory level that is important.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/454836?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 07:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ae88c1a-9c3a-4423-bd95-35ffc78ada42</guid><dc:creator>Berkay Dudu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried the last project you sent in 15.2 but encountered the same errors. as in pictures&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nrf-15.2.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699515544853v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/454706?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 14:00:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957571b8-954a-46ef-bc8e-30dc18ec3ceb</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems I forgot you were using SDK version 15.2.0, sorry about that. I did the exercise of merging the beacon and twi_sensor examples again in v15.2.0:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/315666_5F00_ble_5F00_app_5F00_beacon_5F00_twi_5F00_sensor_5F00_152.zip"&gt;devzone.nordicsemi.com/.../315666_5F00_ble_5F00_app_5F00_beacon_5F00_twi_5F00_sensor_5F00_152.zip&lt;/a&gt;&lt;/p&gt;
[quote user="Berkay Dudu"]I tried this code &amp;quot;C:/Users/sdk/sdk/nRF5_SDK_15.2.0_9412b96/examples/components/libraries/log/src/nrf_log_backend_rtt.c does not exist.&amp;quot; error occurred but there is a c file in this folder[/quote]
&lt;p&gt;Which code did you try? The example I shared earlier?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that is the case, please try my latest version instead, it should work better.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/454425?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 11:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c29837-9419-4a4b-89e7-90fd6150ae9f</guid><dc:creator>Berkay Dudu</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I tried this code &amp;quot;C:/Users/sdk/sdk/nRF5_SDK_15.2.0_9412b96/examples/components/libraries/log/src/nrf_log_backend_rtt.c does not exist.&amp;quot; error occurred but there is a c file in this folder&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/trying.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/454385?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 10:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4e533ec-7f35-426f-a174-6b3c327c531e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to merge the twi_sensor example into the beacon example myself, and I have attached the resulting project:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/315666_5F00_ble_5F00_app_5F00_beacon_5F00_twi_5F00_sensor.zip"&gt;devzone.nordicsemi.com/.../315666_5F00_ble_5F00_app_5F00_beacon_5F00_twi_5F00_sensor.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To see what I have changed you can check the history in the local git repo.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Essentially it was necessary to make some changes to the sdk_config.h file, and add a couple of files to the project (such as nrf_drv_twi.c and nrfx_twim.c).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/454244?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 14:28:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d67e5f72-a4f8-4f70-aa81-926665150d42</guid><dc:creator>Berkay Dudu</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699280877533v1.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699280896620v3.png" alt=" " /&gt;&lt;span&gt;&lt;/span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1699280884992v2.png" alt=" " /&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/454167?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 11:08:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2746fdbf-5e9e-4901-8289-4720e2907b6f</guid><dc:creator>Berkay Dudu</dc:creator><description>&lt;p&gt;As you said hello, I found the TWİ_sensor project in the sdk, but when I tried to merge this project into the beacon project, I kept getting errors, I did the merging by making the sections shown in the images the same for both projects as in the images, and I wrote the codes, Is this merger correct&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/449317?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 09:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33721dee-82cb-4d8b-b075-cce9a8566f42</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is a twi_sensor example in the SDK showing how you can interface to a sensor over I2C. The example is based on the LM75B temperature sensor, but can be adapted to work with different sensors, and to be used with multiple sensors if needed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you can combine this with one of the Bluetooth examples in order to handle the forwarding of sensor data to the Bluetooth stack. There are many Bluetooth examples to choose from, which one to pick depends on your application requirement.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For instance, is broadcasting the information to many nRF52840 devices necessary, or will you only need to share it with one device?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Generally it is better to establish a connection with the device you want to exchange data with, as being in a connection makes communication much more reliable and efficient, compared to sending broadcast data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/449148?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2023 10:47:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:295043bb-644b-49a4-8ef5-d66afbd0496d</guid><dc:creator>Berkay Dudu</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I want to read data from multiple sensors using the TWI protocol and send this data to another NRF52840, the sensors have the I2C protocol. I am using SDK 15.2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI with nRF beacon</title><link>https://devzone.nordicsemi.com/thread/449139?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2023 09:40:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:474762f5-c340-413c-bbf4-881a10788621</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which SDK are you planning to use?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide a bit more details regarding what you are trying to do?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you reading some data from a sensor over TWI that you want to broadcast using the beacon sample?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>