<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — How to add a device not yet supported....]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=670</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=670&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to add a device not yet supported.....]]></description>
		<lastBuildDate>Sun, 17 Nov 2019 14:42:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to add a device not yet supported....]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2435#p2435</link>
			<description><![CDATA[<p>I know this post is a little old, but I would think that you would use <strong>Software Serial</strong> instead of <strong>Hardware Serial </strong>(selected under &#039;<strong><span style="color: orange">Module interface-&gt;</span>Connection interface:</strong>&#039;&nbsp; in the Editor).</p><p>The <strong>Software Serial</strong> allows you to choose whatever pins you want for the Rx / TX lines (but more limited selections for Baud Rate).</p><p>Here is a code segment I generated that I <em>think</em> is what you where aiming for:</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__ESP8266_SOFTSERIAL_POINT
#include &lt;SoftwareSerial.h&gt;

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings 
#define REMOTEXY_SERIAL_RX 9
#define REMOTEXY_SERIAL_TX 10
#define REMOTEXY_SERIAL_SPEED 19200
#define REMOTEXY_WIFI_SSID &quot;TeensyTest&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot;
#define REMOTEXY_SERVER_PORT 6377


// RemoteXY configurate  
#pragma pack(push, 1)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (wfidrock)]]></author>
			<pubDate>Sun, 17 Nov 2019 14:42:56 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2435#p2435</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a device not yet supported....]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2021#p2021</link>
			<description><![CDATA[<div class="quotebox"><cite>Guillaume wrote:</cite><blockquote><p>&quot;#define REMOTEXY_SERIAL Serial2&quot; not working ?</p></blockquote></div><br /><p>Well I&#039;m sort of getting there, but am now getting &quot;Error: (61) Connection refused&quot;</p><p>This is the sketch I am using to try and get this working, which works fine if I connect using Serial1</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library 
#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings 
#define REMOTEXY_SERIAL Serial2
#define REMOTEXY_SERIAL_SPEED 115200
#define REMOTEXY_WIFI_SSID &quot;TeensyTest&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;12345678&quot;
#define REMOTEXY_SERVER_PORT 6377


// RemoteXY configurate  
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,1,0,1,0,19,0,8,13,0,
  1,0,17,19,12,12,2,31,88,0,
  65,4,48,20,9,9 };
  
// this structure defines all the variables of your control interface 
struct {

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

    // output variable
  uint8_t led_1_r; // =0..255 LED Red brightness 

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

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////
 



// **********************************************************************

void setup() {

  RemoteXY_Init (); 
 
} // end setup

// ***********************************************************************
// LOOP
// ***********************************************************************

void loop() {

  RemoteXY_Handler ();
 
  RemoteXY.led_1_r = RemoteXY.button_1 * 255;

  delay(25);
  
} // void(loop)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Daba)]]></author>
			<pubDate>Mon, 25 Feb 2019 09:27:15 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2021#p2021</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a device not yet supported....]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2020#p2020</link>
			<description><![CDATA[<p>&quot;#define REMOTEXY_SERIAL Serial2&quot; not working ?</p>]]></description>
			<author><![CDATA[null@example.com (Guillaume)]]></author>
			<pubDate>Sun, 24 Feb 2019 20:16:22 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2020#p2020</guid>
		</item>
		<item>
			<title><![CDATA[How to add a device not yet supported....]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2019#p2019</link>
			<description><![CDATA[<p>My latest project is using the Teensy 3.2, which has 3 serial ports. I want to use RX/TX1 (pins 0/1) for the serial monitor in the Arduino IDE, and RX/TX2 (pins 9/10) for my RemoteXY interface.</p><p>Since you have to specify which serial port to use in the RemoteXY configuration as &quot;Serial1&quot; (the project does not compile without that 1 on the end), I chose the Arduino Micro as the module, which correctly gives me Serial1 as REMOTEXY_SERIAL</p><p>Now I want to move the RemoteXY interface to Serial2, to free up Serial1 for the IDE monitor, but have no way of telling the RemoteXY initialisation which pins to use for the serial comms.</p><p>Now I know I&#039;m going to have to hack the library a bit to do this, but genuinely don&#039;t know where to look.&nbsp; Does anyone know if this is at all possible, and where to achieve it ?</p><p>If the Module Configuration had been a little more &quot;flexible&quot;, allowing us to choose the TX and RX pins, you would be able to use pretty much any hard serial port on any board, despite not having your target board as a listed and supported board.</p>]]></description>
			<author><![CDATA[null@example.com (Daba)]]></author>
			<pubDate>Sat, 23 Feb 2019 10:58:57 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2019#p2019</guid>
		</item>
	</channel>
</rss>
