Remote usb connection C - c

I'm trying to connect to an USB device that's on a remote PC (because there is no 64-bit driver for it, remote PC is 32-bit).
I know the commands that I need to send to make settings on the device but I don't know how I can get connected to it. Is there a C++ or C# library that makes it possible to connect to this device on a remote PC?

You might be able to build something using Microsoft's RemoteFX technology, assuming Windows is your target platform.

Related

Connect to host from VSCode session running in container

I'm using a container to develop for an embedded system. To interact with the debugger I need openocd running on the host machine (as it needs USB access, and it's on a Windows machine therefore I can't access the USB port from the container), and connect to it with a gdb running in the container. I'd like to know if it is possible to forward/connect to a port from the host machine - from all that I've read until now this does not seem to be possible?
My current workaround is to run an SSH server in the container, forward it's port and open an SSH connection from the host to the container with reverse forwarding the openocd port. But that is quite a bit more convoluted than I'd like.
Just exposing the port to the local network and connecting via the public IP came to mind as well, but our corporate firewall blocks that.

Connecting to Volttron Central server from Windows PC on device LAN

I have a RPi running an instance of volttron-central. I can VNC into the RPi and view the Web UI from a browser pointed to localhost, so I know that it is running. However, when I attempt to connect from a PC connected to the same LAN using the RPi's IP address, I get "refused to connect" error.
Is this a security feature? If so, is there any-way of viewing the WEB UI from a different machine, or does it need to be running an instance of volttron-central locally?
Edit your config file to use an external address (e.g. not 127.0.0.1). In VOLTTRON_HOME (~/.volttron) edit the config file. Change the bind-web-address setting to equal (what you have above as 192.168.1.4) to http://192.168.1.4:8080. Then restart the platform.
Note: you should also make sure your /etc/hosts file has a mapping from the 192.168.1.4 onto your hostname, then you could goto https://foo:8080 rather than using the address. This will work with the bind-web-address, but not the vip-address.

Server-client chat program - VMware on the same machine

I'm trying to create a server-client chat program in c for Linux.
Considering I only have one computer (a power house at that) I'm trying to create it so I can talk to a server with vitual machines running ubuntu. The host OS is windows 10.
I have booted up two different vitual machines with ubuntu (using VMware) and set the network connection to be bridged.
I have the server program working, sorta, in that it connects to a socket (5000) and listens to wait for a client to connect.
On the client I run the client and it never seems to connect to the host and I'm not sure why. I'm not sure if I need to specify the IP address or port number or what (I'm totally new to this). This is supposed to be a TCP connection that works will work within all machines within the subnet.
Here is what I have for the server:
Server-chat.c
Here is what I have for the client:
client-chat.c
After I run the server I get to the listen part.
I switch to the client running VM and run my client program "./client-chat 127.0.0.1"
assuming that's what I need for it to connect but apparently not. Any direction or resources would be much loved.

Can driver for Windows 10 Desktop be used for Windows 10 IoT directly?

On a Windows 10 Desktop, I can install Samsung's USB Driver for Mobile Phone, downloadable from Samsung's Developer portal, so that their mobile phone is recognisable in Windows 10 desktop when connected over USB port.
Since I don't have access to the driver source code, rebuilding the driver to be a Universal Driver is not an option. I'm also not sure whether this is already a universal driver or not.
So, the question is whether it is possible to directly use the driver binaries, such as .sys, .inf file extracted from the desktop driver on the Minnowboard Max running Windows 10 IoT? Would it be compatible? I noticed that in the GPIO sample driver project, in addition to the .sys and .inf file, a ACPI table dat file generated from ASL file is required for deploying the driver, is it possible to get around it if the desktop USB driver can be reusable directly?

How to know wifi connection has internet enabled using windows apis

I am using Windows XP. I am using wlanapi dll for getting API of wifi. When I connected with any wifi interface, How to know wifi connection has internet connection enabled or not?
Is there any API or way to know??
You could try pinging a known server
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366050(v=vs.85).aspx
If not that I'm sure you could find something else in that library

Resources