this post was submitted on 31 Aug 2023
31 points (89.7% liked)

Ask Lemmy

27033 readers
848 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try [email protected]


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

I don't know much about cables so if type something wrong forgive me ...

I was wondering around with some old stuff, and found this cable that is usb to usb "as shown in the image below"

https://m.media-amazon.com/images/I/71hHpyqvvnS._AC_UF1000,1000_QL80_FMwebp_.jpg

Now what i thought was that it might be used to connect 2 computers with each other so i tried that and connected 2 computers with each other using it and nothing happened Can anyone tell me what this cable is even used for ???

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Tarquinn2049 1 points 1 year ago (1 children)

The USB protocol can indeed handle file transfers, not sure why windows by default wouldn't have support. But when you plug in a phone or hard drive/thumb drive by USB the first thing it asks is if you want to transfer files.

There is absolutely no reason why you wouldn't also want to file transfer between two computers, or say a laptop and a desktop. Just isn't supported by default, but there is software that can give you that feature.

Edit: it looks like in order to get windows to do a USB file transfer by default, the cable itself needs to have an identifying chip. So that windows doesn't use one of the default protocols and try to transfer power as well. I guess there's just no support for computers to identify themselves, it's assumed they will always be the host device and just passively wait for the device on the other end to identify itself. So the software just adds the ability to set one computer as a USB client and identify itself.

[โ€“] [email protected] 1 points 1 year ago

There are many, many ways to transfer files. Many phones present themselves as a Mass Storage device (i.e. same as a thumb drive). Others use the Media Transfer Protocol. In any case, your device end has to be configured as such, which cannot be done from a Windows host. USB on the Go (and by extension, USB-C) offers some very limited abilities for something to switch between host and device (master/slave), but it's up to each device to enable that functionality.

When most of us share files on a PC, we are using SMB. This is what Windows typically means by sharing files, and is network-based.

Regardless, you always have to configure each side on what/how to share, and how to access that share. Most phones have a default configuration for this (and it's not everything on your phone), and Windows makes this type of access easy and direct. Again, there are other options, such as the Android Debug Bridge, which are much more complicated.

(As for the identifying chip, there are chips that present themselves in different ways on demand. It is a massive security risk, and has been exploited in the past. Examples are fake keyboards, fake network adapters, and even fake storage - although that's usually technically real, and used to deliver a malicious payload)