1

Topic: Arduino Giga

RemoteXY says that the Giga does not support an Access Point, so I am unable to use it for Wifi with the Arduino Giga.

The giga has an integrated Wifi, which does support an AP.

Is this a shortcoming of the library, or is there a workaround?

2

Re: Arduino Giga

Try the following steps:
1. Find the RemoteXYComm_WiFi.h file in the remotexy.h library. Find in RemoteXY\src folder.
2. Find the next line in the file:

#elif defined (WiFiNINA_h) || defined (WiFiS3_h)

3. Replase this line with:

#elif defined (WiFiNINA_h) || defined (WiFiS3_h) || defined (ARDUINO_ARCH_MBED)

Please tell us, did you manage to get the board to work in point mode?

3

Re: Arduino Giga

Is there an easy way to modify the library file to make the change and test?
Or do I have to go through all the steps of creating a new dummy library, etc?
Chris

4

Re: Arduino Giga

I have made the edit suggested to RemoteXYComm_WiFi.h and now it creates a access point.
However the phone app won't connect.
Screenshot of the phone log:

myRemoteXY
<
13:49:32.995 App version 4.15.11, API 35
13:49:33.039 Pending device...
13:49:38.744 Device started
13:49:38.744 WiFi point connection started
13:49:38.746 Finding Wi-Fi point...
13:49:43.800 Wi-Fi point found
13:49:43.800 Waiting DHCP configuration...
13:49:43.807 DHCP configuration found
13:49:44.117 Finding IP address...
13:49:44.120 Network IP address: 192.168.3.2
13:49:44.120 Device IP address: 1.3.168.192
13:49:44.636 Connecting to 1.3.168.192:6377... (from network)
13:49:50.897 Connecting to 1.3.168.192:6377 ... (bind network)
13:49:57.156 Connecting to 1.3.168.192:6377 ... (free network)
13:50:03.415 Connecting to 1.3.168.192:6377... (free network)
13:50:09.443 Connection error: failed to connect to /1.3.168.192 (port 6377) from /192.168.3.2 (port 45702) after 6000ms
13:50:09.448 Disconnect

5

Re: Arduino Giga

I see strange behavior in the log.
The board connected with the IP address 192.168.3.2 but the access point address is 1.3.168.192. In fact, this address is usually 192.168.3.1. That is, the address bytes are turned backwards.
Now I don't know why the access point returned such an address. The phone can't find a route at this address, since it has no connections with a similar address.
This may be due to a feature of the GIGA board. Maybe you set the IP address in the code manually, then this should be removed. There might be a mistake in something else. Unfortunately we don't have a GIGA board to test this at the moment.

6

Re: Arduino Giga

Please see what IP addresses the phone settings will show you. Connect to the access point manually through the settings. Click on the connected network and find information on IP addresses. There should be:
1. IP address: 192.168.3.2
2. Router: ???????
What does your "router" setting show?

7

Re: Arduino Giga

The auduino log:

[    1.336] WiFi point created
[    1.337] IP: 192.168.3.1
[    1.338] RemoteXY started
[    1.338] Server opened on port 6377

The phone normal wifi connects to it:
says there is a gateway 192.168.3.1
but says the IP of the device is 192.168.3.2

<- Network details
Add device
Use a QR code to add a device to this network
Network details
Type
Wi-Fi 4
Randomized MAC address
76:51:a2:dd:b3:25
IP address
192.168.3.2
Gateway
192.168.3.1
Subnet mask
255.255.255.0
DNS
192.168.3.1
Transmit link speed
65 Mbps
Receive link speed
65 Mbps
IPv6 addresses
fe80::7451:a2ff:fedd:b325

If I connect the computer to the remotexy wifi also and do an IPConfig:

Wireless LAN adapter Wi-Fi:
Connection-speci-fic    DNS Su-f-fix . :
Link-local IPv6 Address    :    -fe80: :a9cf :6c-f3:44ee:3a-fc%18
IPv4 Address    :    192.168.3.3
Subnet Mask      :    255.255.255.0
De-fault Gateway    :    192.168.3.1



There is no reversal of the IP, that seems to be happening in the RemoteXY connection/library.

8

Re: Arduino Giga

This may be a bug in Android 15. The vast majority of apps do not need to detect the IP address of the router. We need to do more testing. Can you test on Android 14 or earlier?
Perhaps we can modify the app code to reverse the IP address if it looks suspicious. However, the code that is currently in the app works fine on many devices. We would like to understand why this is happening.

9

Re: Arduino Giga

I have tested it on An Android ver 11, and it does exactly the same thing as the 15, including the IP reversal.

10

Re: Arduino Giga

We will try to fix this in the next version of the application.

11

Re: Arduino Giga

Good, what is your time estimate?
We want to use this for our autonomous ocean going drone.

12

Re: Arduino Giga

If you can help with testing, it will be faster, since we don't have the GIGA board yet. Please email us info@remotexy.com.