<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Nano works perfectly but impossible to repeat it with Mega 2560]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=746&amp;type=atom" />
	<updated>2019-08-02T15:16:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=746</id>
		<entry>
			<title type="html"><![CDATA[Re: Nano works perfectly but impossible to repeat it with Mega 2560]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2327#p2327" />
			<content type="html"><![CDATA[<p>Can&#039;t say anything until you don&#039;t post a picture of your circuit. A fritzing sketch would be good to go.<br />Show us your connections for better help.</p>]]></content>
			<author>
				<name><![CDATA[naved.the.sheikh]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=685</uri>
			</author>
			<updated>2019-08-02T15:16:27Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2327#p2327</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Nano works perfectly but impossible to repeat it with Mega 2560]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2244#p2244" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I bought PRO version and I&#039;m trying to make it works with my MEGA 2560 Mini.</p><p>My setup:<br />- 2pcs Bluetooth modules (HM10 clown)<br />- Arduino Nano (LED D13)<br />- Arduino Mega 2560 Mini (LED D13)<br />- RemoteXY PRO + latest lib + Arduino IDE<br />- Android Samsung phone<br />- Basic &quot;Blink&quot; BT HardSerial test program applied for testing</p><br /><p>A very strange thing is happening:<br />- D13 LED flashes as expected with both HM10 applied to Nano.<br />- BT connected but &quot;Device not reply. Receive time out error&quot; with both HM10 applied to Mega 2560 Mini !?!! <br />- RemoteXY editor: right MCU &quot;Mega 2560&quot; selected in config + HardSerial Rx0/Tx1. <br />- BLE paired &amp; Mega 2560 HardSerial is running well with any Hyperterminal over BT.</p><p>Any idea?</p><p>Thank :-)</p><br /><p>/* <br />&nbsp; &nbsp;-- Mega_2560_test -- <br />&nbsp; &nbsp; <br />&nbsp; &nbsp;This source code of graphical user interface&nbsp; <br />&nbsp; &nbsp;has been generated automatically by RemoteXY editor. <br />&nbsp; &nbsp;To compile this code using RemoteXY library 2.3.5 or later version&nbsp; <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.3.1 or later version; <br />&nbsp; &nbsp; &nbsp;- for iOS 1.3.5 or later version; <br />&nbsp; &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; &nbsp;<br />*/ </p><p>////////////////////////////////////////////// <br />//&nbsp; &nbsp; &nbsp; &nbsp; RemoteXY include library&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <br />////////////////////////////////////////////// </p><p>// RemoteXY select connection mode and include library&nbsp; <br />#define REMOTEXY_MODE__HARDSERIAL</p><p>#include &lt;RemoteXY.h&gt; </p><p>// RemoteXY connection settings&nbsp; <br />#define REMOTEXY_SERIAL Serial <br />#define REMOTEXY_SERIAL_SPEED 38400 </p><br /><p>// RemoteXY configurate&nbsp; &nbsp;<br />#pragma pack(push, 1) <br />uint8_t RemoteXY_CONF[] = <br />&nbsp; { 255,1,0,0,0,13,0,8,13,0,<br />&nbsp; 1,0,23,17,12,12,2,31,88,0 }; <br />&nbsp; &nbsp;<br />// this structure defines all the variables of your control interface&nbsp; <br />struct { </p><p>&nbsp; &nbsp; // input variable<br />&nbsp; uint8_t button_1; // =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 13</p><br /><p>void setup()&nbsp; <br />{ <br />&nbsp; RemoteXY_Init ();&nbsp; <br />&nbsp; &nbsp;<br />&nbsp; pinMode (PIN_BUTTON_1, OUTPUT);<br />&nbsp; &nbsp;<br />&nbsp; // TODO you setup code <br />&nbsp; &nbsp;<br />} </p><p>void loop()&nbsp; <br />{&nbsp; <br />&nbsp; RemoteXY_Handler (); <br />&nbsp; &nbsp;<br />&nbsp; digitalWrite(PIN_BUTTON_1, (RemoteXY.button_1==0)?LOW:HIGH);<br />&nbsp; &nbsp;<br />&nbsp; // TODO you loop code <br />&nbsp; // use the RemoteXY structure for data transfer </p><br /><p>}</p>]]></content>
			<author>
				<name><![CDATA[KissInno]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=951</uri>
			</author>
			<updated>2019-06-18T20:33:46Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2244#p2244</id>
		</entry>
</feed>
