1

Topic: VisuinoWithESP2

Hello RemoteXY community,

I'm trying to understand why my code isn't working, my first try was a success, everything worked perfectly, that's why I bought the Pro version because I saw a lot of potential in this application.
Now that my code has grown, I want to watch more data on my phone, but somehow connecting to the board doesn't work anymore.

This is my first code that works without any problems.

/*
   -- New project --
   
   This source code of graphical user interface
   has been generated automatically by RemoteXY editor.
   To compile this code using RemoteXY library 3.1.7 or later version
   download by link http://remotexy.com/en/library/
   To connect using RemoteXY mobile app by link http://remotexy.com/en/download/                   
     - for ANDROID 4.10.2 or later version;
     - for iOS 1.8.2 or later version;
   
   This source code is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.   
*/

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP32CORE_BLE
#include <BLEDevice.h>

#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_BLUETOOTH_NAME "RemoteXY"


// RemoteXY configurate 
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,4,0,8,0,22,0,15,31,1,
  7,45,12,57,20,5,2,26,31,1,
  68,18,3,12,58,28,8,122,135 };
 
// this structure defines all the variables and events of your control interface
struct {

    // input variables
  float edit_1;

    // output variables
  float onlineGraph_1_var1;
  float onlineGraph_1_var2;

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

} RemoteXY;
#pragma pack(pop)

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



void setup()
{
  RemoteXY_Init ();
 
 
  // TODO you setup code
 
}

void loop()
{
  RemoteXY_Handler ();
 
 
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay()


}


The second code I'm struggling with is this:

/*
   -- Broofer --
   
   This source code of graphical user interface
   has been generated automatically by RemoteXY editor.
   To compile this code using RemoteXY library 3.1.7 or later version
   download by link http://remotexy.com/en/library/
   To connect using RemoteXY mobile app by link http://remotexy.com/en/download/                   
     - for ANDROID 4.10.2 or later version;
     - for iOS 1.8.2 or later version;
   
   This source code is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.   
*/

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP32CORE_BLE
#include <BLEDevice.h>

#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_BLUETOOTH_NAME "Broofer"


// RemoteXY configurate 
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,2,0,77,0,216,0,15,28,1,
  67,5,3,9,20,5,30,26,11,67,
  5,3,19,20,5,30,26,11,67,5,
  3,29,20,5,30,26,11,67,5,3,
  40,20,5,30,26,11,67,5,36,29,
  20,5,35,26,11,67,5,36,19,20,
  5,5,26,11,7,53,4,61,20,5,
  30,26,2,129,0,3,4,28,4,30,
  90,111,110,101,32,49,32,66,114,111,
  111,102,101,114,0,129,0,3,15,49,
  4,30,90,111,110,101,32,50,0,129,
  0,3,24,13,4,30,90,111,110,101,
  32,51,0,129,0,3,35,13,4,30,
  90,111,110,101,32,52,0,129,0,4,
  55,17,4,31,83,101,116,32,112,111,
  105,110,116,0,129,0,32,14,31,4,
  14,76,101,105,115,116,117,110,103,32,
  75,195,188,104,108,101,110,0,129,0,
  32,25,30,4,35,76,101,105,115,116,
  117,110,103,32,72,101,105,122,101,110,
  0,67,5,33,61,20,5,30,26,11,
  129,0,34,55,10,4,30,83,116,114,
  111,109,0 };
 
// this structure defines all the variables and events of your control interface
struct {

    // input variables
  int16_t edit_1;  // 32767.. +32767

    // output variables
  char text_1[11];  // string UTF8 end zero
  char text_2[11];  // string UTF8 end zero
  char text_3[11];  // string UTF8 end zero
  char text_4[11];  // string UTF8 end zero
  char text_5[11];  // string UTF8 end zero
  char text_6[11];  // string UTF8 end zero
  char text_7[11];  // string UTF8 end zero

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

} RemoteXY;
#pragma pack(pop)

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



void setup()
{
  RemoteXY_Init ();
 
 
  // TODO you setup code
 
}

void loop()
{
  RemoteXY_Handler ();
 
 
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay()


}

Maybe someone has time to test it and give me a tip what I'm doing wrong...
Thank you.

2

Re: VisuinoWithESP2

We uploaded this code to ESP32 and it works. Can you tell us more about this error message you are seeing?
We use Arduino IDE.

3

Re: VisuinoWithESP2

good day. I don't want to create a new topic. I have an ESP32 board when compiling a file, an error pops up. 'RemoteXY_Init' was not declared in this scope

please tell me how to solve it.
Program FLprog v7.4.2

4

Re: VisuinoWithESP2

#include "BluetoothSerial.h"
BluetoothSerial Serial3;
#define REMOTEXY_MODE__HESP32BLT
#include <RemoteXY.h>
#define REMOTEXY_SERIAL Serial3
#define REMOTEXY_SERIAL_SPEED 9600
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = {255, 1, 0, 1, 0, 21, 0, 15, 88, 1, 1, 0, 25, 22, 12, 12, 2, 31, 0, 70, 16, 27, 48, 9, 9, 26, 37, 0};
struct
{
    unsigned char button_1;
    unsigned char led_1;
    unsigned char connect_flag;
}
RemoteXY;
#pragma pack(pop)
void setup()
{
    Serial3.begin("RemoteXY");
    RemoteXY_Init ();
}
void loop()
{
    RemoteXY_Handler  ();
    //Плата:1
    RemoteXY.led_1 = 0;
}
bool _isTimer(unsigned long startTime, unsigned long period)
{
    unsigned long currentTime;
    currentTime = millis();
    if (currentTime>= startTime)
    {
        return (currentTime>=(startTime + period));
    }
     else
    {
        return (currentTime >=(4294967295-startTime+period));
    }

5

Re: VisuinoWithESP2

remotexy wrote:

We uploaded this code to ESP32 and it works. Can you tell us more about this error message you are seeing?
We use Arduino IDE.

First of all thank you very much for your time.

I am using visuino 8.0.0.37 and the RemoteXY 3.1.6 library.
The board wich I am using is ESP2 NodeMCU.

I assumed you tried the second code and it works, the app on my Samsung S10 works with the first code but not with the second code. When connecting following messages appers:

App version 4.10.2,API31
Device started
BLE connection started
Connecting to BLE device
BLE device connected
Receiving GUI configuration
Read timeout error
Receiving GUI configuration,try 2...
Read timeout error
Receiving GUI configuration,try 3...
Read timeout error
Receiving GUI configuration,try 4...
Read timeout error

And at the end
Board not reply.


I hope this helps you to find my problem....

6

Re: VisuinoWithESP2

marinconstantinalin wrote:

I assumed you tried the second code and it works.

Yes.
I see that your Android OS is 12. This is different. We will be testing on Android 12.
Can you test on Arduino IDE?

7

Re: VisuinoWithESP2

Hello,

Update smile

I tried it with the Arduino IDE but I had no luck...
Still doesn't work. I also tried with an older Android system app version API 26

Any ideas ?

8

Re: VisuinoWithESP2

We are unable to reproduce this bug.
Maybe to test another ESP...
May be different firmware of ESP. Next we update the firmware of ESP and will test it.

9

Re: VisuinoWithESP2

Ok,
Thank for your time. I'll let you know if the problem...