Is there a way to connect several usb device(f1) to a usb host(f4) via a usb hub with stm32? - stm32

good day community, i am working on a project which requires me to communicate with several blue pills(f1s) as USB device CDC(virtual com ports) using a USB hub while my f4 acting as USB host, all in USB Full Speed.
I have successfully tried communication of one F4 and one F1 but after i connected a hub to F4 and connect F1 to one of the terminal of hub the data could not be sent from F4.

Related

Raspberry Pi 4b v1.1 k8s cluster USB hub power supply

I'm planning on building a cluster of 5 or more rpi4b (v1.1).
Tutorial for that: Build a Raspberry Pi Cluster Computer
All is fine and dandy except for the power supply for all the units.
I have no intention of having individual cords from each unit to the wall, so I thought of a USB hub power supply with multiple ports. This would also allow me to increase the unit count in the future will less hassle.
Also, assume an ethernet cable and a small SSD drive connected via USB per unit. No screen or HID device connected.
What would be a good fit for running the cluster 24/7?
I thought of these:
IWAIVON USB Wall Charger
Anker PowerPort Speed 4 Port
Anker PowerPort 10
RavPower Prime 60W 6 Port
Assuming that every USB port in the hub will be (eventually) connected and having in mind that RaspberryPi4B v1.1 specs states that it requires a 5v/3A power supply which none of these supply, what will be a good USB hub power supply? It doesn't have to be one I listed...

Connect two raspberry Pis using USB cable or USB-serial

I'm working on a project where I need two raspberry pis to communicate and the ethernet port is not free, I'm not allowed to make any changes to the GPIO pins, and I'm forced to use the USB port due to hardware considerations. Is it possible for them to communicate using a direct USB cable, or perhaps using two USB-RS232 cables?
Thanks!
Siddharth
I would use the TTL serial pins on the GIO header. See https://elinux.org/images/1/13/Adafruit-connection.jpg
You could create your own simple null modem serial cable - consisting of 3 jumper cables.
Connect pins
6 <--> 6
8 <--> 10
10 <--> 8
If you can't use the GPIO header - you can do a USB to USB connection using USBNET. http://www.linux-usb.org/usbnet/
Is it possible for them to communicate using a direct USB cable, or perhaps using two USB-RS232 cables?
You fail to mention exactly which Raspberry Pi version(s) you are using.
Only the Raspberry PI Zero can be used as a USB Gadget.
Since USB is a master-slave(s) interface & protocol, you cannot simply connect two Raspberry PI 1/2/3 boards together using USB, because that would be a master-to-master connection.
If you look hard enough for a (passive) USB Type A (male) to Type A (male) cable, you can find them, but it's a bogus connection that will not work.
There are active USB host-to-host cables (which contain a shared gadget), but support can be an issue.
You could connect a Raspberry PI 1/2/3 to a Raspberry PI Zero by USB, so long as the Zero's USB port was configured as a USB ACM CDC gadget.
However one simple solution is your alternative of installing USB-to-RS232 adapters to each board. A null-modem cable of three wires would suffice unless you needed hardware flow-control.
An alternative solution is installing USB-to-Ethernet adapters to each board (with static IP addresses, i.e. an ad-hoc connection). This approach provides a much faster connection than an RS-232 link, and is easily utilized by applications.

Remote Connection to "Raspberry Pi" via "Windows IoT Remote Client" leads to a white blank screen

I have Windows 10 IoT installed on a Raspberry PI 3 B, and I am trying to connect to it via the Windows IoT Remote Client running on my laptop. (+)
As it mentioned here and here, there is a related known issue in Windows 10 IoT on build number 16299.
Consequently, when I try to connect my Raspberry PI via the Remote Client, it shows me only a white screen. However, it makes me able to use the mouse and keyboard connected to my laptop to control the Raspberry Pi.
In the description of the known issue, it says: "Drivers must be manually copied and registered on the device.".
Then my question is what do you know about the drivers that should be copied manually?
And is there any way except than waiting for next release of windows 10 IoT?

Communicate Between two Matlab Sessions Using Data Transfer Cable

We have a shared PC in our LAB, connected to a Vector Network Analyzer (VNA). The PC communicates with the VNA through GPIB port, using Matlab functions. For my work, i need to acquire real-time data from the VNA into my own PC, which is few meters away from the VNA PC. I dont want to have wireless solutions due to the interference that might happen. I intend to buy a USB data transfer cable to connect the Matlab. But i couldn't find in google any similar idea to do so. I was wondering is such a solution practical? Does anybody has the same experience? And will be any problem regarding the drivers?
in USB bus systems there can only be one USB host all other devices are in USB device mode.in most cases the USB controllers of PCs are not capable of USB device mode, they all want to be USB host. in other bus systems like I2C this is called master-slave architecture
if you are lucky one of your PCs can be set to device mode and in this case this will work but your chances are very slim (because of the problem with the USB host and USB device mode)
https://unix.stackexchange.com/questions/195765/is-usb-to-usb-data-transfer-between-two-linux-oses-possible
a better solution would be to use ethernet
there are also modules in MATLAB for real-time communication over ethernet (Real-Time Transmit and Receive over Ethernet)
if your pcs have unused ethernet ports use an ethernet crossover cable (http://en.wikipedia.org/wiki/Ethernet_crossover_cable) and connect the pcs (i.e. http://www.ccm.net/faq/6340-connect-pcs-using-a-crossover-ethernet-cable)
else use an ethernet switch (or hub) to establish the ethernet communication between the pcs
beside MATLAB for communication you can use i.e. ssh or install a vnc server on one of the machines and remote-control it with a vnc client on the other,...
USB
with USB-to-ethernet adapters (ebay,...) you can use ethernet over usb when connecting the usb-to-ethernet adapters via a ethernet crossover cable
another possibility is to use two USB-to-serial adapters and connect them with a RS-232 crossover cable and then use RS-232 protocol for communication (putty,...)

Intel Edison with mini breakout board does not boot

I have an Intel Edison with the mini breakout board. I have connected a USB cable to the J3 connector and I see the serial device, FT232R USB UART, on my computer. But when I try to connect using screen /dev/tty.usbserial-A502LTL3 115200 -L I get a blank screen. It seems like the Edison is not on.
You need to connect a USB cable to the J16 connector as well. The J16 USB port provides power to the Edison board. The other one, J3, is only for serial access - it does not power the board.