<?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>Problems with the UBLOX&amp;#39;s connectivity</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58157/problems-with-the-ublox-s-connectivity</link><description>I was trying to connect my cellphone tu the ublox modulo for sends at commands from my cell, in the main program of the micro I&amp;#39;ve the next lines for turn on the ublox module: 
 nrf_gpio_cfg_output(UBLOX_RST_PIN);//activar buffer del modem nrf_gpio_cfg_output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Feb 2020 17:03:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58157/problems-with-the-ublox-s-connectivity" /><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/236970?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 17:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdcb8c83-5aab-4b6d-9da0-f9634bfbbfc0</guid><dc:creator>Denis Rustak</dc:creator><description>&lt;p&gt;There are a couple of things on how the power pin for this device needs to be driven.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;Most cell data modules treat the power pin as if it were a user-activated button like what you find on a cell phone -- push-and-release to turn on, push-and-release to turn off.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The SARA-R410M is like that (but particularly bad to be honest).&amp;nbsp; On startup, you should have the reset line and the power pins high (actually, open drain but the Boron has open drain drivers so you can use normal outputs).&amp;nbsp; If coming from a clean/cold start, the R410M will be off.&amp;nbsp; Give it a second or two and then drive the power pin low for *3 seconds*, then bring it back high.&amp;nbsp; That should power the modem on and in the next second or two it should respond to AT commands.&lt;/p&gt;
