+12

ALL Drivers NOT showing their correct state

rocfusion 10 years ago in Products / Other drivers updated by Ekaterina (head of support) 9 years ago 9
Hi,

Use the attached project,
Set the IP Address to the GC driver to local ip of the global cache device you have.
run the project
Device is shown online
Unplug the network connector from the global cache device
the device still shows in the emulator the device is connected.
Next,  turn off\unplug the network cable on your system running the emulator so that there is no network access.
The emulator still shows that the global cache driver is connected.

Update:::  I have tested this with KNX IP Router,  this will timeout the connection when the timeout value is reached with both cases.  It should put the driver into a offline state the moment the internet connection is down.

Then I tested this with the AV TCP driver,  again the same as the GC Driver.

To conclude;  firstly there should be a configurable timeout setting for all drivers like the KNX IP Router driver.
Secondly,  the moment that the internet connection is lost,  ie no wifi,  wifi card turned off and with wired network connections, network card gets disabled or network cable unplugged  then ALL drivers configured in the project should be pushed into an offline state.

Thanks,



Roger
Hello Roger,


Unplug the network connector from the global cache device
the device still shows in the emulator the device is connected.
Next,  turn off\unplug the network cable on your system running the emulator so that there is no network access.
The emulator still shows that the global cache driver is connected.


Client doesn't know, that connect is broken, because there isn’t traffic between the client and Global Cache device. We plan to add a function "Ping Time" for Global Cache Driver in one of next releases.

Update:::  I have tested this with KNX IP Router,  this will timeout the connection when the timeout value is reached with both cases.  It should put the driver into a offline state the moment the internet connection is down.


If driver has function "ping" and ping is broken - token "online" is 0 (offline), token "status" is 1 ("connect"). For example, KNX and BAOS.


Then I tested this with the AV TCP driver,  again the same as the GC Driver.

To conclude;  firstly there should be a configurable timeout setting for all drivers like the KNX IP Router driver.
Secondly,  the moment that the internet connection is lost,  ie no wifi,  wifi card turned off and with wired network connections, network card gets disabled or network cable unplugged  then ALL drivers configured in the project should be pushed into an offline state.


We can't add a function "ping" in AV & Custom System Drivers, because we don't know, which device connected to iRidium and how to make correct communication with it. You should do it yourself in script for each device.
Hi Oksana,

Pinging from IOS is possible,  see http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol

And the same for Android,  http://s0n1c2122.blogspot.be/2012/12/android-app-turn-on-your-computer-part.html

After all its only an ICMP packet.  http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol

If there is no way of incorporating it,  I would suggest to make sure that the timeout value is configurable for all drivers and to use an additional  Listener that will trigger on a timeout. so IR.AddListener(IR.EVENT_DEVICE_TIMEOUT, Device, function(){})

This will allow to then act on devices that are timing out.

Thanks,


Roger
Hi,

We reported this problem too, about 2 days ago.

We find out, the online token for Global Caché can not be used, because it's not displaying the right information.

2 options in my opinion:
1) Fix it –> the online token is displaying the actual state of the connection
2) Delete the online token in GC-driver

But now my installers are testing it, with the result: 'we can not use it'.

Thanks

Theo
Hello Roger,

Thank you for your care, we will research your link, and may be we make use of their. But at the first place, we write a uniform cross-platform app, not only for iOS, for Android, for Windows.

Hello Theo,

the answer to your question is below:

We plan to add a function "Ping Time" for Global Cache Driver in one of next releases.
Waiting for user's reply
Hello, please add function "Ping Time " for all device. It's a main function in system.

I add Global Cache Driver in the Server, but whenever I check the driver status, it is offline every time. what is the issue.

But,

whenever I use Global Cache Driver in Client project, it is working.

The problem solved, the Test Mode on server wasn't turned on but it wasn't displayed in web interface of Server correctly