Controlling GPIB device on remote computer - rmi

I am trying to connect to two devices connected via GPIB on a remote computer connected directly via a Ethernet cable. I am using a JPIB library I found, but I am having difficulty determining how to connect to the remote computer.
My goal is to control and read the devices by connecting to the remote computer. I am also unsure as to what program or software I need to install on the remote server.
Thank you in advance,

If you can use the VISA API instead of the GPIB API, install NI-VISA on both computers. On the remote computer, enable the VISA server. You can then use the VISA API to connect to the GPIB device attached to the remote computer.
For example, if the remote computer is at 192.168.0.111, and the instrument address is:
GPIB0::16::INSTR
it can be accessed remotely as:
visa://192.168.0.111/GPIB0::16::INSTR
You can also use a hostname in place of an IP address.
To call VISA from Java, you can use JNA to invoke VISA API functions. A JNA library can be created from a stripped down copy of visa.h (just the functions you need) and even generated with a tool like JNAerator.
This works on Windows. I'm not familiar with the Linux version of NI-VISA>

Related

How to create a virtual network interface on a remote machine bridge to an interface on a local machine?

I have a local Linux machine (L), with a network interface (eth0) connected to (currently) only one device (D).
L/eth0 only has an ipv6 link local address.
D also only has an ipv6 link local address.
Client software on L discovers D's link local address by sending a custom multicast packet over eth0. The response contain the device link local address as well as some configuration information. From there it communicates with the device using various UDP or TCP port.
My goal is to be able to use the device from a remote machine (R). The remote machine being most likely a Linux docker container running on some host - although it could be a native macOS or other.
That means running both the discovery protocol and communicate with the device. I definitely cannot modify software on the device, and cannot modify most of the client software running on the local Linux or remote machine (Limited modification could possibly be requested)
My idea was to somehow create a virtual interface on the remote machine, that would remotely be bridged to the the local machine, so that the multicast discovery works from the remote, and so that I can just connect to D link local address from the remote.
I'm not sure which tool(s) I should be using.
I'm googling various things about VPN and tunnel, TUN/TAP interfaces, bridges, VETH, VLAN, etc... but I'm having trouble connecting the dots here... I have no budget for this, so I'm looking for open source tools, or just something I can cobble up together with common tools.
Thanks

Data transfer Windows Embedded Compact 7 & Computer VIA USB connection

I made an app using the barcoding for inventory management, now i need to transfer that data to the computer. For this purpose i used TCP/IP Host client sample applications given in windows mobile 6.5.3 SDK samples.
When i run the application its' fine no errors, shows connected to the Host IP but no data is transferred, When i debugged there is no exception code just works fine but there is no functionality performed. My connection is USB connection. IP shown in host application is correct, my device is also having IP (check through ipconfig). Now when i ping my host computer from device, it is giving error
PING: transmit failed, error code 11010
Is my approach right towards this situation using this data transfer over this socket ? If yes then how can i make this connection successful ? If not what is the other solution for this data transfer from device to computer. (software on device is using SQL CE and application on computer is ASP.NET application using SQL Server database.)
I saw various similar questions about this problem but unable to find any suitable solution. PS i am new this platform of windows mobile/embedded
If not what is the other solution for this data transfer from device
to computer. (software on device is using SQL CE and application on
computer is ASP.NET application using SQL Server database.)
These are some common solutions for client/server communications on Windows Mobile:
Use RAPI or RAPI2 to communicate with the mobile device and host PC using the USB ActiveSync/Windows Mobile Device Center connection. You could use this option to export a CSV file from the mobile device to the host PC. Then you can import the CSV file into the host database. Requires physical access to host PC via USB.
Call a web service to transmit the data to the server. You can write a simple RESTful web service using ASP.NET Web API. If you're using C++ you can use WinInet API, but it's kind of painful. If you're using C# then you have built-in support and it's not an issue.
Use SQL CE Replication.

Accessing Raspbian Filesystem on SD-Card via USB-Connection from Windows

Is it possible to access the filesystem directly via USB when i connect it to my Windows PC ?
I don't want to ssh on the system, i want to mount it inside the Windows operating system, so that i can directly write to it without establishing a ssh connection for example.
Any Ideas how to do this ? Or isn't this possible ?
When it comes to simply accessing the file system you can always use some piece of software that will allow you to access linuxish file systems, so you can just plug in the SD card to your Windows machine (A quick google search: http://www.howtogeek.com/112888/3-ways-to-access-your-linux-partitions-from-windows/).
However, if you want your Raspberry running during those actions, you could use some sort of usb to serial cable (like this one: http://www.adafruit.com/products/954), but you will still need to use Putty or some similar software for the serial connection. On the bright side, connecting your pi that way means it will no longer need an external power supply. Just on a side note, what are your concerns about the ssh connection?

Raspberry-PI system smart control through android apps

How can smartly/remotely control a Raspberry-PI system through android apps. I have found an android app named "Raspberry Control" (source). I have followed all the steps as given in the above URL.
I have installed the android app in my phone (samsung galaxy note, recent release in 2014) followed tried to make a connection of android app with my RPI system (I have followed the steps mentioned in this Youtube video). But as shown in video, when the app started from phone, it needs a SSH connection (showed at 0.25 in the video). Unfortunately, I have faced an error like "check installation on RPi".
Thanks in advance for your precious time. Do I need to install any software on raspberry pi or am I missing any steps?
Secure Shell (SSH) is a network protocol that allows data to be
exchanged over a secure channel between two computers. Encryption
provides confidentiality and integrity of data. SSH uses public-key
cryptography to authenticate the remote computer and allow the remote
computer to authenticate the user, if necessary. SSH is typically used
to log into a remote machine and execute commands, but it also
supports tunneling, forwarding arbitrary TCP ports and X11
connections; file transfer can be accomplished using the associated
SFTP or SCP protocols. An SSH server, by default, listens on the
standard TCP port 22. An SSH client program is typically used for
establishing connections to an sshd daemon accepting remote
connections. Both are commonly present on most modern operating
systems, including Mac OS X, GNU/Linux, Solaris and OpenVMS.
Proprietary, freeware and open source versions of various levels of
complexity and completeness exist.
-Wiki
You found a complete guide/dossier in this link. The install instruction can change depending on the system.
You can control rpi trought ssh simply from windows, linux, android, iOs using a ssh telnet/client. Your app simply after press a button send to rpi the correct ssh comand.
If you have debian(or raspbian) this guide is for you:https://wiki.debian.org/en/SSH.
So, you must enable the ssh service on your rpi. Username and password are user/pass of your rpi account.

Accessing the windows admin shares when not connected to a network

I'm finding that I can't access the admin shares on an XP64 box when there's no network connection. Trying to browse to \\localhost\c$ fails (although obviously browsing c: works).
Reason for the question is that the NANT build script for our application uses this format to copy files from one local directory to another, and it's failing when I'm trying to use my laptop on the train (the same problem occurs if I unplug the network cable from my desktop and build). The whole build only uses local resources so should be possible without network connection.
You could install a loopback adapter to fool the computer into thinking it's on a network. http://support.microsoft.com/kb/839013