<?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>Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79993/calling-socket-connect-triggers-errno-95</link><description>Hello, 
 I am offloading sockets in config. I instantiate a socket, set the send/recv timeouts, and then call connect(). It&amp;#39;s returning a 95 which is EOPNOTSUPP. I was able to step via debug all the way down to a nrf_connect(). But that was it. 
 Anyone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Oct 2021 17:34:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79993/calling-socket-connect-triggers-errno-95" /><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/334233?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 17:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:861a2d3e-5b0b-4ae7-8df9-99c6cc62e2fe</guid><dc:creator>Loren Rogers</dc:creator><description>&lt;p&gt;I realized that the server(s) I was trying to connect to didn&amp;#39;t support the ciphers that the nrf modem does.&amp;nbsp; I did manage to find a server that support ONE of the ciphers that the modem does (*CBC*).&amp;nbsp; However, I downloaded the 1.3.1 mfw and ran a wireshark trace.&amp;nbsp; Indeed I saw the GCM_SHA384 cipher selected from the server!&amp;nbsp; Thank you Nordic!&amp;nbsp; So if you happen to run into this, making sure your server supports the modem&amp;#39;s cipher list is a good start.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/333988?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 15:02:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f948da5-ee66-407d-9850-1b2831aff2ee</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Loren,&lt;/p&gt;