&lt;p&gt;To power it off, repeat the process of driving the power pin low for 3 seconds, then back high/open.&amp;nbsp; This will turn it off.&lt;/p&gt;
&lt;p&gt;This gets funky if you reset the processor without power cycling as the modem will still be on and the power-on sequence now turns it *off*.&amp;nbsp; There are different ways to take handle this problem.&amp;nbsp; The Particle Boron has a sense input that detects if the module is already powered up (p0.02 IIRC but check).&amp;nbsp; If you read it and it&amp;#39;s high, you know you can skip the power-on sequence.&lt;/p&gt;
&lt;p&gt;Once power-on works, you&amp;#39;ll still bump into a few issues getting the Boron to work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The first is that when you power the device on and off, it will generate bad data on the UART lines which cause framing errors for the NRF.&amp;nbsp; The NRF app_uart library&amp;nbsp;does not handle these well.&amp;nbsp; Initializing the uart after power up can help here, as can a call to uart_unit, but&amp;nbsp;the newer serial libraries are a better choice and have nice buffers to boot.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, the R410M does not support handshaking but still needs the RTS line grounded so you have to configure the port with HWFC disabled and then ground RTS yourself. Because of this, buffer overflows are something you need to address at the application level.&amp;nbsp; This isn&amp;#39;t a big deal if you avoid using the USODL mode and stick to USORD calls when you need to get data.&lt;/p&gt;
&lt;p&gt;Finally, the R410M needs to have the DTR pin grounded for it to send URC&amp;#39;s to the processor (such as USOCL !).&amp;nbsp; The folks at Particle decided not to do that (wut?) so getting notifications of things like disconnections, new data and the like are needlessly challenging.&amp;nbsp; They also ship older firmware in their modems (units bought 2 months ago have firmware from Feb 2018) so upgrading them isn&amp;#39;t a bad idea if you&amp;#39;re looking for reliability.&lt;/p&gt;
&lt;p&gt;Sorry for the length of this; I wrote it in bouts and it turned into a blog post!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/236886?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 13:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20301db9-41e8-4f09-9f9e-dba0b745ced6</guid><dc:creator>Victor Lucio</dc:creator><description>&lt;p&gt;&lt;strong&gt;&lt;span&gt;Is that the content of&amp;nbsp;p_event-&amp;gt;data.error_communication? If so, this is&amp;nbsp;FRAMING&amp;nbsp;&lt;/span&gt;&lt;em&gt;and&amp;nbsp;&lt;/em&gt;&lt;span&gt;BREAK in&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=4_2_0_34_9_4#register.ERRORSRC"&gt;ERRORSRC&lt;/a&gt;.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Correct.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Thank you for responding, the error is inmediated and ocurrs in the first 2 seconds since i dowloaded the program in the boron module. That is to say, it happens before communicating with him via bluetooth.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/236732?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 09:06:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab43393d-0568-43ac-aede-8a72c0ca6b54</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Victor Lucio"]Thank you for responding, the error you referred to is error number 12, that is[/quote]
&lt;p&gt;Is that the content of&amp;nbsp;p_event-&amp;gt;data.error_communication? If so, this is&amp;nbsp;FRAMING &lt;em&gt;and&amp;nbsp;&lt;/em&gt;BREAK in &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=4_2_0_34_9_4#register.ERRORSRC"&gt;ERRORSRC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So the issue as it stands is that you manipulate the LTE device so that it causes problems with the UART communication with the nRF. Unfortunately, I do not have any experience with that device so I am not in a position to suggest more about what happens there. But it seems clear that you need to understand the ublox module better, and make sure that you don&amp;#39;t try to communicate with it via UART when it is not ready for it (for instance while it is being reset, and potentially in other times as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/236679?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 03:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebf1ff3a-e6c7-4186-b2a3-126afb549a3c</guid><dc:creator>Victor Lucio</dc:creator><description>&lt;pre class="tw-data-text tw-text-large tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;Sorry for the inconvenience, I am new using these modules.&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/236660?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 21:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f35c937-c750-4366-9feb-a4af1c1d94ab</guid><dc:creator>Victor Lucio</dc:creator><description>&lt;p&gt;Thank you for responding, the error you referred to is error number 12, that is&lt;/p&gt;
&lt;p&gt;[NRF_ERROR_DATA_SIZE]&lt;/p&gt;
&lt;p&gt;Thos happens in the main, in the line:&lt;/p&gt;
&lt;p&gt;in APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&lt;/p&gt;
&lt;p&gt;I have been making a change in the code, in the main of my program I have this(&lt;span&gt;UBLOX_PWR_PIN = Pin16 of nrf&lt;/span&gt;),&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; uart_init();&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; nrf_gpio_cfg_output(UBLOX_PWR_PIN);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; nrf_gpio_pin_set(UBLOX_PWR_PIN);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;nrf_delay_ms(200);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; nrf_gpio_pin_clear(UBLOX_PWR_PIN);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;While if the &lt;span&gt;&amp;quot;mode&amp;quot; button&amp;nbsp;&lt;/span&gt;is pressed, I will reset the ublox module.(UBLOX_RST_PIN=Pin12)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; case BSP_EVENT_KEY_0:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp;if (m_conn_handle != BLE_CONN_HANDLE_INVALID)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp;{&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nrf_gpio_cfg_output(UBLOX_RST_PIN);//activar buffer del modem&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nrf_gpio_pin_clear(UBLOX_RST_PIN);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nrf_delay_ms(200);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nrf_gpio_pin_set(UBLOX_RST_PIN);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; }&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; break;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The cellular connectivity is now correct but this happens when I first load the program.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;It is important to mention that if I reset the ublox module from the &amp;quot;mode&amp;quot; button, no error occurs, but if I reset the boron module from the reset button, the error appears.&amp;nbsp; the error is that the rgb leds of the boron module remain on for about a second, then it goes out and does not happen again.&lt;img alt=" " height="301" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0602.imagen.PNG" width="213" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/236437?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 08:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f21d69-4a31-4ba4-a7b5-a863e3f0d447</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see.&amp;nbsp;So you are working on a Particle Boron, which has a nRF52840 and a U-blox LTE device connected like this (from &lt;a href="https://docs.particle.io/datasheets/cellular/boron-datasheet/#block-diagram"&gt;Boron documentation&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-527465b254d34ce79596dbb9a814578a/relevant.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;When you do things with the POWER_ON signal and RESET signal things happen in the u-blox module that causes issues with UART communication. You may get some relevant information by checking the&amp;nbsp;error_communication that I asked for. As you snipped from the documentation, that will tell you the reason for the error. In any case, it is clear that the only difference on the nRF side is how it powers on or resets the u-blox module, so you need to look into that to understand what is going on and how it should be fixed. I suggest you contact U-blox about that since it is their product.&lt;/p&gt;
&lt;p&gt;If I am understanding you in the wrong way, and your tweaking with the POWER_ON and RESET signal is not the problem, then knowing the&amp;nbsp;error_communication value (which is the&amp;nbsp;ERRORSRC register) is even more relevant. If it is a framing error, which is quite typical, then it could be caused by a clock mismatch. You should make sure to start the HFXO on the nRF side in that case, and similarly choose a high accuracy clock on the u-blox (if not done automatically).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/236403?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 03:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f39cbbb5-baa0-4771-b723-9929fd8ceda9</guid><dc:creator>Victor Lucio</dc:creator><description>&lt;p&gt;Is the nRF inside the ublox module, or is the nRF one device, and the ublox module another device (which kind of device - what is the model number)?&lt;/p&gt;
&lt;p&gt;The module that I&amp;#39;m using is the which shows in the next link &lt;a href="https://docs.particle.io/datasheets/cellular/boron-datasheet/"&gt;docs.particle.io/.../&lt;/a&gt;. Ublox module --&amp;gt;sara-r410m-02b.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is the nRF trying to power-cycle and reset the ublox device?&lt;/p&gt;
&lt;p&gt;Indeed, I am restarting and turning on the ublox module from the nRF pins (pin 12 and pin 16).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have UART communication ongoing between the nRF and ublox module?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using bluetooth communication between my cell phone and the Ublox module to send it ar commands&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What state is the ublox module in when you get this error?&lt;/p&gt;
&lt;p&gt;The error happens in&amp;nbsp;these lines&lt;/p&gt;
&lt;p&gt;nrf_gpio_pin_clear(UBLOX_PWR_PIN);&lt;br /&gt;nrf_delay_ms(200);&lt;br /&gt;nrf_gpio_pin_set(UBLOX_PWR_PIN);&lt;br /&gt;I am trying to reset the ublox module to reestablish communication via bluetooth otherwise the communication between my cell phone and the ublox module is not correct (it does not respond to the at commands)&lt;br /&gt;On other hand uart&amp;#39;s communication error refers to this:&lt;br /&gt;This field contains the value in the ERRORSRC register for the UART peripheral. The UART_ERRORSRC_x defines from nrf5x_bitfields.h can be used to parse the error code. See also the \nRFXX Series Reference Manual for specification. */&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/236304?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 14:57:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc971a9-04ca-4987-92d0-6984cd4e5930</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am still lacking an understanding of your setup. Please confirm if this is correct and elaborate:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is the nRF inside the ublox module, or is the nRF one device, and the ublox module another device (which kind of device - what is the model number)?&lt;/li&gt;
&lt;li&gt;Is the nRF trying to power-cycle and reset the ublox device?&lt;/li&gt;
&lt;li&gt;Do you have UART communication ongoing between the nRF and ublox module?&lt;/li&gt;
&lt;li&gt;What state is the ublox module in when you get this error?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Could it be caused by you resetting or in other ways messing with the ublox module when there is active UART communication? The typical reason for getting&amp;nbsp;APP_UART_COMMUNICATION_ERROR is a UART framing error, but you can check&amp;nbsp;error_communication to know more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/236112?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 02:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65e5a8fa-7344-418f-8a9f-200134d89486</guid><dc:creator>Victor Lucio</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMA.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre class="tw-data-text tw-text-large tw-ta" dir="ltr"&gt;&lt;span lang="en"&gt;Hi, I want to restart the module because with this I can get cell connectivity without problems. What I do is similar to what is shown in the image.
I have really done tests and it always gives me problems with these lines(&lt;/span&gt;specifically the delay)&lt;/pre&gt;
&lt;pre class="tw-data-text tw-text-large tw-ta" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;&lt;strong&gt;nrf_gpio_pin_clear(UBLOX_PWR_PIN);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;nrf_delay_ms(200);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;nrf_gpio_pin_set(UBLOX_PWR_PIN);&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;, so I would like to be oriented to know if I am activating the cell module correctly.&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with the UBLOX's connectivity</title><link>https://devzone.nordicsemi.com/thread/235968?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 13:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe924e44-1462-46de-951f-cc647e01a9cc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is not clear to me what the GPIO pin toggling has to do with UART. Also, the pin names (UBLOX_PWR_PIN etc.) indicate that you are powering and resetting the Ublox module. Is this another module&amp;nbsp;you are&amp;nbsp;running this code on? Can you elaborate on the setup etc.?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>