Jump to content

UD Mobile on a PC? Also Viewing Variables question.


LFMc

Recommended Posts

Posted

I really like the UD Mobile app, thank you so much for creating it.  Is there any possibility of it getting ported over to run on a PC without using android emulators?  If not, is there a particular emulator that works well with it? 

I have a folder of variables in my favorites area. I view them multiple times a day. But, many times it takes 15-20 seconds (after opening up the variable inside the folder) for the value to pop up.  The old UD-Ajax app was 10x faster doing this.  Is there a problem or fix for this?  And yes, I do have local access via my wifi on the app, i.e. I am not going through the portal that I know of.  So my local wi-fi gateways are added and active inside the app. 

Posted

Hi @LFMc,

Thank you.  We will be working on a web version in the future although it will be some time.    Speed of the Android device,  speed of internet connection, and number of nodes can all affect duration of initial status population.

The portal connection is very fast although not as fast as a local connection. I have encountered may who believe they are using a local connection when they have only been using Portal.   So, first lets make sure you are in fact using the local connection. When connected to your local network go to Settings-Tab > Systems > Your-System > Advanced.  Now press "Test System on local connection".  Do you get a success message?  An error will be given if you are not on the local network or if a parameter, such as SSID, is missing.

Also in Advanced-Settings there is a switch to enable variables on launch, this will request the status as soon as the app is opened. Although this could slow the app if you have hundreds of variables.

As for an emulator, Android Studio has emulators of many devices and sizes.  Some of these devices have the play store included (evident by the play store icon next to the device).  If using one of these emulators UD Mobile can be downloaded from Google Play just like any other android device.  I believe the emulator will continue to run after Android Studio is closed, however I may be wrong.  In my opinion it would be easier to buy one of the higher end Amazon tablets then just leave UD Mobile running.  Install the Google Play Store for more functionality. UD Mobile is also available on the Amazon App store  however we still need to update to the latest version.  Amazon tablets will not have push notifications when implemented.  If you go the Amazon route let me know and I'll try to get the latest updates pushed to Amazon.

  • Like 1
  • Thanks 1
Posted (edited)

Thanks for the quick reply, info and tips.  I added both of my wifi networks to "local networks" previously and thought that was it. But I had to go back under the "advanced" area under "edit system" and add local credentials.  While I was at it, I turned on "request status of integer variables"  and now everything shows up instantly.  I haven't experienced any delay starting it yet, but I probably will experience it sometime later I guess.  FYI, I have a 120 integer variables, so it should have some impact. 

I may try out the emulator later and see how the desktop works for now. 

Thanks again for your help. 

Edited by LFMc
clarity
Posted (edited)

@Javi after I added local network, it had to resync.  Why?

And now it is failing to sync saying I have an incomplete firmware upgrade.  It syncs just fine using the portal.

 

After several attempts, it finally finished the sync.  But several times failed for various reasons.

Edited by apostolakisl
Posted

Hi @apostolakisl,

 

Sync is not needed if nothing has changed, the app will prompt to sync after save as most of the time users have just setup a system.  Cancel can be selected if this is an existing system with no changes.

This check was recently added and I think your issue may simply be a "/" at the end of the IP Address, I'll try to get this fixed soon.  If that is the case please remove the "/" at the end of the address, if this is not the case please continue reading.

Have you upgraded firmware since your last successful synchronization, or is this on POLISY?  

The app is checking for required files. We have reports of missing files when upgrading from a remote location or from Portal.  See the link below to see how to manually check if files are missing.  If this is the issue reinstallation of the same firmware can be done in the same way as a manual firmware upgrade.

https://github.com/UniversalDevicesInc/UD-Mobile-iOS#missing-data

  • Like 1
Posted

@Javi  None of the issues you speak of exist.  I did not have a / at the end of the IP.  I have not changed the firmware since the last sync.  In fact, I changed nothing between something like 4 attempts to sync and then finally it sync'd.  

Posted

Hi @apostolakisl,

Can this be replicated?   If "test system on local network" is successful will sync fail when tried again?

Please create a backup before trying again as some failed synchronizations may remove favorites, SQL foreign key is removed as the app believes a value no longer exists.

Posted
2 hours ago, LFMc said:

Thanks for the quick reply, info and tips.  I added both of my wifi networks to "local networks" previously and thought that was it. But I had to go back under the "advanced" area under "edit system" and add local credentials.  While I was at it, I turned on "request status of integer variables"  and now everything shows up instantly.  I haven't experienced any delay starting it yet, but I probably will experience it sometime later I guess.  FYI, I have a 120 integer variables, so it should have some impact. 

I may try out the emulator later and see how the desktop works for now. 

Thanks again for your help. 

No Problem,  the delay, if present, will be in the form of time until value is shown in app.  I almost never see this on the local network, but is present from remote access.

Posted (edited)
56 minutes ago, Javi said:

Hi @apostolakisl,

Can this be replicated?   If "test system on local network" is successful will sync fail when tried again?

Please create a backup before trying again as some failed synchronizations may remove favorites, SQL foreign key is removed as the app believes a value no longer exists.

Yes, I lost my favorites.  I had to do them all over again.

After it did sync, I clicked "test local network" and that was successful.  I don't have time right now to mess with it anymore.

EDIT:  Also, I would suggest an option to have the app open into favorites directly.

Edited by apostolakisl
Posted

Hi @apostolakisl,

This error will not cause favorites to be lost as it cancels the synchronization.  My guess it there was a poor connection or ISY needs to be rebooted. Needing reboot is rare but I have encountered a very small number of systems failing to send data to clients until rebooted.

 

There are widgets/shortcuts which will open favorites directly, for Android the shortcut is prefered. Long press app icon then drag the shortcut icon (next to the word Favorites) onto the home screen.

Guest
This topic is now closed to further replies.

×
×
  • Create New...