Advantech Computer LAN Card | Network connection unable to connect to the local network devices.(the PLC, scanners, etc) on startup.

Resolution:

Many of you have seen a recent issue where our software is unable to connect to the local network devices(the PLC, scanners, etc) on startup. Because we have seen it in a couple places now (P-Mall, Moroccan Oil) we thought it might be a good idea to share the fix with it.  We will work on getting it into the standard image so you won’t have to do this. 

You can fix this immediately by disabling and enabling the adapter from the network settings - but once the machine is restarted the problem will return. This can be fixed long term - by automating the disabling/enabling to happen on start up. To do that - you can do the following

  1. From Windows Explorer - go to the C:/Cubiscan directory
  2. Copy and paste a copy of the "QbitStart.bat" batch file so you have a batch file you can edit.
  3. Change the name of the new batch file to be "NetworkFix.bat"
  4. Edit NetworkFix.bat with Notepad++ and set the contents to be the following lines

echo off

title Start Cubiscan Network Fix

 netsh interface set interface "Cubiscan Local Peripherals" disabled

 SLEEP 2

 netsh interface set interface "Cubiscan Local Peripherals" enabled

  1. Log in as the admin user on the PC.
  2. Hit the windows key and type "Task Scheduler" to open the task scheduler
  3. On the left click Task Scheduler Library -> then on the right click "Create Task"
  4. Enter the following information for the task
    1. General
  5. Name: "NetworkFixTask"
  6. Check "Run whether user is logged on or not"
  7. Check "Run with highest privileges"
  8. Configure For: Select "Windows 7"
    1. Triggers
  1. Create new Trigger so that the task will run "On Startup"
    1. Actions
  1. Create an a new action
  2. Action -> "Start a program"
  3. Program/Script: C:\Cubiscan\NetworkFix.bat
  4. Hit OK
  1. Shutdown (not restart) and start the machine to see if the fix worked.

Ken or I are happy to help to set this up – we just wanted to make sure people would have to fix if they needed it.  We aren’t sure why this is happening – it may be a certain version of Windows. We will keep researching on it and keep you posted.  Reach out with any questions.

 

DANIEL KING