<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — SOLVED: ESP8266 Upload Code - Failed to Connect Timed Out]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1564&amp;type=atom" />
	<updated>2022-11-26T04:33:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1564</id>
		<entry>
			<title type="html"><![CDATA[Re: SOLVED: ESP8266 Upload Code - Failed to Connect Timed Out]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4876#p4876" />
			<content type="html"><![CDATA[<p>Embarrassing - I didn&#039;t realize a Windows Update caused a Comm Port driver issue.&nbsp; &nbsp; After some testing figured out even Blynk good working code wouldn&#039;t upload to an ESP8266.&nbsp; Net/net - this problem has nothing to do with RemoteXY code not loading...</p>]]></content>
			<author>
				<name><![CDATA[JZACK-XYUser]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2259</uri>
			</author>
			<updated>2022-11-26T04:33:10Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4876#p4876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SOLVED: ESP8266 Upload Code - Failed to Connect Timed Out]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4875#p4875" />
			<content type="html"><![CDATA[<p>I&#039;m using this sample code directly from the RemoteXY.h library.&nbsp; &nbsp;I&#039;m very new to RemoteXY but pretty experienced with Blynk legacy.&nbsp; I&#039;m using an ESP8266 module.&nbsp; I&#039;m connecting to ESP8266 via the PC&#039;s USB port. </p><p>---------------------------------------------------------------------------------------------</p><p>```</p><p>&lt; &lt;</p><p>/*<br />&nbsp; &nbsp;Simple button example<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;This source code of graphical user interface <br />&nbsp; &nbsp;has been generated automatically by RemoteXY editor.<br />&nbsp; &nbsp;To compile this code using RemoteXY library 3.1.1 or later version <br />&nbsp; &nbsp;download by link <a target="_blank" href="http://remotexy.com/en/library/">http://remotexy.com/en/library/</a><br />&nbsp; &nbsp;To connect using RemoteXY mobile app by link <a target="_blank" href="http://remotexy.com/en/download/">http://remotexy.com/en/download/</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;- for ANDROID 4.5.1 or later version;<br />&nbsp; &nbsp; &nbsp;- for iOS 1.4.1 or later version;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;This source code is free software; you can redistribute it and/or<br />&nbsp; &nbsp;modify it under the terms of the GNU Lesser General Public<br />&nbsp; &nbsp;License as published by the Free Software Foundation; either<br />&nbsp; &nbsp;version 2.1 of the License, or (at your option) any later version.&nbsp; &nbsp; <br />*/</p><p>//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><br /><p>#include &lt;ESP8266WiFi.h&gt;<br />#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY select connection mode</p><p>// **************************************************<br />// Added this code to the example trying to resolve <br />// the uploading connection to ESP8266 time out</p><p>#define REMOTEXY_SERIAL Serial<br />#define REMOTEXY_SERIAL_SPEED 9600&nbsp; &nbsp; // tried 115200, it didn&#039;t work either</p><p>// **************************************************</p><br /><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,1,0,1,0,27,0,10,13,2,<br />&nbsp; 1,0,9,9,46,46,6,7,50,50,<br />&nbsp; 2,31,88,0,65,4,62,16,31,31,<br />&nbsp; 14,62,35,35 };<br />&nbsp; <br />// this structure defines all the variables and events of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variables<br />&nbsp; uint8_t button_1; // =1 if button pressed, else =0 </p><p>&nbsp; &nbsp; // output variables<br />&nbsp; uint8_t led_1_r; // =0..255 LED Red brightness </p><p>&nbsp; &nbsp; // other variable<br />&nbsp; uint8_t connect_flag;&nbsp; // =1 if wire connected, else =0 </p><p>} RemoteXY;<br />#pragma pack(pop)</p><br /><br /><p>/////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />/////////////////////////////////////////////</p><br /><p>CRemoteXY *remotexy;</p><p>void setup() <br />{<br />&nbsp; remotexy = new CRemoteXY (<br />&nbsp; &nbsp; RemoteXY_CONF_PROGMEM, <br />&nbsp; &nbsp; &amp;RemoteXY, <br />&nbsp; &nbsp; &quot;&quot;, <br />&nbsp; &nbsp; new CRemoteXYConnectionServer (<br />&nbsp; &nbsp; &nbsp; new CRemoteXYComm_WiFi (<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;MYbasement&quot;,&nbsp; &nbsp; &nbsp; &nbsp;// REMOTEXY_WIFI_SSID <br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Password123&quot;),&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // REMOTEXY_WIFI_PASSWORD<br />&nbsp; &nbsp; &nbsp; 6377&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // REMOTEXY_SERVER_PORT<br />&nbsp; &nbsp; )<br />&nbsp; ); <br />&nbsp; <br />&nbsp; <br />&nbsp; // TODO you setup code<br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; remotexy-&gt;handler ();<br />&nbsp; <br />&nbsp; if (RemoteXY.button_1)&nbsp; RemoteXY.led_1_r = 255;<br />&nbsp; else RemoteXY.led_1_r = 0;<br />&nbsp; <br />&nbsp; // TODO you loop code<br />&nbsp; // use the RemoteXY structure for data transfer<br />&nbsp; // do not call delay() </p><br /><p>} </p><p>&gt;&gt;</p><p>```</p><p>-------------------------------------------------------------------------------------------------</p><p>The esp8266 uploading timed out error I&#039;m getting:</p><p>File &quot;C:/Users/JJ/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py&quot;, line 529, in connect<br />&nbsp; &nbsp; raise FatalError(&#039;Failed to connect to %s: %s&#039; % (self.CHIP_NAME, last_error))</p><p>esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header<br />Failed uploading: uploading error: exit status 1<br />-------------------------------------------------------------------------------------------------</p><br /><p>Any tips or pointers would be appreciated!&nbsp; Thx....</p>]]></content>
			<author>
				<name><![CDATA[JZACK-XYUser]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2259</uri>
			</author>
			<updated>2022-11-25T22:17:41Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4875#p4875</id>
		</entry>
</feed>
