I have a digital scale for trucks that is currently connected to a Windows XP computer that is unusable because of all the bloatware and viruses installed in it and the fact that the pc is 15 years old and it can't be formatted because the software and drivers for weighing the vehicles would be lost.
I'd like to develop a web application and configure a pc with Ubuntu Server running LAMP, and upgrade the whole thing so I can get rid of the old XP computer and work everything from a web browser.
I can connect and process the serial data using either NodeJs or Python, but I did that by connecting to the scale directly with my laptop.
What I need is to be able to connect to the serial port from another office where the PC with Ubuntu Server will be.
Is it possible to attach the digital scale to an ethernet adapter that doesn't require a host computer ???
My main problem is that I need the server to not be in the same room where the scale is and ethernet is my only option since there is an ethernet cable that runs undeground to where the scale is and is connected to a small switch which the people that weigh the trucks use.
I guess one option would be to use a Raspberry Pi maybe (since it's small enough) to connect the to the LAN and to the scale, and transmit the data whenever the server requests it, but I don't know if maybe just by using a converter only, the server could connect to the scale and get the data without the use of a host...
Any help would be greatly appreciated!
Related
Currently I have a server, that communicates with a projector through a RS232. The server opens a com port when the projector is connected. The same happens to any PC when a certain type of device is connected through the USB (lets say an Arduino for example). What I want to do it basically replace the projector with a PC/Arduino/Raspberry without the server noticing anything. That would mean the server will recognise the connected PC and open a COM port for it. What do I need to do on the PC so that it automatically opens a com port on the server? I guess there is something very basic that any printer, Arduino, projector etc does, that computers recognise it as a "com port device".
P.S. Doesn't matter the OS on the PC, I just need to make it work and then implement w/e I need to do with the established communication over the port.
P.S.2 I've searched a lot about it, but probabl I am doing it wrong, because I didn't find my type of question anywhere.
COM ports are basically hardware that is detected by the system. Let's say, if an Arduino is connected to a PC, it has its onboard USB to TTL converter which can be found in the device manager(if using windows). Similar USB to TTL converters are there in the market like CP2102, PL2303 which acts like a COM port even if no device is connected further to it. it may be possible that the program you are using(as you referred server) may be sending some data over the serial port and verifying the hardware.
What you need to do to replace it is, first of all, find the baud rate at which the communication is going on, then, listen over the serial lines which machine is sending which message in the sequence(there must be a handshake as I mentioned earlier), if a complicated algorithm is not used by the device, you can simply mimic the device by sending same messages over serial.
I have a raspberry pi 4 and a pc, I have to transfer files at very high speed than Ethernet and WIFI
if any possible methods are there Please tell me?
I'm not too sure if you're saying you want to transfer files over something other than wifi or Ethernet? If so, USB A to USB A should work for you. PCIe are downstream slots which you would be unable to connect to another system using that method. If you are able to plug up to each of the systems using ethernet, that's probably your easiest choice. As long as you bridge the connections and allow file printing and sharing, you should be able to see the system in your file explorer.
I have a very old windows 98 pc that has a network card on PCI that has 2 entrances on it (both RJ-11 one has "in" next to it and the secon
"out").
I'd like to connect this pc to my new laptop which has a normal RJ-45 Ethernet entrance, because I have some files I wanted to transfer out of that old pc. Is there any way to do this?
If cables would be needed to be maked, that's no problem. Of course setting the IPs and all is clear to me, W just want to know if W can connect these computers using an RJ-11 to RJ-45 connection. If that wouldn't be possible, what could work in this situation? (There are no USB ports on this pc and no CD burner)
Also, I wanted to ask, if I connected 2 PCs with RJ-11 cables would the network connection be established in the same way as when I would connect 2 PCs with RJ-45 ethernet cables?
Thanks!
One of options is to connect both to same network and transfer files with network sharing option or with hard disk reader get file's from disk:
https://www.ebay.com/itm/Hard-Disk-Drive-SATA-7-15-Pin-22-to-USB-2-0-Adapter-Cable-For-2-5-HDD-Laptop-CY/172688340405?epid=14007489979&hash=item283506f5b5:g:~pAAAOSwK6RZIpDv
or option with adapter to convert output RJ11 to RJ45 and than with normal RJ45 cable connect PC and Laptop. So point is that RJ11 has just 4 wires and is not for same purpose as RJ45 and i think even connection with RJ11 between two PC's will not work, but not sure because i don't never tested that.
I have a Microsoft Surface Book that I've dual booted Linux Mint on. I'm writing a program that needs to read in data from a serial port, but my serial ports don't seem to be working. The behavior is consistent across Mint and Windows (Testing done through Cygwin). It gets a bit of data the first 2-5 seconds that the device is plugged in (viewing the data through screen, same thing happens if I just use pyserial to print data incoming from serial port), then nothing.
What could be happening? I think I've isolated the problem to the serial ports - the Surface Book has 2 USB ports and the same thing happens on both of them, and I've tested the hardware that I'm plugging into it on 2 other computers (One Linux and one Mac OS), and it works fine on both of those.
Your MS Surface, seemingly, has a yellow triangle exclamation mark icon (over the adapter icon) without any driver to install/download. And properties in the device status box window say This device cannot start. (Code 10) or A device which does not exist was specified. Right?
If it's so you should wait for an update from MS. It's notorious problem.
I ended up getting the computer replaced on warranty for an unrelated issue months later, and what do you know, on the new computer the serial ports work fine. That indicates to me some sort of hardware problem, given that the issue persisted across OS's.
maybe this will help:
see Arduino examples for serial port communication - search google:
arduino serial c++
arduino serial c#
arduino serial c++ linux
the point is to open port properly you need to open a file, not a port. not with usual c - assembly write to port code.
another option you are using an unintentionally bought fake USB to serial cable with a Fake PL2303 chip
then you need to install the old version of the driver.
search in google:
Fake PL2303 + your os name:
install driver Fake PL2303 windows 10
another option is maybe it conserves energy and closes the port because it feels it is unused.
in windows> device manager,> properties of a device - usually USB root hub > power management - allow the computer to turn off this device to save power - uncheck it.
https://superuser.com/questions/408683/why-my-usb-mouse-gets-suspended-after-3-seconds-of-inactivity
https://blogs.msdn.microsoft.com/usbcoreblog/2013/11/08/help-after-installing-windows-8-1-my-usb-device-doesnt-charge-or-it-disconnects-and-reconnects-frequently/
also, you could look in windows events - to see what happens. usually, failures like this are registered in the events log.
an unlikely option is it consumes too much current, like a short circuit. and the device protection circuit shuts the chip off. also probably it does not have such circuit. one possibility is to try with an external powered hub.
the most probable of these is the power saving mechanism
I was experiencing the same problem - came across the solution on another site. The USB 3 ports on Surface Book aren't compatible with something or other to do with Com Port but running the device through a cheap USB hub solved my problem straight away and it was instantly recognised by the Arduino IDE
I am working in a factory. There is a HMI (Human Machine Interface) tablet which control all the switches and logics of a manucfacturing machine.
For example, I can limit the speed of manufacturing or change the number of production plan easily, through the HMI.
Here is the images of the back panel of the tablet (KINSTON tablet, not KINGSTON tablet). Consist of usb port, com port, rs-232 port, rs-485 port.
What I am trying to do is to obtain the data of the manufacturing machine, and show the real-time production details to the back office of the factory. (At the mean time, I have totally no idea what the operating system the tablet is using). Or maybe using a website to control it. Or even using mobile app to monitor the condition of the machine.
Is there any easy way to obtain data from these port to a raspberry pi and make a real time reflection of the data. To be more specific, which port should I use to obtain the data?
How should I kickstart this project? I am total newbie of COM port, I have googled around but can't find a concrete example of connection to a computer.