X10 Community Forum

📱🖥️PiX10Hub => 💬General Discussion => Topic started by: soxfan1966 on January 18, 2020, 10:14:43 AM

Title: USB cable from Pi zero W to CM15A question
Post by: soxfan1966 on January 18, 2020, 10:14:43 AM
My current cable is about 6 feet long.  When I set things up a ear ago I had it in a different location so wanted a longer cable.  Now I only need about a foot.  But I can't recall the specifics on what I need for the connections - is it a USB A to B like this one?

Cable Matters USB 3.0 Cable (USB 3 Cable, USB 3.0 A to B Cable) in Black 3 Feet https://www.amazon.com/dp/B00C7RUWCU/ref=cm_sw_r_em_apa_i_DcYiEb2YW62J3
Title: Re: USB cable from Pi zero W to CM15A question
Post by: LostDog88 on January 18, 2020, 10:39:29 AM
My current cable is about 6 feet long.  When I set things up a ear ago I had it in a different location so wanted a longer cable.  Now I only need about a foot.  But I can't recall the specifics on what I need for the connections - is it a USB A to B like this one?

Cable Matters USB 3.0 Cable (USB 3 Cable, USB 3.0 A to B Cable) in Black 3 Feet https://www.amazon.com/dp/B00C7RUWCU/ref=cm_sw_r_em_apa_i_DcYiEb2YW62J3

Ummm...Not to be a cheeky one but didn't you look at the connection on the device? LOL.

Anyways. This is what you want.

https://www.amazon.com/AmazonBasics-Printer-Type-Cable-Male/dp/B00BCWALHM/ref=asc_df_B00BCWALHM/?tag=hyprod-20&linkCode=df0&hvadid=167126093426&hvpos=1o1&hvnetw=g&hvrand=9103881263519070781&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9033471&hvtargid=pla-83922868406&psc=1

Enjoy!
Title: Re: USB cable from Pi zero W to CM15A question
Post by: soxfan1966 on January 18, 2020, 10:45:33 AM
Thanks.  The one you linked was 16feet, but using the description:
USB 2.0 A-Male to B-Male Cable

I found one that's 1.5 feet so going with that.

Thanks again
Title: Re: USB cable from Pi zero W to CM15A question
Post by: Brian H on January 18, 2020, 11:28:07 AM
From the Pi Zero information sheets.
The Pi Zero uses a Micro AB for OTG USB connector. Not a standard A to B cable.
Title: Re: USB cable from Pi zero W to CM15A question
Post by: soxfan1966 on January 18, 2020, 11:30:01 AM
Ok. I will need to do another search on Amazon for one with a micro connection.  Thanks for clarifying.
Title: Re: USB cable from Pi zero W to CM15A question
Post by: brobin on January 18, 2020, 11:34:09 AM
My current cable is about 6 feet long.  When I set things up a ear ago I had it in a different location so wanted a longer cable.  Now I only need about a foot.  But I can't recall the specifics on what I need for the connections - is it a USB A to B like this one?

Cable Matters USB 3.0 Cable (USB 3 Cable, USB 3.0 A to B Cable) in Black 3 Feet https://www.amazon.com/dp/B00C7RUWCU/ref=cm_sw_r_em_apa_i_DcYiEb2YW62J3

I used one like this - available in various lengths and straight, left or right angle. No OTG adapter required.
https://amzn.to/2RsKKwq
Title: Re: USB cable from Pi zero W to CM15A question
Post by: Brian H on January 18, 2020, 11:36:47 AM
brobin,
That one looks like the one I was using. Micro USB to USB B.
I didn't remember where I got it but you jogged my memory.
Title: Re: USB cable from Pi zero W to CM15A question
Post by: Tuicemen on January 18, 2020, 11:58:57 AM
That's simular to what I originally had just not a micro end so I needed a adaptor.
For my PI Inside Cm15 I just soldered the Cm15 connections to the Pi test pads. (no external wire hanging off the USB port)
Title: Re: USB cable from Pi zero W to CM15A question
Post by: soxfan1966 on January 18, 2020, 12:12:02 PM
Follow up question: Aside from the longer cable I have now just lying on the floor and getting in the way, would their be a response time improvement with a shorter cable - say 1.5 feet vs 6 feet?
Title: Re: USB cable from Pi zero W to CM15A question
Post by: Tuicemen on January 18, 2020, 12:13:28 PM
not that you'll notice
Title: Re: USB cable from Pi zero W to CM15A question
Post by: LostDog88 on January 18, 2020, 02:04:59 PM
Whoops. Sorry man. They are right. You have the mini and the one Brobin suggested would be right.

