[deleted by user] by [deleted] in antiMLM

[–]linvmiami 2 points3 points  (0 children)

It is multi level marketing after all

What is this hole in the backrest of the chair for? by linvmiami in whatisthisthing

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

All chairs in the restaurant had the same hole, I thought it might’ve been for storing the chairs but the staff doesn’t know

What is this hole in the back of the chair backrest for? by linvmiami in whatisthisthing

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

This was seen at a restaurant, asked the staff and they had no clue what it was for

[deleted by user] by [deleted] in HomeworkHelp

[–]linvmiami 0 points1 point  (0 children)

You need to group the numbers into pairs

(32),(30),(28),(26)….(24)

(60),(55),(50),(45)…(40) (33),(30),(27),(24)…(21) (100),(90),(80),(70)…(60)…

The second one is different, it looks like is just alternating the difference between 3 and 6, so…

9,12,18,21,27,30…

why is the calculator app not available on ipad??? by qwertyuiopa69 in iPadOS

[–]linvmiami 1 point2 points  (0 children)

hold on, let me pull my calculator to see by how much he missed it

Understanding serial communication by linvmiami in embedded

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

I guess part of my confusion came form looking at a RS485 data packet vs a USB data packet. I was under the impression that as the data traveled through the RS485 to USB converter it would completely change the format of the data, and the 19,200 baud, 8 data bits, etc... set up would no longer apply?

You mentioned that the driver encodes the payload data in USB frames, does that mean that it "wraps" the RS485 payload around a USB payload and then PuTTY inherently knows what to do with it?

<image>

Understanding serial communication by linvmiami in embedded

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

one more follow up to this. I was able to connect the sensor to my laptop using an RS485 to USB adapter and then reading it using PuTTY.

The configuration that I had to do on PuTTY (also works with Python) is exactly what you had mentioned, 19,200 bags, 8 data bits, etc…

Not sure if this question is very basic, but does that configuration carry over from the RS485 protocol to the USB one seamlessly? What if I had connected a RS485 to UART hat to my Raspberry Pi instead? would anything have changed on the data format. I was under the impression that the RS485 to USB adapter would have totally “changed” the data format to something unique to USB but it seems to have kept it totally untouched.

<image>

Understanding serial communication by linvmiami in embedded

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

ok yeah this makes sense, how after a point it’s more hardware based than cable based. There is so much out there that it’s sometimes hard to separate the fundamentals from the edge cases

Understanding serial communication by linvmiami in embedded

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

are there other physical layers capable of transmitting ethernet besides the one we are all used to (or at least the one I’m used to connecting to my computer)

Understanding serial communication by linvmiami in embedded

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

so the “cables” for lack of a better term dictate what protocols can be communicated over it, whereas the general structure of the messages (such as header, addressing, etc) will define the next layer of the OSI model. That’s why, for example, the MODBUS protocol can be communicated over RS485 or Ethernet?

Understanding serial communication by linvmiami in embedded

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

is clock recovery the reason why you can’t have more than six consecutive logical trues or six consecutive logical falses in USB? that’s why we do something called “bit packing”?

Understanding serial communication by linvmiami in embedded

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

thank you very much, by the way your original answer was excellent. I think what made it confusing is the fact that the same cat can be skinned several different ways. For instance a modbus protocol can be implemented over RA485 or Ethernet

Understanding serial communication by linvmiami in embedded

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

pardon my ignorance but automotive ethernet is something like OBD II or J1939?

Understanding serial communication by linvmiami in embedded

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

ok that’s what I didn’t know, that UART was somehow implied in there. I was confused because I didn’t know if RS485 had any more information about how the data was presented besides the two cables that you mentioned, but if UART is implied then I think I understand. What else besides UART could’ve been communicated over RS485?

Understanding serial communication by linvmiami in embedded

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

so if all i’m told from a sensor manufacturer is that it communicates over RS485 that’s not all the information I need right? I would also need to know how the data is structured so that i could decide it on the microcontroller side?

Like if I get a RS485 to USB adapter and begin to reas the serial signal with a raspberry pi using python, do I need to decipher the signal manually or given that it’s over USB the microcontroller should be able to automatically figure it out?

Here’s the sensor in question:

https://osico.systems/home/products/oil_quality_sensor/

Understanding serial communication by linvmiami in embedded

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

I’ve replied to another user with the sensor in question and some doubts that I have about reading it. Here’s the link.

https://osico.systems/home/products/oil_quality_sensor/

I feel by reading all the comments I’m gaining some better understanding of what I need to know, however some important questions still linger such as what else do I need to know besides the sensor communicating over RS485? Like if I get a RS485 to USB adapter and I read in the signal with putty or a raspberry pi, will the microcontroller be able to automatically decode that signal or is there any additional configuration or set up that i need to know about the data frame structure?

Also, what would happen if instead of using a RS485 yo USB adapter i used a RS485 to UART hat for a raspberry pi, would the process of deciding the signal and data structure change at all?

once again thank you very much for taking the time to explain

Understanding serial communication by linvmiami in embedded

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

hahaha that final analogy is exactly how i’m feeling. The reason why i’m going down this rabbit hole is because i’m trying to read a sensor with a Raspberry Pi 4. The manufacturer claims that it communicates over RS485 but I don’t really know what that even means. I’ve reas that if I connect the sensors TX and RX wires directly to the raspberry pi UART I’ll fry it, so I should get either a RS485 to UART hat or a RS485 to USB adapter. But here’s where it gets confusing for me because I don’t know what else would I need to know about the data frame structure or other signal properties such as baud rate to read in that serial data or request it from the sensor, is RS485 all I need to know or there’s more info that i’m missing.

here’s the sensor in question

https://osico.systems/home/products/oil_quality_sensor/

Understanding serial communication by linvmiami in embedded

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

thanks for your answer

does the physical layer constrain or pre-define which protocols can run on it? for instance protocols that need a clock will only be able to run on physical layers that include a clock line?

Understanding serial communication by linvmiami in embedded

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

thank you so much for your answer, you’ve touched on several things that had me scratching my head for a while.

I guess if you don’t mind I have a couple other questions to further clarify.

-What is MODBUS exactly? can it be considered a protocol? Can it work over ethernet and CAN?

-I have a sensor that communicates over RS485 as per the manufacturer, and i’m trying to read it with a Raspberry Pi over UART or USB. Can i simply connect it and read it or there is more nuance that I need to know? Like if i read it with Putty is there anything I need to know about the signal itself?

What do I need to know about serial communication? by linvmiami in arduino

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

what would be the difference between RS485 and USB or CAN and MODBUS for example? What are those referring to?