<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — HC-05 and arduino mega 2650 (Device not reply. Receive time out error)]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=446&amp;type=atom" />
	<updated>2018-04-17T20:23:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=446</id>
		<entry>
			<title type="html"><![CDATA[Re: HC-05 and arduino mega 2650 (Device not reply. Receive time out error)]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1501#p1501" />
			<content type="html"><![CDATA[<p>Try remove all delay(), replace with the method demonstrated in BlinkWithoutDelay example.</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2018-04-17T20:23:24Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1501#p1501</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HC-05 and arduino mega 2650 (Device not reply. Receive time out error)]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1498#p1498" />
			<content type="html"><![CDATA[<p>It seems to be as soon as i call multiple things in the void loop(), as soon as i have an else IF or multiple cases in my switch statement. If nayone could help me base on that new information it would be greatly appreciated.</p>]]></content>
			<author>
				<name><![CDATA[oli_bouvettsky]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=610</uri>
			</author>
			<updated>2018-04-17T15:18:17Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1498#p1498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HC-05 and arduino mega 2650 (Device not reply. Receive time out error)]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1492#p1492" />
			<content type="html"><![CDATA[<p>I was getting the same sort of error and another with connections.&nbsp; I dug through the forums and really didn&#039;t find the answer I was looking for.</p><p>In truth I was torn between posting here, or just giving up and admitting buying the pro version was a wast of money.&nbsp; Then I decided to just get really basic.&nbsp; I started a new sketch and just made a small interface in the WEB GUI.&nbsp; I didn&#039;t add any functionality to the buttons, and just loaded that onto an arduino.&nbsp; I connected successfully with my phone and tablet several times.</p><p>After that I slowly started building in functionality to the buttons, testing as I went for connection.&nbsp; I&#039;m not even sure what in my first code cause the connection hick ups, but I did figure out that it wasn&#039;t RemoteXY causing the connection issues, but rather my own code.</p><p>Honestly I have less than a year of self taught c++ I&#039;m working with here, so I doubt I&#039;d see anything in your code.&nbsp; But if you start with the basics and build a little at a time checking the connection as you go...</p>]]></content>
			<author>
				<name><![CDATA[quietfire]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=611</uri>
			</author>
			<updated>2018-04-16T07:24:31Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1492#p1492</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[HC-05 and arduino mega 2650 (Device not reply. Receive time out error)]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1483#p1483" />
			<content type="html"><![CDATA[<p>No compiling errors, it worked 2 times and then it did&#039;nt. I&#039;m connected via Hardware serial (Serial1,pins 19 and 18). I have the baud rate to 9600.</p><p>Here is my code:</p><br /><p>//////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />//////////////////////////////////////////////</p><p>// RemoteXY select connection mode and include library <br />#define REMOTEXY_MODE__HARDSERIAL<br />#include &lt;SPI.h&gt;<br />#include &lt;RemoteXY.h&gt;</p><p>// RemoteXY connection settings <br />#define REMOTEXY_SERIAL Serial1<br />#define REMOTEXY_SERIAL_SPEED 9600</p><br /><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />&nbsp; { 255,3,0,0,0,31,0,8,13,0,<br />&nbsp; 3,131,28,5,45,17,2,26,1,1,<br />&nbsp; 25,33,19,20,2,31,45,0,1,1,<br />&nbsp; 58,33,19,20,2,31,43,0 };<br />&nbsp; <br />// this structure defines all the variables of your control interface <br />struct {</p><p>&nbsp; &nbsp; // input variable<br />&nbsp; uint8_t select_1; // =0 if select position A, =1 if position B, =2 if position C, ... <br />&nbsp; uint8_t button_1; // =1 if button pressed, else =0 <br />&nbsp; uint8_t button_2; // =1 if button pressed, else =0 </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><p>/////////////////////////////////////////////<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END RemoteXY include&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />/////////////////////////////////////////////</p><p>#define PIN_BUTTON_1 26<br />#define PIN_BUTTON_2 24</p><p>int ssd = 53;&nbsp; &nbsp; &nbsp;<br />int ssg = 47;<br />int UP = 36;<br />int DOWN= 34;<br />int i = 0;<br />int D = 32;<br />int G = 30;<br />int j = 0;</p><p>void setup() <br />{<br />&nbsp; RemoteXY_Init (); <br />&nbsp; <br />&nbsp; pinMode (PIN_BUTTON_1, OUTPUT);<br />&nbsp; pinMode (PIN_BUTTON_2, OUTPUT);<br />&nbsp; pinMode(ssd, OUTPUT);&nbsp; &nbsp; &nbsp; <br />&nbsp; pinMode(ssg, OUTPUT);<br />&nbsp; pinMode(UP, INPUT_PULLUP);&nbsp; &nbsp; &nbsp; <br />&nbsp; pinMode(DOWN, INPUT_PULLUP);<br />&nbsp; pinMode(D, INPUT_PULLUP);<br />&nbsp; pinMode(G, INPUT_PULLUP);</p><p>&nbsp; SPI.begin();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; Serial.begin(9600);<br />}<br />void mastervolume()&nbsp; &nbsp;<br />{<br />&nbsp; while (RemoteXY.button_1!=1)<br /> {<br />&nbsp; &nbsp;j++;<br />&nbsp; &nbsp;if(j&gt;127) j=127;<br />&nbsp; &nbsp;i++;<br />&nbsp; &nbsp;if(i&gt;127) i=127;<br />&nbsp; &nbsp;delay(50);<br /> }<br /> while (RemoteXY.button_2!=1)<br /> {<br />&nbsp; &nbsp;j--;<br />&nbsp; &nbsp;if(j&lt;0) j=0;<br />&nbsp; &nbsp;i--;<br />&nbsp; &nbsp;if(i&lt;0) i=0;<br />&nbsp; &nbsp;delay(50);<br /> }<br /> digitalWrite(ssd,LOW);<br /> SPI.transfer(0);<br /> SPI.transfer(j);<br /> digitalWrite(ssd,HIGH);<br /> digitalWrite(ssg,LOW);<br /> SPI.transfer(0);<br /> SPI.transfer(i);<br /> digitalWrite(ssg,HIGH);<br />}</p><p>void volumespeakerdroit (){</p><p>&nbsp; while (RemoteXY.button_1!=1)<br />&nbsp; {<br />&nbsp; &nbsp; i++;<br />&nbsp; &nbsp; if(i&gt;127) i=127;<br />&nbsp; &nbsp; delay(50);<br />&nbsp; }<br />&nbsp; while (RemoteXY.button_2!=1)<br />&nbsp; {<br />&nbsp; &nbsp; i--;<br />&nbsp; &nbsp; if(i&lt;0) i=0;<br />&nbsp; &nbsp; delay(50);<br />&nbsp; }</p><p> digitalWrite(ssg,LOW);</p><p>&nbsp; SPI.transfer(0);<br />&nbsp; SPI.transfer(i);</p><p>&nbsp; digitalWrite(ssg,HIGH);<br />}</p><p>void volumespeakergauche()<br />{<br />&nbsp; &nbsp; while (RemoteXY.button_1!=1)<br />&nbsp; {<br />&nbsp; &nbsp; j++;<br />&nbsp; &nbsp; if(j&gt;127) j=127;<br />&nbsp; &nbsp; delay(50);<br />&nbsp; }<br />&nbsp; <br />&nbsp; while (RemoteXY.button_2!=1)<br />&nbsp; {<br />&nbsp; &nbsp; j--;<br />&nbsp; &nbsp; if(j&lt;0) j=0;<br />&nbsp; &nbsp; delay(50);<br />&nbsp; }<br />&nbsp; <br />&nbsp; &nbsp; digitalWrite(ssd,LOW);</p><p>&nbsp; SPI.transfer(0);<br />&nbsp; SPI.transfer(j);</p><p>&nbsp; digitalWrite(ssd,HIGH);<br />&nbsp; <br />&nbsp; <br />}</p><p>void loop() <br />{ <br />&nbsp; RemoteXY_Handler ();<br />&nbsp; <br />&nbsp; &nbsp;if (RemoteXY.select_1==2)<br />{<br />&nbsp; volumespeakerdroit();<br />&nbsp; }<br />&nbsp; else if (RemoteXY.select_1==0)<br />&nbsp; {<br />&nbsp; volumespeakergauche();<br />&nbsp; }<br />&nbsp; else if (RemoteXY.select_1==1)<br />&nbsp; {<br />&nbsp; &nbsp; mastervolume();<br />&nbsp; }<br /> {<br />&nbsp; Serial.println(j);<br />&nbsp; Serial.println(&quot; &quot;);<br />&nbsp; Serial.println(i);<br />&nbsp; Serial.println(&quot; &quot;);</p><p>}<br /> digitalWrite(PIN_BUTTON_1, (RemoteXY.button_1==0)?LOW:HIGH);<br /> digitalWrite(PIN_BUTTON_2, (RemoteXY.button_2==0)?LOW:HIGH);<br />}</p><br /><p>Thank you in advance for the help.</p>]]></content>
			<author>
				<name><![CDATA[oli_bouvettsky]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=610</uri>
			</author>
			<updated>2018-04-12T16:28:06Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1483#p1483</id>
		</entry>
</feed>
