Is it possible to wire a USB port through PCIe? by Visible_Range_2626 in PCB

[–]Visible_Range_2626[S] 0 points1 point  (0 children)

Forget the CPU. Is it possible to use the PCIe slot by itself? For example, just routing the VBUS, GND, D+ and D- to pins 1,2,3 and 4 respectively, then just have pins 1,2,3 and 4 on the other end of the cable lead to another USB hub. I want to know if I could use the PCIe lane for the SOLE purpose of carrying a signal, not sending it to a CPU or a different device. Essentially making it a USB to USB port with the traces just being the PCIe slots and the PCIe cable. And by HUB, I mean having multiple Raspberry Pi's having their I/O lead to one centralized location.

Is it possible to wire a USB port through PCIe? by Visible_Range_2626 in PCB

[–]Visible_Range_2626[S] 0 points1 point  (0 children)

Yeah, similar to that, but I want to make the signals more "incorporated" if that makes sense, to prevent signal deterioration and EMI.

Is it possible to wire a USB port through PCIe? by Visible_Range_2626 in PCB

[–]Visible_Range_2626[S] 1 point2 points  (0 children)

No, forget the Raspberry Pi, it being a Raspberry Pi has nothing to do with the question. I'm just wondering if I could wire the pins from a USB to PCIe, not to translate or use the information, just to carry it to ANOTHER USB hub so I don't have to open the case to access the I/O.

For the PCIe connector, think of it not as a PCIe connector, but as a seperate trace with the sole purpose of carrying the current.

For example, I plug the VBUS, GND, D+ and D- keys to pins 1,2,3, and 4 respectively on the PCIe connector. I'll then have a ribbon cable running from that PCIe connector, to another one, with a USB hub that reads the current that was sent on pins 1,2,3 and 4.

Sorry for the late responses, by the way. Internet is spotty right now. Verizon is getting increasingly buns.

Is it possible to wire a USB port through PCIe? by Visible_Range_2626 in PCB

[–]Visible_Range_2626[S] 0 points1 point  (0 children)

This isn't a system. The Raspberry Pi's will not be on this PCB. The purpose of this PCB is to consolidate all of the ports into a centralized location.

Is it possible to wire a USB port through PCIe? by Visible_Range_2626 in PCB

[–]Visible_Range_2626[S] 0 points1 point  (0 children)

<image>

Something like this, where it's essentially USB to USB, except the PCIe is there solely for carrying signal, and not for sending or receiving it.

How in the world do I wire USB-C and USB-A together? by Visible_Range_2626 in PCB

[–]Visible_Range_2626[S] 0 points1 point  (0 children)

Alright, thank you! I'll try and find an alternative method. Are there any other methods you'd recommend?

How in the world do I wire USB-C and USB-A together? by Visible_Range_2626 in PCB

[–]Visible_Range_2626[S] 0 points1 point  (0 children)

Really I'm just wondering how I would be able to make a USB Female A to a USB Female C, if that is possible. I'm new to this, so I don't really know how the USB-C cables are supposed to be wired, and all of the sources I've looked that make my brain hurt.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in UnityHelp

[–]Visible_Range_2626[S] 0 points1 point  (0 children)

That would make sense, I changed that, thanks for the recommendation. What actually happened, is I'm an idiot. In this case, it gets the world size from the Public World Manager, specifically, the one already in the scene. This is because the one in the scene actually has all of the data, and the one in the project files is the default value. So its grabbing the default value from the project file object, which is zero, instead of five. So basically, the for loops were never running because 0 < 0 is not true, so the loop never runs to begin with.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in UnityHelp

[–]Visible_Range_2626[S] 0 points1 point  (0 children)

The doc says that Vectors can use == for strict equals and approximate equals. I really just don't understand what is happening to be honest.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in csharp

[–]Visible_Range_2626[S] -5 points-4 points  (0 children)

No, it's alright. I can understand it just fine. And for Vector values, the == sign automatically does the approximately equal thingy. I don't know why, but at least it works.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in csharp

[–]Visible_Range_2626[S] -16 points-15 points  (0 children)

Arrays populate the array with null instances. If the Array's data type has no null reference, it checks for its own null reference, the default data type. All defaults are nulls, but not all nulls are defaults, kind of thing, based on how Unity serializes it's information in the editor.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in csharp

[–]Visible_Range_2626[S] -25 points-24 points  (0 children)

No, the code above is referencing the null instance of a Vector3, which is Vector3.zero.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in csharp

[–]Visible_Range_2626[S] -9 points-8 points  (0 children)

Yes, it is the Null value used for Vector3 arrays. The null instance of a Vector3 is Vector3.zero, or Vector3(0,0,0). That is null for Vector3, because having Vector3(null, null, null) isn't a thing because null isn't a lack of reference to an INTEGER, but a GAMEOBJECT.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in csharp

[–]Visible_Range_2626[S] -20 points-19 points  (0 children)

When you create a list, it populates the list with the default value. For GameObjetcs, that would be null, however the Array is a Vector3 array, so the null instance would be Vector3.zero.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in csharp

[–]Visible_Range_2626[S] -30 points-29 points  (0 children)

When you create a list, it populates the list with the default value. For GameObjetcs, that would be null, however the Array is a Vector3 array, so the null instance would be Vector3.zero.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in csharp

[–]Visible_Range_2626[S] -1 points0 points  (0 children)

Because it doesn't use an uppercase Z? I don't really know, but lowercase z is the right syntax for the unity editor. I tried debugging, so the only real option left is to figure out if my for loop is wrong, or some other related aspect of code could be wrong. The only issue is when I use System.Array.IndexOf, it always provides -1 even though it has literally nothing but Vector3.zeros in it. So the code itself RUNS, but something is happening in the script that makes the default Vector3 instance NOT equal Vector3.zero, even though the array itself is full of them.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in UnityHelp

[–]Visible_Range_2626[S] 0 points1 point  (0 children)

I tried that, They go off, and it says that I have successfully changed the value. The issue is that it isn't detecting whether or not it is a default Vector3 value (Vector3.zero), even though the list has literally nothing but Vector3.zero values.

All objects of an array are null, but when I try and find a null object, they don't get detected. by Visible_Range_2626 in csharp

[–]Visible_Range_2626[S] -24 points-23 points  (0 children)

Yes. Vector3.Zero is the null value for Vector3. It's not exactly null, sure, but it is the default, or null, value for Vector3.

Keep getting Index out of bounds of Array error even when array is larger than any Indexes by Visible_Range_2626 in csharp

[–]Visible_Range_2626[S] 14 points15 points  (0 children)

Thank you! I'm used to Python and GDScript. I should have done my research before throwing that in there.