TwinCat 3 Remote Deploy to XAR - twincat

I'm was trying to deploy my code to a device with XAR, but I only find solutions that I've to be in the same network...
Is it possible to deploy to a device with XAR which is not in my network? I want to be at the office and try to deploy and connect to a PLC in a factory...

As with anything networking related, this is possible but will require a great deal of assistance from your company IT Team.
All that is needed to allow for deployment from one network to another is the ADS network ports opened for communication as detailed in Infosys. If you cannot gain access to the factory network for external connection then you will need to work through another solution.

Related

IoT management page with P2P connection

I'm really looking for advice and a starting point more than anything. So I'll try my best to explain my end goals and the challenge. I want to set up a local WiFi connection (P2P) between a Rpi3 (or any embedded system really, running linux) and a laptop. The Pi should be the server and laptop the client. The raspberry PI is going to be reading samples over USB from an SDR. I want the laptop to be able to connect to the network the pi throws up, and be able open a browser and view the results. I'm guessing what i need to read up on is ports/sockets and web programming in general. The cheepy IoT sensors and light bulbs seem to be able to do this (opening network and forwarding data) relatively easily but i cannot find any information online to aid in my quest. All the Best and thanks in advance.
Since the embedded system will be running Linux, you can do something along the following lines:
setup the wifi as an Access Point (example). Also setup DHCP Server (example), so the wifi will assign an IP address to connecting laptop.
Install a webserver (e.g. Apache).
Create the webpage/ web application you need to "serve" the data. Install this into Apache.
Ask follow-up questions if you like.

How to do offline sync to LAN network when no internet connection

We know that in Xamarin.forms there is functionality of Offline Sync in conjunction with Azure Mobile App when no internet connection to the cloud.
We had this requirment where we are utilising Azure Mobile App as well as offline sync. But since the app will be sitting on multiple devices on the LAN network so it will be nice if the Internet is down and it falls back to LAN so each devices can talk each other on the LAN. Is this possible to achieve this Xamarin.Forms? The concepts is similar to Offline Sync.
I'm appreciated your feedback.
Thanks
If you want to find devices and services in the local network you have to use something like Zeroconf.
You could have a look at https://github.com/onovotny/Zeroconf whether it fits your needs.

Windows hosting environment for application instances?

My team has developed a server application, each customer has its own instance of the server application that is hosted locally within our data center. The applications opens a number of TCP, UDP, SIP and RTP connections used by remote clients.
I have some questions regarding hosting of the server instances, in the current situation we make use of exe-files that are executed via a self-developed "Host Controller" using the System.Diagnostics.Process namespace to run the instances.
The reason for this is that individual instances of the application shall not affect other instances in the event of crashes, etc.
Is this a good choice of hosting? Is there any kind of infrastructure for hosting these applications similar to IIS, or can I also host these applications in IIS?
I am looking for a more stable hosting solution for those server applications, I've been looking for previous threads on the subject but does not find any good answers. The company wants to host the applications locally so a cloud-based solution is not the right answer here.
All answers are gratefully received, thanks in advance!
Looking at your question, I believe that you already have a hosting server in your data center. What you're asking is ... your development method like creating a separate instances for each remote connection is suitable or not? Am I right? Or you need help to find out a correct type of hosting (VPS, Reseller, Cloud or Dedicated) for this ?
I believe that separating instances from each other is a very good idea ... but it will increase the load on the server.

USB sync of local database to WP7

I have a requirement where data on SQL server needs to be synced to WP7 devices through USB.
I initially thought of writing a WCF Lib., but it'll go online & sync even if device is connected to USB in local network (Where it's easy & cheaper to get data over local network rather than go to internet & get it).
I have coded isolated storage to save the data synced, but i need an efficient way of getting data from local network, while it's connected to local network.
My questions are:
Is there a way to request data from local network when connected to local network in WCF?
Does someone have a C# code i can use to write synchronization routines to usb over local network? (I would love to have the code, if anyone has this)
Is there a better way of achieving what I'm trying to do?
I'm hoping for some quick answers for this problem, any help is greatly appreciated.
Thanks.
My recommendation would be for your WCF API to have an DNS name pointing to an internal IP address, which is not available outside of the local network and in the routing it will get resolved through USB and another DNS name pointing to an external IP Address which is only available outside of the local network. Your application would try to connect using the local IP address first, which should go through the local network and if it fails it should retry the with external option.
You can use NetworkInterface.NetworkInterfaceType to detect a connection of type Ethernet.
Implementing a full sync protocol is complicated and not something I would recommend attempting unless you really have to.
If you do go down this route I'd recommend using item based message queues and then syncing the queues (and replaying as necessary) rather than trying to sync database tables. It'll depend on the requirements of your application and nature of the data though.
Further to both Murven and Matt's answers, I'd recommend looking into the Microsoft Sync Framework, which supports WP7 as a client, commonly uses WCF on the server, and has great support for a wide range of edge cases.
You can then, as per Matt's answer, watch for connectivity changes and, on USB connection, start a sync to a local IP.
When it comes to targeting mango, you can implement it as a ResourceIntensiveTask and it will run when USB is connected, even if the app isn't running.

Need to Automate PPTP connectivity from Linux to Windows

I'm in need of setting up cron-based VPN connectivity from Ubuntu "Jaunty" to a Windows-based VPN over PPTP for incremental DB synchronization. Using the default Network Manager and PPTP module everything seems to work fine. However, I have 2 issues:
1) Despite checking "Use this only for resources", I still lose my local internet connection and am routed through their servers.
2) As a result of 1 I have need to automate connecting to and disconnecting from the VPN in order to perform various tasks as the machine is at the office and I am not.
Much of the information I'm finding on PPTPing from Linux to Windows involves the use of GUI Network Manager, etc. However, I need to perform these steps from the command line for the sake of automation. Can anyone point me to a quality bit of documentation for this specific case?
Best.
http://pptpclient.sourceforge.net/
I think this site has everything that you need :)

Resources