EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: sairfan1 on May 15, 2018, 05:59:05 pm

Title: USB to wireless USB, is it possible?
Post by: sairfan1 on May 15, 2018, 05:59:05 pm
Hi,

I'm setting up CNC machine that can work with USB cable.  I want to place CNC machine away from my lab because of noise and dust. What i want to do is that if I connect some wireless module to PC (may be usb to serial) and its receiver to CNC's USB port (may be serial to usb) so that my PC can communicate with CNC wirlessly.

Can somebody help on it, if there are already some modules or one i can prepare.
Thanks.
Title: Re: USB to wireless USB, is it possible?
Post by: metrologist on May 15, 2018, 06:05:05 pm
I try search for you. What is this thing?

https://www.mouser.com/ProductDetail/Digi-International/XA-A14-CE1P?qs=mS8Fuotq4gFoUEznU5Pyyw%3D%3D&gclid=EAIaIQobChMIxsCnqKaI2wIVFdNkCh1PQA-QEAQYASABEgLpBvD_BwE (https://www.mouser.com/ProductDetail/Digi-International/XA-A14-CE1P?qs=mS8Fuotq4gFoUEznU5Pyyw%3D%3D&gclid=EAIaIQobChMIxsCnqKaI2wIVFdNkCh1PQA-QEAQYASABEgLpBvD_BwE)
Title: Re: USB to wireless USB, is it possible?
Post by: sairfan1 on May 15, 2018, 07:03:11 pm
that looks too expensive.
its based on zigbee, can we deveop our own?
Title: Re: USB to wireless USB, is it possible?
Post by: JohnnyMalaria on May 15, 2018, 07:14:14 pm
Should anyone recommend Anywhere USB (https://www.digi.com/products/usb-and-serial-connectivity/usb-over-ip-hubs/anywhereusb), here's my Amazon review. This product ain't cheap and mine is languishing somewhere.

Once it is configured correctly this is a good device. BUT - the literature does not make it clear that only one computer can connect to the device at a time. Three ways are provided to configure it (on Windows 10): a Windows app, a Windows console app and a web-based app in the device itself. Configuration is a nightmare. I won't go into too many details but suffice to say Out of the box it is configured for DHCP. The configuration software couldn't find it. Eventually I tracked it down using my WiFi modem, went into the device's web app and set it up with a static address. Even then it couldn't be found. So I had to specify an ip address to use. One half of the computer app said it had found it, the other half said it didn't exist. I used this on two laptops. Even with one of them turned off, the configuration utility on the other laptop insisted that the device was in use by the computer that wasn't on! I had to uninstall the software on the powered-off laptop. Digi's suggestion is to permanently turn off any firewalls. Tried that, no joy.

On the device itself front, there's what I consider to be a huge design flaw that creates a big problem for my situation. When the host computer goes to sleep/turns off, the Anywhere device no longer receives the "heartbeat" signal and so switches off. Even though the device is powered by an external 5VDC supply, it cuts the power to the USB ports. If you are using USB devices that are powered by the cable then they will switch off. When the Anywhere comes back up, the USB devices will get their power back.
Title: Re: USB to wireless USB, is it possible?
Post by: metrologist on May 15, 2018, 07:17:09 pm
You can also get USB extenders that work through an Ethernet or fibre link. I do not know if the Ethernet could be connected to a wireless network router, however.
Title: Re: USB to wireless USB, is it possible?
Post by: bitwelder on May 15, 2018, 07:19:47 pm
What's the purpose of the USB connection, only to monitor the CNC status (so it's not critical if the connection has some short drop), or is it used to send commands to the CNC machine?
Title: Re: USB to wireless USB, is it possible?
Post by: Mr. Scram on May 15, 2018, 07:20:50 pm
that looks too expensive.
its based on zigbee, can we deveop our own?
65 euros is a small price to pay if you value your time in the slightest. Not to mention what messed up CNC project cost you if your homebrew solution has issues.
Title: Re: USB to wireless USB, is it possible?
Post by: sairfan1 on May 15, 2018, 08:25:19 pm
I already have setup USB Based CNC, its based on Planet CNC controller, as currently i can connect this CNC machine by USB wire, I want to move machine out of my room.

As i will be connecting CNC software in my computer i believe connection should not drop. 
Title: Re: USB to wireless USB, is it possible?
Post by: Messtechniker on May 15, 2018, 08:55:06 pm
Simply search around for an active "USB extender".
Or if the distance is not all to great use 1 or two active USB hubs in series.
Title: Re: USB to wireless USB, is it possible?
Post by: Mr. Scram on May 15, 2018, 10:08:12 pm
I already have setup USB Based CNC, its based on Planet CNC controller, as currently i can connect this CNC machine by USB wire, I want to move machine out of my room.

As i will be connecting CNC software in my computer i believe connection should not drop.
I'm not doubting CNC over USB works, I'm asking myself how well that works with an unreliable USB link.
Title: Re: USB to wireless USB, is it possible?
Post by: JS on May 16, 2018, 03:05:04 am
Dedicated PC? you probably don't need much to drive the CNC and having it close to the machine is helpful when setting up a job. Then some monitoring (maybe remote desktop) to see what's doing sitting on the toilet.

JS
Title: Re: USB to wireless USB, is it possible?
Post by: NiHaoMike on May 16, 2018, 03:30:47 am
Raspberry Pi + USB/IP.
Title: Re: USB to wireless USB, is it possible?
Post by: metrologist on May 16, 2018, 03:00:01 pm
While I do not quite understand all the reasons why, it seems CNC control requires a fairly stable machine with low latency and USB, while it works, can be a bit finicky and have performance issues. USB should be fast enough, but I guess there are latency issues. The biggest rub for me is that there is no laptop that run and control my CNC and its software.

I do not think LinuxCNC will even run directly on a pi to any real work - although that would be a marvelous package.
Title: Re: USB to wireless USB, is it possible?
Post by: Old Printer on May 16, 2018, 03:23:50 pm
I run the production at a sign company. We don't have a CNC router/mill, but we do have several lasers, cutting plotters and wide format printers. I clung stubbornly to USB for a long time, mostly because I was just unfamiliar with Ethernet. One by one, all of our machines have converted to Ethernet from USB. Granted the interfaces are in the machines from the factory, which may not be your case. All of our problems with bad file transfer have vanished. I had to learn the ins and outs of networking, but most of the equipment we use is being made with Ethernet only connections now anyway. Running cable is a PITA, but WIFI is not reliable enough over distance, particularly in an electrically noisy environment. I realize that if your machine only has a USB connection my whole statement may be moot.
Title: Re: USB to wireless USB, is it possible?
Post by: aandrew on May 16, 2018, 10:18:27 pm
Raspberry Pi + USB/IP.

Have you successfully used USP/IP for *anything* other than the simplest of printers? Even USB-serial ports are flaky IME.