<?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>Modify Asset Tracker v2 without AWS (NCS v1.5.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72242/modify-asset-tracker-v2-without-aws-ncs-v1-5-0</link><description>Hi. 
 Is it possible to modify the Asset Tracker v2 example to work without AWS entirely in NCS v.1.5.0? or is it a lost cause? 
 Was thinking about combining UDP samples for communication with a private server. 
 
 Have tried turning off some of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Mar 2021 09:42:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72242/modify-asset-tracker-v2-without-aws-ncs-v1-5-0" /><item><title>RE: Modify Asset Tracker v2 without AWS (NCS v1.5.0)</title><link>https://devzone.nordicsemi.com/thread/298295?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 09:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31f5441c-03b1-482e-af92-c32579d23208</guid><dc:creator>patricab</dc:creator><description>&lt;p&gt;Hi. Sorry for the long reply.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Found a patch that solved my problem:&amp;nbsp;&lt;a href="https://github.com/simensrostad/fw-nrfconnect-nrf/commit/c07fe56cf477f9a27bef22fb66c071fd10de0769"&gt;https://github.com/simensrostad/fw-nrfconnect-nrf/commit/c07fe56cf477f9a27bef22fb66c071fd10de0769&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Yep, running a local LWM2M server that I want to connect to. Looking into the coap_client sample right now.&lt;/p&gt;
&lt;p&gt;I have to modify the data module to send data through CoAP to my LWM2M server, but it should be doable.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify Asset Tracker v2 without AWS (NCS v1.5.0)</title><link>https://devzone.nordicsemi.com/thread/297534?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 13:37:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20316ad8-fc1d-44a4-9d7b-3aff463a8beb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="patricab"]My bad. Was planning on setting up a connection to a private server using CoAP. I wanted to add this a module in the Asset Tracker v2 example, since I need a lot of the functionality&amp;nbsp;that the example uses for my own project.[/quote]
&lt;p&gt;I still think you&amp;#39;re going down the least easy path here. If you provide more information towards the specific server/service you&amp;#39;re planning to connect to, I might be able to give you better advice.&lt;/p&gt;
&lt;p&gt;Which web service are you going to connect to? If its a private server that uses CoAP, you might want to look at the &amp;quot;coap_client&amp;quot; sample. Is this a LWM2M server you&amp;#39;re connecting to? LWM2M uses CoAP, and adds logic on top.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify Asset Tracker v2 without AWS (NCS v1.5.0)</title><link>https://devzone.nordicsemi.com/thread/297456?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 11:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e473364b-7176-43f5-ada1-0ac0f9922c45</guid><dc:creator>patricab</dc:creator><description>&lt;p&gt;I also get this error message after running west build with most of the AWS IoT settings turned off in prj.conf&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;FAILED: zephyr/zephyr_prebuilt.elf
cmd.exe /C &amp;quot;cd . &amp;amp;&amp;amp; C:\Users\patricab\ncs\v1.5.0\toolchain\opt\bin\arm-none-eabi-gcc.exe    @CMakeFiles\zephyr_prebuilt.rsp  -o zephyr\zephyr_prebuilt.elf  &amp;amp;&amp;amp; cd .&amp;quot;
Memory region         Used Size  Region Size  %age Used
           FLASH:      145152 B     409088 B     35.48%
            SRAM:       67216 B     178968 B     37.56%
        IDT_LIST:         152 B         2 KB      7.42c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(cloud_module.c.obj): in function `cloud_wrap_event_handler&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/cloud_module.c:238: undefined reference to `cloud_codec_decode_config&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(cloud_module.c.obj): in function `connect_cloud&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/cloud_module.c:422: undefined reference to `cloud_wrap_connect&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(cloud_module.c.obj): in function `setup&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/cloud_module.c:452: undefined reference to `cloud_wrap_init&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(cloud_module.c.obj): in function `config_send&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/cloud_module.c:341: undefined reference to `cloud_wrap_state_send&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(cloud_module.c.obj): in function `config_get&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/cloud_module.c:359: undefined reference to `cloud_wrap_state_get&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(cloud_module.c.obj): in function `batch_data_send&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/cloud_module.c:371: undefined reference to `cloud_wrap_batch_send&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(cloud_module.c.obj): in function `ui_data_send&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/cloud_module.c:389: undefined reference to `cloud_wrap_ui_send&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(cloud_module.c.obj): in function `data_send&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/cloud_module.c:323: undefined reference to `cloud_wrap_data_send&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(data_module.c.obj): in function `config_send&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/data_module.c:589: undefined reference to `cloud_codec_encode_config&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(data_module.c.obj): in function `data_send&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/data_module.c:510: undefined reference to `cloud_codec_encode_data&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/data_module.c:547: undefined reference to `cloud_codec_encode_batch_data&amp;#39;
c:/users/patricab/ncs/v1.5.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: app/libapp.a(data_module.c.obj): in function `data_ui_send&amp;#39;:
C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build/../src/modules/data_module.c:620: undefined reference to `cloud_codec_encode_ui_data&amp;#39;
collect2.exe: error: ld returned 1 exit status
%
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: &amp;#39;C:\Users\patricab\ncs\v1.5.0\toolchain\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;C:\Users\patricab\ncs\v1.5.0\nrf\applications\asset_tracker_v2\build&amp;#39;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify Asset Tracker v2 without AWS (NCS v1.5.0)</title><link>https://devzone.nordicsemi.com/thread/297190?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 13:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a3bd86a-35a9-4645-bfa3-e4ba7fa9e664</guid><dc:creator>patricab</dc:creator><description>&lt;p&gt;Thank you for the reply &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My bad. Was planning on setting up a connection to a private server using CoAP. I wanted to add this a module in the Asset Tracker v2 example, since I need a lot of the functionality&amp;nbsp;that the example uses for my own project.&lt;/p&gt;
&lt;p&gt;But I also need to disable the AWS functionality, since I won&amp;#39;t be needing AWS as a cloud communication service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modify Asset Tracker v2 without AWS (NCS v1.5.0)</title><link>https://devzone.nordicsemi.com/thread/297182?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 12:57:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0251954a-2b8b-4ba4-a9de-a18384a2e916</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is it possible to modify the Asset Tracker v2 example to work without AWS entirely in NCS v.1.5.0? or is it a lost cause?[/quote]
&lt;p&gt;The purpose of the asset tracker is to show communication towards nrfcloud. If you need to use another protocol towards another server, especially if udp based, I do not think this is the easiest path to obtain that goal. What is the end goal here, ie. which server or service are you going to communicate with?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basic UDP connection can be setup with only a few lines of socket based code, like shown in this example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/nrf9160/udp/src/main.c"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/samples/nrf9160/udp/src/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>