Blog / News ArdSimX Interface Project Archive SimVim Panels Baron-58 sim Contacts/Donate

ArdSimX - Troubleshooting

Follow these steps only if ArdSimX plugin didn't find your Arduino after you went through the previous "Getting started" steps.

1. General guidelines:

2. LAN communication:

  • Check your LAN connections, router settings, switch, make sure you're using the right cable.
  • Check your firewall settings (see port 5080) or admin settings and access rights.
  • Check you LAN module/shield connections, please read this page about different modules.
  • If your PC has more than 1 active network (uses more than one net-card):

    In ArdSimX plugin "Status" screen you can see detected IP address of your X-Plane PC.

    Make sure Arduino is connected to the same network that the plugin detects

  • If Ethernet shield has a sticker with MAC address, use it, adding the line in the "setup" section of Arduino code:
    MAC_ADDR ( 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX )   // -- where 0xXX is the number as 0xDE etc.
    NOTE: If it is not labeled, just use the code as is, ArdSimX will assign the unique MAC address for each board.
  • If you have some problems with auto-connection you can try to define your Arduino IP and/or X-Plane IP addresses.

3. USB communication:

  • Open your Arduino base program code and make sure you have commented (or deleted) the #include <Ethernet.h> line to use USB connection.
  • Some serial drivers on Windows and MasOS Sierra systems are known to cause problems. Trying different drivers might work.
  • In Windows systems, if the plugin connects but inputs or outputs stop working after a short time, add the line "USB_FIX = 1" to the plugin's config.ini file.
  • The length and quality of USB cables can be a problem for fast data transfer sometimes. Use a good cable.
  • Also, on some machine or a laptop, the power it supplies to USB ports may not be enough if you use USB as power supply for Arduino (especially if you have some output devices connected to your board). Try to use external power supply.
  • Make sure you don't use "Serial.begin(xxxx)" function in the sketch (you don't need to start this function, it's already included in ArdSimX and the Serial protocol is used for communication with the plugin).
  • In your Arduino IDE, check the name of the port your Arduino uses. ArdSimX for Mac supports port names starting with "/dev/tty.usb..." and "/dev/tty.wchusb...", for Linux supports port names starting with "/dev/ttyUSB" or "/dev/ttyACM". ArdSimX for Windows checks ports from COM1 to COM64. If your Arduino is using a different port name, please contact us and tell us the port name so we can make the appropriate changes in the plugin.

Note about using Serial Monitor

If you need to use "Serial.print" for debugging of your code, you should be advised that it will cause errors when USB connection is used, due to ArdSimX library using "Serial" to communicate with the plugin.

Don't open Serial Monitor screen until connection with ArdSimX plugin is established!

To use the Monitor, first set the rate of serial communication to 115200 baud in your Arduino Serial Monitor screen and use the code below for monitoring instead of simple Serial.print():

if  (millis() - t > 100 )   {   Serial.println( ... );    t = millis();   }

thus serial output will not be executed in every program loop - you will see the difference - comfortable output with a frequency of 10 times per second instead of thousands. ( First assign the variable "unsigned long t; " in the head ).

Also, you can use LAN connection when you need to debug your code with serial monitor. After that detach Ethernet module and use USB.

© Copyright 2012-2016 - SimVim Design