&lt;p&gt;Glad to hear your good news. My colleague will help you with that ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Happy work! :-)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/333772?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 14:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f48774dd-4c2e-435c-8153-d63c2847978d</guid><dc:creator>Loren Rogers</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve managed to get around this problem.&amp;nbsp; However I have a new problem and I was wondering if you could please give me some assistance.&lt;/p&gt;
&lt;p&gt;New ticket is here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80432/recv-returning-0"&gt;devzone.nordicsemi.com/.../recv-returning-0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/332743?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 07:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63b18a06-bea4-412c-9384-1fe4b315cf86</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Loren,&lt;/p&gt;
&lt;p&gt;The nRF9160 Modem firmware v1.3.1 is going to be released in one week and it will add support to&amp;nbsp;&lt;span&gt;TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384 cipher suite. Please pay attention to &lt;a href="https://www.nordicsemi.com/Products/nRF9160/Download#infotabs"&gt;this page&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/332697?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 17:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6f5a061-32f0-458f-add3-c93f33bb8786</guid><dc:creator>Loren Rogers</dc:creator><description>&lt;p&gt;After an inadvertent reboot of my PC, I have been able to capture traces now.&amp;nbsp; I&amp;#39;m uploading a wireshark trace to publicapis.org with a rejection (95) because the server didn&amp;#39;t support any of my ciphers. I did manage to find a server that would accept one of nrf9160 ciphers.&lt;/p&gt;
&lt;p&gt;Because of internal network issues, I am unable to attempt a connection to our server to see if our server would reject the nrf9160 ciphers.&amp;nbsp; That being said, how hard would it be to add GCM&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_10_2D00_04T19_2D00_04_2D00_12.146Z.pcapng"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_10_2D00_04T19_2D00_04_2D00_12.146Z.pcapng&lt;/a&gt;-based cipher support to the nrf SDK?&amp;nbsp; I looked at Zephyr API&amp;#39;s and THEY support GCM-based ciphers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/332113?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 10:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2f3a59-48e6-4ef5-a7a0-a3bc7c9bcbda</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Loren,&lt;/p&gt;
&lt;p&gt;nRF9160 modem can only support limited &lt;a href="https://www.nordicsemi.com/Products/nRF9160/Download#infotabs"&gt;TLS Cipher suites&lt;/a&gt;, unsupported cipher suites cannot be used, please modify your server setting first.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/332112?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 10:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f801699-f9f5-4b5d-b83d-20f3d4282c4c</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Loren,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This trace file has no meaningful data&lt;/p&gt;
&lt;p&gt;Did you see the following printout from LTE Link Monitor?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x0/__key/communityserver-discussions-components-files/4/pastedimage1633085110009v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/332022?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 21:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b2c25d9-7ca9-4ba2-8c8e-51e7e50ed3d1</guid><dc:creator>Loren Rogers</dc:creator><description>&lt;p&gt;I just found something interesting that could be a problem: I ran Postman on 2 separate servers.&amp;nbsp; Both servers use&amp;nbsp;TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384 for the cipher.&amp;nbsp; I noticed that Nordic does not support this.&amp;nbsp; It does support&amp;nbsp;TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384. (CBC vs. GCM).&amp;nbsp; Would this cause what I am seeing? Also could we add our own &amp;#39;TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384&amp;#39; encryption somehow?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/332019?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 19:23:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cd518ab-773f-4898-84b0-f3a5f65e951d</guid><dc:creator>Loren Rogers</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_09_2D00_30T18_2D00_56_2D00_20.088Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_09_2D00_30T18_2D00_56_2D00_20.088Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/331759?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 14:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aec9cfb9-99b6-46ea-b56e-49a7a1830769</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;What about the size of your trace bin file? Can you share it with me?&lt;/p&gt;
&lt;p&gt;I suggest you recording raw format with Trace Collector and monitoring the log through the serial terminal at the same time, this can make sure the whole process is recorded.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Trace Collector V2 preview is still under preview, so do not expect to hight to it now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/331743?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 13:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9072826-db0d-42c9-805e-89533ad0b681</guid><dc:creator>Loren Rogers</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;I seem to be able to now capture.&amp;nbsp; But every time I try to convert to pcap I get:&lt;/p&gt;
&lt;p&gt;2021-09-29T13:22:58.931Z ERROR Failed conversion to pcap: end of file reached while searching db uid plugin path: C:\Users\lrogers\.nrfconnect-apps\node_modules\pc-nrfconnect-tracecollector-preview\node_modules\nrf-monitor-lib-js\Release\win32-ia32\nrfml-insight-source.nrfml&lt;br /&gt;2021-09-29T13:22:58.931Z DEBUG Full error: {&amp;quot;error_code&amp;quot;:100,&amp;quot;message&amp;quot;:&amp;quot;end of file reached while searching db uid plugin path: C:\\Users\\lrogers\\.nrfconnect-apps\\node_modules\\pc-nrfconnect-tracecollector-preview\\node_modules\\nrf-monitor-lib-js\\Release\\win32-ia32\\nrfml-insight-source.nrfml&amp;quot;,&amp;quot;origin&amp;quot;:&amp;quot;Error when running nrfml operation worker.&amp;quot;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I really wish Nordic&amp;#39;s stuff worked reliably.&amp;nbsp; This is frustrating.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/331629?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 08:01:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:678033e6-c635-40d2-8dbf-4786fdae9170</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Loren,&lt;/p&gt;
&lt;p&gt;I just test with Trace Collector V2 preview v0..0.11, PCAP seems not to work, please use RAW and convert the log data later.&lt;/p&gt;
&lt;p&gt;Also, remember to try with a different serial port if it still does not work.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/331526?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 13:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c94a5a-1e3b-4b08-9e18-35de8f0d77e2</guid><dc:creator>Loren Rogers</dc:creator><description>&lt;p&gt;Hi Charlie!&lt;/p&gt;
&lt;p&gt;Thanks for the welcome.&amp;nbsp; HTTPS Client definitely can connect, send the data and receive.&amp;nbsp; However I cannot get any captures in Connect Trace Collector.&amp;nbsp; In the https_client prj.conf I definitely have the line:&amp;nbsp;CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y.&amp;nbsp; I&amp;#39;ve updated the board itself.&amp;nbsp; But every time I capture either with trace collector or trace collector v2, I get 0 packets captured.&amp;nbsp; Please help.&lt;/p&gt;
&lt;p&gt;/Loren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/331447?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 08:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceed694b-bdc3-4e6d-9700-7b71366f13de</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Loren,&lt;/p&gt;
&lt;p&gt;Welcome to the embedded world! You are not alone as a beginner struggling with this new field, even me can not fully understand every part of NCS. I suggest you do not bother with CONFIG too much at the beginning, the existing samples and applications and satisfy most of your needs already.&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/samples/nrf9160/https_client/README.html"&gt;nRF9160: HTTPS Client&lt;/a&gt; sounds like a good start for you, can you make sure this sample can work on your setup first?&lt;/p&gt;
&lt;p&gt;The network-related applications are quite time-sensitive, so the &amp;quot;step and stop&amp;quot; debug is not fit this condition. You can use &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_trace_collector%2FUG%2Ftrace_collector%2Fintro.html"&gt;nRF Connect Trace Collector&lt;/a&gt;&amp;nbsp;to log the communication process and analysis the issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/331398?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 19:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc631d1f-de25-4491-9e74-51ec771bfb97</guid><dc:creator>Loren Rogers</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;It is the standard nrf9160 dk board.&amp;nbsp; I&amp;#39;m not going to lie.&amp;nbsp; I am totally lost and pretty overwhelmed.&amp;nbsp; Especially when it comes to what CONFIG options I need.&amp;nbsp; All I want is an application that will create and connect to a TLS socket (443) to ANY server I choose (not just nRF Cloud) and be able to call the http_client_req() method with my particular REST method and an url.&amp;nbsp; I come from the iOS/Android world where there are libraries that do this automatically.&amp;nbsp; Could you please let me know what CONFIG options I need and some source code on how to set this up?&lt;/p&gt;
&lt;p&gt;The other thing that I find infuriating is that I can&amp;#39;t seem to reliably debug this thing.&amp;nbsp; I&amp;#39;ll tap &amp;#39;step over&amp;#39; and it jumps to some other place I have no clue about.&amp;nbsp; And I believe I&amp;#39;ve set the NO_OPTIMIZATIONS configuration but I still can&amp;#39;t see some local variables.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;/Loren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Calling socket connect() triggers errno=95</title><link>https://devzone.nordicsemi.com/thread/331282?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 10:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3a25012-52b3-4e73-9ed7-c75c4ef38d45</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Loren,&lt;/p&gt;
&lt;p&gt;Is this a customize board? Did you test with a TLS connection? If the connection is lost during data transmission, there can be an error thrown (for TLS, it is normally -95). Could you check if the signal strength (via AT+CESQ) is good when this occurs?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the problem still exists, could you provide your current modem firmware version and a&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_trace_collector%2FUG%2Ftrace_collector%2Fintro.html"&gt;modem trace&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;when the failure happens?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>