I forgot I use the RPi 3.

Only because I didn't want my stuff on WiFi. I use the Ethernet port connected to my switch and then placed the RPi inside the rack enclosure. Works great!

Title: Re: USB cable from Pi zero W to CM15A question
Post by: brobin on January 18, 2020, 04:11:16 PM
Follow up question: Aside from the longer cable I have now just lying on the floor and getting in the way, would their be a response time improvement with a shorter cable - say 1.5 feet vs 6 feet?

You'd be talking very few nanoseconds.  Here's more than you'll ever want or need to know on the topic: https://bit.ly/38mnIOm  >!
Title: Re: USB cable from Pi zero W to CM15A question
Post by: HA Dave on January 19, 2020, 12:15:03 AM
Follow up question: Aside from the longer cable I have now just lying on the floor and getting in the way, would their be a response time improvement with a shorter cable - say 1.5 feet vs 6 feet?


not that you'll notice

You'd be talking very few nanoseconds.  Here's more than you'll ever want or need to know on the topic: https://bit.ly/38mnIOm  >!

It should be mentioned... (besides the fact that it only takes 2ns for bits to travel the length of 15 feet of USB) that a Nano Second... measured as the distance it takes light to travel... is 8 1/4 inches. In other words the delay involved between 1.5 feet and 6 feet would be roughly the time it takes for light to travel about 1 foot.
Title: Re: USB cable from Pi zero W to CM15A question
Post by: bkenobi on January 21, 2020, 11:57:56 AM
There would be more difference in signal loss than transmission time.  If you have high quality cables, anything less than ~6' will work fine.  If you have very long cables, you may need some kind of a signal booster like this:

https://www.amazon.com/IOGEAR-Booster-Extension-Cable-GUE2118/dp/B003K1L85C

I can't find a reference to the maximum cable length, but this post quotes a page that is long dead and indicates 16' is the max length for full speed.

https://superuser.com/questions/64744/maximum-length-of-a-usb-cable

Lacking the actual source document, I can't confirm if this is for USB 2 or 3.  But, since the answer was given in 2009 and USB 3 was introduced in 2008, I'd assume that the length limitation is still valid.  Here's more info if you want more background:

https://en.wikipedia.org/wiki/USB

Also worth noting is that the CM15A is not a device that can utilize high speed USB so all of this is a silly question anyway.   rofl
Title: Re: USB cable from Pi zero W to CM15A question
Post by: HA Dave on January 22, 2020, 10:52:07 AM
…. Also worth noting is that the CM15A is not a device that can utilize high speed USB so all of this is a silly question anyway.   rofl

Anytime you look at NS speeds... unless you're referring to specifics in the confines of a laboratory... it's a moot point. Earth-bound humans have limited reference to a NS.
Title: Re: USB cable from Pi zero W to CM15A question
Post by: bkenobi on January 22, 2020, 11:00:36 AM
The USB standard covers communication specifics.  There is a controller that takes care of timing of this based on the standard.  So long as the wire doesn't cause an issue, the USB host and device will communicate based on the controller.  The CM15A is 1000 years old and does not use USB 3 (probably not even USB 2 actually).  If you have a USB cable that is less than 16' I wouldn't worry about any of this.
Title: Re: USB cable from Pi zero W to CM15A question
Post by: brobin on January 22, 2020, 04:35:16 PM
When I was running Alex10 from a laptop, the USB cable to the CM15A was actually an 8' cable plugged into a 15' extension for a total run of 23ft and I had no problems.  I now use that same cable from a Smartenit P2 to a Smarthome 2413U PLM.