Before I was working on PC that had integrated Parallel port, but now I have laptop computer and I bought USB to Parallel port converter hoping that I can work on application that will communicate with Data pins of that Parallel port...
Can this converter be used as regular integrated parallel port?
I checked pins and all data out pins have signals all the time...
I tried with inpout32.dll scripts that I used for my PC ( that works 100% ) but it doesn't look to work on laptop...
Does programming has to be different when it uses converters like this?
Thanks!
From computer to computer, the IO address used for the Parallel port can vary. This page has a good explanation of how to find the port address for the computer. http://www.codeproject.com/Articles/20545/I-O-Ports-Programming-Parallel-port-Reading-Writin
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'd like to use my usb 2.0 ports on my Lenovo V570 like Arduino pins, and I'm not sure how to program my computer to do that.
My main goal is to turn the power to the port on and off (w/ code), thus powering whatever electronics I connect to it.
My computer runs Windows 7.
I found some ok ideas on this article:
Controlling voltage supply on usb port using c or any programming language
but I was wondering if anyone had some more ideas.
Thanks.
Well..I have found some third party application regarding sending data from com port to IP. but I have not found any basic tutorial regarding them. so can anyone help me with this? I have a GPS device which I will connect to my laptop through usb to serial adapter.Now I need to send that data from a laptop to another laptop on same network. Can I use putty to view that data in another laptop(receiver)? Is virtual serial port driver meant for this kind of application?
If you do not want to write your own tool for it, you can simply use ncat and set up a daemon that reads piped data from one process and broadcasts it to all connected clients.
If you want something that reads the data from the serial port and then transmits it to clients, you'll need to write a server application that accepts connections and sends data around, but there's entire books on this. It should be easy to do for your purposes as written here, but it depends on the amount of control you need.
Alternatively you can use a virtual serial port application as you had mentioned, which might be the easiest route. The two devices will need to be on the same network unless the application supports TCP based virtualization instead of the common Ethernet based implementation.
This Python script works very well as a free "device server". Just enter the serial port configuration and the IP address and port information.
https://github.com/jaredly/pydbgp/blob/master/symbian/serial_tcp_redirect.py
This can work on both Windows and Linux.
You need pyserial.
You can always try using stand alone hardware such as the SENA LS100 device server.
I'm building a thingy that will have a usb interface, I'm pretty keen on the FT232RL for this purpose. The manufacturers offer virtual com port drivers for linux and windows. I haven't really done this sort of thing before so I was wondering if anybody can tell me why one might want to use a VCP driver or point me in the direction of some resources on the topic. I'm assuming it's just for the sake of simplifying the process of writing a driver but i'm really not certain right now.
In this case, VCP stands for "Virtual COM Port". If you use the drivers from FTDI, they will create a virtual COM port on your computer when you plug in the device. Nearly every language has a library for sending and receiving bytes on COM ports (e.g. System.IO.Ports.SerialPort), so your device will be usable from all of those languages. You will not have to write a driver.
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.