<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Arduino Leonardo OTG]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1344</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1344&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Arduino Leonardo OTG.]]></description>
		<lastBuildDate>Thu, 08 Jul 2021 22:00:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4107#p4107</link>
			<description><![CDATA[<p>I have followed and even tested with my own ATmega32u4 based &quot;Leonardo&quot;, in my case a Pro Micro that the IDE detects as a Leonardo... still no results.&nbsp; </p><p>But I suspect the issue is caused by the same reason the Leonardo is unique... it&#039;s ability to appear to a connected computer as a mouse and keyboard, in addition to a virtual (CDC) serial / COM port.</p><div class="quotebox"><cite>remotexyknight wrote:</cite><blockquote><p>When i generate an example Sketch on the RemoteXY Webpape for Arduino Mega, Uno, Nano or Wemos D1 mini, everything works fine over USB OTG.</p></blockquote></div><p>In my opinion, all the effort to make the Leonardo work with OTG effectively negates it&#039;s unique abilities, compared to other Arduinos... so just use an UNO and save the Leonardo for a task it is better suited for.</p>]]></description>
			<author><![CDATA[null@example.com (Gunner)]]></author>
			<pubDate>Thu, 08 Jul 2021 22:00:07 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4107#p4107</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4106#p4106</link>
			<description><![CDATA[<p>Yes, i do.</p>]]></description>
			<author><![CDATA[null@example.com (remotexyknight)]]></author>
			<pubDate>Thu, 08 Jul 2021 19:20:18 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4106#p4106</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4100#p4100</link>
			<description><![CDATA[<p>Do you choose 9600 speed in the app?</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Thu, 08 Jul 2021 04:04:55 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4100#p4100</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4099#p4099</link>
			<description><![CDATA[<p>Thank you for your reply.</p><br /><p>I delete the old library and installed the new library 3.1.7&nbsp; &nbsp; -&nbsp; but it didn´t work. </p><p>The sketch compile without issues. But when i connect my Leonardo to the Smartphone, i become this error message...</p><p>...30.305 App version 4.8.01,API29<br />...30.305 Device started<br />...30.305 USB connection started<br />...30.305 Connecting to USB device: VID 2341, PID 8036 ...<br />...31.334 USB device connected<br />...31.363 Receiving GUI configuration...<br />...32.364 Read timeout error<br />...32.364 Receiving GUI configuration,try 2 ...<br />...33.365 Read timeout error<br />...33.365 Receiving GUI configuration,try 3 ...<br />...38.367 Read timeout error<br />...38.367 Receiving GUI configuration,try 4 ...<br />...38.368 Write error: Error writing 6 bytes at offset 0 length 6<br />...38.368 Disconnect</p><br /><p>Regards,<br />Andy</p>]]></description>
			<author><![CDATA[null@example.com (remotexyknight)]]></author>
			<pubDate>Wed, 07 Jul 2021 16:57:06 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4099#p4099</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4098#p4098</link>
			<description><![CDATA[<div class="quotebox"><cite>remotexyknight wrote:</cite><blockquote><p>&quot;#define REMOTEXY_SERIAL Serial&quot;</p><p>Unfortunately the sketch do not compile, when i change the line.</p><p>Regards<br />Andy</p></blockquote></div><p>Try download library 3.1.7 from github <a target="_blank" href="https://github.com/RemoteXY/RemoteXY-Arduino-library">https://github.com/RemoteXY/RemoteXY-Arduino-library</a> (press CODE button and Download ZIP)<br />And use next code:</p><div class="codebox"><pre><code>#define REMOTEXY_MODE__CDCSERIAL

#include &lt;RemoteXY.h&gt;

#define REMOTEXY_SERIAL Serial
#define REMOTEXY_SERIAL_SPEED 9600


// RemoteXY configurate  
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,1,0,0,0,13,0,11,13,0,
  1,0,48,25,12,12,2,31,88,0 };
  
struct {

    // input variables
  uint8_t button_1; // =1 if button pressed, else =0 

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY;
#pragma pack(pop)




void setup() 
{
  RemoteXY_Init (); 
  
}

void loop() 
{ 
  RemoteXY_Handler ();

}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Wed, 07 Jul 2021 04:33:48 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4098#p4098</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4097#p4097</link>
			<description><![CDATA[<p>It will only compile with <strong>Serial1</strong>... however, still no worky (for me).</p>]]></description>
			<author><![CDATA[null@example.com (Gunner)]]></author>
			<pubDate>Mon, 05 Jul 2021 07:13:49 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4097#p4097</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4096#p4096</link>
			<description><![CDATA[<p>&quot;#define REMOTEXY_SERIAL Serial&quot;</p><p>Unfortunately the sketch do not compile, when i change the line.</p><p>Regards<br />Andy</p>]]></description>
			<author><![CDATA[null@example.com (remotexyknight)]]></author>
			<pubDate>Mon, 05 Jul 2021 07:08:20 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4096#p4096</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4091#p4091</link>
			<description><![CDATA[<p>We will check it.<br />Try to replase in code<br /></p><div class="codebox"><pre><code>//#define REMOTEXY_SERIAL Serial1
#define REMOTEXY_SERIAL Serial</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sun, 04 Jul 2021 03:50:28 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4091#p4091</guid>
		</item>
		<item>
			<title><![CDATA[Re: Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4090#p4090</link>
			<description><![CDATA[<p>Hello.&nbsp; This will hot be a solution, as I haven&#039;t figured it out myself... I have tried to get my own Leonardo board working and it too stalls out on receiving the GUI</p><p>But more informative I hope.</p><p>The Leonardo is a bit unique with it&#039;s USB connectivity... the following is excerpts from the Arduino site</p><p><strong><em>The Leonardo differs from all preceding boards in that the ATmega32u4 has built-in USB communication, eliminating the need for a secondary processor</em></strong></p><p><strong><em>Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data using the ATmega32U4 hardware serial capability. Note that on the Leonardo, the Serial class refers to USB (CDC) communication; for TTL serial on pins 0 and 1, use the Serial1 class.</em></strong></p><p>So basically I think the issue is that the RemoteXY library is trying to communicate over Serial, when with the Leonardo&nbsp; think it needs to be Serial1... but who knows, I could be completely wrong as well <img src="https://forum.remotexy.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I have also noticed that the library keeps trying to use SoftwareSerial??&nbsp; There is a HardwareSerial option in the library, but I haven&#039;t quite figured out how to get it to compile (let alone use Serial1)</p>]]></description>
			<author><![CDATA[null@example.com (Gunner)]]></author>
			<pubDate>Sun, 04 Jul 2021 03:28:35 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4090#p4090</guid>
		</item>
		<item>
			<title><![CDATA[Arduino Leonardo OTG]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4089#p4089</link>
			<description><![CDATA[<p>Hello,</p><p>I would like to connect my Arduino Leonardo directly over USB OTG. (whitout USB to TTL converter)</p><p>When i generate an example Sketch on the RemoteXY Webpape for Arduino Mega, Uno, Nano or&nbsp; Wemos D1 mini, everything works fine over USB OTG.</p><p>But when I generate an example Sketch for Arduino Leonardo, my Smartphone find the Arduino Leonardo, but can´t receiving the GUI Configuration.</p><p>Had someone the same Issues?</p><p>Regards<br />Andy<br />PS: ...sorry for my English...</p>]]></description>
			<author><![CDATA[null@example.com (remotexyknight)]]></author>
			<pubDate>Sat, 03 Jul 2021 20:18:17 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4089#p4089</guid>
		</item>
	</channel>
</rss>
