How can I enable the ports, 'cause I tryed with simple usb-s and no one was actually working in the monitor usb ports
Related
I have a device connected to a USB and it periodically sends data to my PC. During the time it is not sending data, the USB cable needs to be removed, else, the device won't work (a fail-safe feature, if the USB cable is connected and attached to pc, the device is in communication mode, if the USB cable is disconnected from pc, it is in stand-alone operation mode).
I was thinking to use the Devcon so I font has to use another hardware, I'll just disable the USB port during an operation mode, then enable it during communication mode. However, the periodic transfer of data can be set to every 5,10,15,30 minutes depending on the settings.
My question is, will it be okay to disable/enable the USB port periodically? Say every 5 minutes? Won't it cause any problem in the long run? Or would it be more efficient for me to use external hardware, a switch to connect/disconnect the USB? Appreciate any advice or thoughts.
If devcon works for you, I don't see why it would cause any problems in the long run. There is no inherent reason why the hardware should get damaged when you run some commands in your software to disable a USB port.
Using external hardware to accomplish the same thing would not be more efficient because you'd have to pay for the hardware and maintain it.
I am trying to control some sensors and a hydraulic system and a vane with a servo via raspberry pi and arduino. I use serial node to communicate with arduino. One serial node for incoming data from arduino and one for sending data to arduino over node-red. The problem is node-red cannot lock the usb serial port and cannot communicate with arduino while arduino ide can do it. In Node-red forum They have advised me to closed other programs that can use the serial port. I have closed arduino ide and reset Pi 4 but nothing changed. I have restart them but problem still stands.
Is there a way to solve this locking problem?
How can I see the serial ports and the programs that use the ports?
Can I prevent them to use these ports with a javascript or a python function code?
I have found the problem and fix it. There is no other program or software was using serial port /dev/ttyACM0 was being used by another flow in a passive node-red window. I have to delete that page and nodes.
Is there a way to use InpOut32.dll to poll for input from a USB port? I have a parallel port to USB adapter and the driver it installed is USB Printing Support. Is there a way to find the hex value of the port? I'm going to write this in MASM.
It is not possible to use an USB->Parport Adapter with InpOut.dll - these adapters work only with printers. They speak the printer protocol over USB.
These adapter types simply provide no port to control for InpOut.dll.
You might get away with a PCI/PICe parport adapter, these have I/O ports.
my problem is to connect two identical devices with OTG-capable USB interfaces. Is this a simple giveaway or do I have to start and stop host- and device-mode manually with an arbitrary timing pattern so that eventually one is hit in device mode when the other one is an OTG host? From skimming over the APIs of several USB-stack producers it is unclear to me if symmetrical connections are possible at all.
regards,
slarti
PS: the device is an AVR32
The official cable has a "jumper" in the A end that tells the device it is plugged into to be the host. The OTG Supplement also includes a Host Negotiation Protocol which allows the two dual-role devices to interchange roles.
My motherboard is small and don't have a printer port, all the tutorials (program LEDs, motor etc.) of hardware programming tell the use of this port or a USB to printer port converter to program hardware.
Is there any other way and any other port (for example USB) to program hardware?
I suggest to buy Arduino which can easily be connected to USB and use it's outputs as parallel port. Why parallel port is popular when working hardware? Because it can be easily controlled programmatically. With USB you can't just set certain bits. Bu Arduino comes with build-in USB support on one side and easily programmable output on another. Plus it is cool device by itself.
That depends on the hardware. If your hardware has a printer port (or parallel port, more specifically), you will need that one. If your hardware has a serial port (COM) which is quote common too, you need one of those. Some hardware will need the game/midi port that you used to plug in your joystick on your old 386 PC. I think convertors are available to convert USB to each of those ports.