<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Disconnect message on RemoteXY]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1715</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1715&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Disconnect message on RemoteXY.]]></description>
		<lastBuildDate>Thu, 07 Dec 2023 11:27:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Disconnect message on RemoteXY]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5263#p5263</link>
			<description><![CDATA[<p>Try turning off mobile data on your phone. Sometimes the phone automatically turns off the access point if there is no Internet there.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Thu, 07 Dec 2023 11:27:26 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5263#p5263</guid>
		</item>
		<item>
			<title><![CDATA[Disconnect message on RemoteXY]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=5248#p5248</link>
			<description><![CDATA[<p>Hello</p><p>I have a problem using RemoteXY application on my Arduino phone.</p><p>More then one time the connection between my Arduino board and the application is stopped by this DISCONNECTED message and I do not know wat can be the root cause for this issue. Maybe you can offer me some suggestion for a possible improvement.</p><p>My setup description:<br />I&#039;m using Arduino Uno board R3 with Atmega328-PU<br />ESP8266-E01 for Wi-Fi connection&nbsp; &nbsp;<br />The RemoteXY is configured to use the WI-FI connection not cloud connection.<br />Some times is working fine but there are some times that is disconnecting very often <img src="https://forum.remotexy.com/img/smilies/sad.png" width="15" height="15" alt="sad" /><br />The code is build to monitor a consumption of one external heater and three NTC&#039;s.</p><p>The Code that is running on the Arduino328<br />&quot;<br />//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SAVE VALUE IN TO EEPROM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//<br />//////////////////////////////////////////////<br />#include &lt;EEPROM.h&gt;</p><p>//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; Current mesure include library&nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////<br />&nbsp; #include &quot;ACS712.h&quot;<br />&nbsp; <br />//&nbsp; ACS712 5A&nbsp; uses 185 mV per A<br />//&nbsp; ACS712 20A uses 100 mV per A<br />//&nbsp; ACS712 30A uses&nbsp; 66 mV per A&nbsp; <br />//ACS712 configuration&nbsp; &nbsp;<br />&nbsp; ACS712&nbsp; ACS(17, 5.0, 1023, 100);//5V VDD<br />//ACS712&nbsp; ACS(25, 3.3, 4095, 185);//3.3V VDD</p><p>//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp;Temperature include library&nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>&nbsp; #include &lt;OneWire.h&gt;<br />&nbsp; #include &lt;DallasTemperature.h&gt;</p><p>//Data wire is plugged into port 2 on the Arduino<br />&nbsp; #define ONE_WIRE_BUS 18<br />&nbsp; #define ONE_WIRE_BUS1 19<br />&nbsp; OneWire oneWire(ONE_WIRE_BUS);<br />&nbsp; OneWire oneWire1(ONE_WIRE_BUS1);<br />&nbsp; DallasTemperature sensors(&amp;oneWire);<br />&nbsp; DallasTemperature sensors1(&amp;oneWire1);<br />//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>//RemoteXY select connection mode and include library <br />&nbsp; #define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT<br />&nbsp; #include &lt;RemoteXY.h&gt;<br />// RemoteXY connection settings <br />&nbsp; #define REMOTEXY_SERIAL Serial<br />&nbsp; #define REMOTEXY_SERIAL_SPEED 115200<br />&nbsp; #define REMOTEXY_WIFI_SSID &quot;ESP8266&quot;<br />&nbsp; #define REMOTEXY_WIFI_PASSWORD &quot;123456789&quot;<br />&nbsp; #define REMOTEXY_SERVER_PORT 1002<br />//RemoteXY configurate&nbsp; <br />&nbsp; #pragma pack(push, 1)<br />&nbsp; uint8_t RemoteXY_CONF[] =&nbsp; &nbsp;// 453 bytes<br />&nbsp; { 255,2,0,69,0,190,1,16,13,2,129,0,31,57,39,3,6,91,38,3,<br />&nbsp; 24,65,81,85,65,82,73,85,77,32,67,79,78,84,82,79,76,76,69,82,<br />&nbsp; 0,129,0,71,58,14,2,26,95,15,2,24,66,121,32,66,111,103,100,97,<br />&nbsp; 110,32,86,49,46,54,0,70,16,7,9,4,4,7,13,4,4,24,37,0,<br />&nbsp; 68,51,7,25,86,29,5,32,50,36,13,24,13,13,65,109,112,46,0,86,<br />&nbsp; 97,114,105,97,98,108,101,32,50,0,86,97,114,105,97,98,108,101,32,51,<br />&nbsp; 0,129,0,7,5,9,3,6,8,12,4,24,72,101,97,116,101,114,0,129,<br />&nbsp; 0,39,5,17,3,5,70,24,4,24,84,101,109,112,101,114,97,116,117,114,<br />&nbsp; 101,0,67,4,39,11,14,6,6,80,12,5,24,13,11,129,0,50,11,4,<br />&nbsp; 6,15,80,3,5,24,67,0,67,4,56,13,9,4,6,85,12,5,24,13,<br />&nbsp; 11,129,0,63,13,2,4,15,85,3,5,24,70,0,129,0,12,10,10,2,<br />&nbsp; 13,14,7,2,24,80,79,87,69,82,0,129,0,67,9,10,2,32,76,11,<br />&nbsp; 3,24,82,111,111,109,32,84,77,80,0,67,4,67,11,11,6,32,80,12,<br />&nbsp; 5,24,13,11,129,0,77,11,4,6,41,80,3,5,24,67,0,67,4,84,<br />&nbsp; 13,9,4,32,85,12,5,24,13,11,129,0,91,13,2,4,41,85,3,5,<br />&nbsp; 24,70,0,129,0,40,9,10,2,6,76,16,3,24,87,97,116,101,114,32,<br />&nbsp; 84,77,80,0,129,0,71,19,8,2,36,29,8,2,24,84,77,80,32,76,<br />&nbsp; 111,119,0,129,0,44,19,8,2,42,20,14,2,24,84,77,80,32,83,69,<br />&nbsp; 84,0,7,21,54,18,9,4,44,23,9,4,24,13,28,129,0,54,11,2,<br />&nbsp; 6,49,75,2,6,24,47,0,129,0,82,11,2,6,23,75,2,6,24,47,<br />&nbsp; 0,67,4,21,9,10,4,25,13,10,4,24,13,11,129,0,28,9,2,4,<br />&nbsp; 32,13,2,4,24,65,0,129,0,20,9,2,4,24,13,2,4,24,47,0,<br />&nbsp; 70,16,66,18,4,4,46,28,4,4,134,37,0 }; <br />//this structure defines all the variables and events of your control interface <br />&nbsp; struct {<br />//input variables<br />&nbsp; int16_t edit_1;&nbsp; // 32767.. +32767 <br />//output variables<br />&nbsp; uint8_t Heater_LED; // led state 0 .. 1 <br />&nbsp; float onlineGraph_1_var1;<br />&nbsp; float onlineGraph_1_var2;<br />&nbsp; float onlineGraph_1_var3;<br />&nbsp; char Aq_TEMP_1[11];&nbsp; // string UTF8 end zero <br />&nbsp; char Aq_TEMP_2[11];&nbsp; // string UTF8 end zero <br />&nbsp; char Ex_TEMP_1[11];&nbsp; // string UTF8 end zero <br />&nbsp; char EX_TEMP_2[11];&nbsp; // string UTF8 end zero <br />&nbsp; char Aq_Heater[11];&nbsp; // string UTF8 end zero <br />&nbsp; uint8_t TEMP_LED; // led state 0 .. 1 <br />//other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0 <br />&nbsp; } RemoteXY;<br />&nbsp; #pragma pack(pop)</p><p>//const int Current_Sensor = 17;<br />&nbsp; const int Heater_LED = 11;<br />&nbsp; const int TEMP_LED = 10;<br />&nbsp; float low_lim = 0;<br />&nbsp; float High_lim = 10;<br />&nbsp; void setup() {<br />&nbsp; <br />&nbsp; Serial.begin(115200);<br />&nbsp; RemoteXY_Init (); <br />&nbsp; sensors.begin();<br />&nbsp; sensors1.begin();<br />&nbsp; ACS.autoMidPoint();<br />&nbsp; pinMode(Heater_LED, OUTPUT);<br />&nbsp; pinMode(TEMP_LED, OUTPUT);<br />&nbsp; RemoteXY.edit_1 = EEPROM.read(0);<br />&nbsp; }</p><p>&nbsp; void loop() {</p><p>&nbsp; RemoteXY_Handler ();<br />&nbsp; sensors.requestTemperatures();<br />&nbsp; sensors1.requestTemperatures();</p><p>&nbsp; RemoteXY.onlineGraph_1_var2 = low_lim;<br />&nbsp; RemoteXY.onlineGraph_1_var3 = High_lim;<br />&nbsp; float average = 0;<br />&nbsp; uint32_t start = millis();<br />&nbsp; for (int i = 0; i &lt; 50; i++)<br />&nbsp; {<br />&nbsp; &nbsp; average += ACS.mA_AC();<br />&nbsp; }<br />&nbsp; float mA = average / 100.0;<br />&nbsp; uint32_t duration = millis() - start;<br />&nbsp; mA = mA/1000;<br />&nbsp; if(mA&lt;=0.20){<br />&nbsp; &nbsp; mA=0.00;<br />&nbsp; }<br />&nbsp; RemoteXY.onlineGraph_1_var1 = mA;<br />&nbsp; if (mA&lt;0.1){&nbsp; &nbsp; <br />&nbsp; digitalWrite(Heater_LED,LOW);<br />&nbsp; RemoteXY.Heater_LED = LOW; <br />&nbsp; dtostrf(mA, 0, 2, RemoteXY.Aq_Heater);<br />&nbsp; }<br />&nbsp; else<br />&nbsp; {&nbsp; <br />&nbsp; digitalWrite(Heater_LED,HIGH);<br />&nbsp; RemoteXY.Heater_LED = HIGH; <br />&nbsp; dtostrf(mA, 0, 2, RemoteXY.Aq_Heater);&nbsp; &nbsp;<br />&nbsp; }<br />&nbsp; <br />&nbsp; int value = atoi (RemoteXY.edit_1);EEPROM.update(0,RemoteXY.edit_1);//Set_temperature limit <br />&nbsp; float tempC = sensors.getTempCByIndex(0);<br />&nbsp; dtostrf(tempC, 0, 1, RemoteXY.Aq_TEMP_1); <br />&nbsp; if (tempC &lt; RemoteXY.edit_1)<br />&nbsp; {<br />&nbsp; digitalWrite(TEMP_LED,HIGH);<br />&nbsp; RemoteXY.TEMP_LED = HIGH;<br />&nbsp; }<br />&nbsp; if (tempC &gt; RemoteXY.edit_1)<br />&nbsp; {<br />&nbsp; digitalWrite(TEMP_LED,LOW);<br />&nbsp; RemoteXY.TEMP_LED = LOW;<br />&nbsp; }<br />&nbsp; float tempF = sensors.getTempFByIndex(0);<br />&nbsp; dtostrf(tempF, 0, 1, RemoteXY.Aq_TEMP_2);</p><p>&nbsp; float tempC1 = sensors1.getTempCByIndex(0);<br />&nbsp; dtostrf(tempC1, 0, 1, RemoteXY.Ex_TEMP_1);<br />&nbsp; float tempF1 = sensors1.getTempFByIndex(0);<br />&nbsp; dtostrf(tempF1, 0, 1, RemoteXY.EX_TEMP_2);<br />}<br />&quot;<br />There are some restriction related to the code from Arduino or a timing issue that I need to respect to have a better connection?<br />Thank you in advance for your help!!!</p>]]></description>
			<author><![CDATA[null@example.com (bogdan_coco85)]]></author>
			<pubDate>Sun, 12 Nov 2023 20:06:04 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=5248#p5248</guid>
		</item>
	</channel>
</rss>
