Hi, I just got a new project in my office recently, about RPC. But I have a zero experience in RPC.
May I ask some help to the masters in this forum, please?
**I used to edit some HTML5 code on my website and make some long excel macro based on VBA. I hope I can understand faster **
My project is enabling a public port in a control unit of a vehicle to get the real time parameter inside of that mentioned control unit. I actually had the guidelines but I think that the guidelines were for people who knew much about RPC, RS-232 and Arduino.
Progress So Far
Well by the way, here are of some progresses that I made:
- Public port permission is granted and serial configuration [RS-232] is configured/opened
- Hard wiring were already setup refer to official schematic.
- I made a connection from RS-232 TX RX and GND into my Laptop (using serial adapter converter and install the driver until my laptop read it clearly).
3.1 By using software Com Operatol PAL to check the ping --> Ping Check Success
3.2 By using software Com Operatol PAL to check the real time parameter --> OUTSTANDING
It is mainly about to make sure that Real Time Parameters are exist through RS-232.
As I mentioned before, I had zero experience about RPC. All I want to ask is how to make an RPC in the right way to call out the real time parameters using Com Operator Pal.
Here some resources.
-
As I told above, that I successfully doing ping check.
Result: Success, Just the way as how guidelines instructed -
I want to check for another parameters call but I dont know how. Here's some example of RPC Messages on how to call out Real Time Parameters.
3 hosted at ImgBB — ImgBB -
Here the RPC message order references.
RPC Number [2 bytes] -- Sequence Number [2 bytes] -- RPC Message Data [0 to multiple bytes] -- CRC [2 bytes] -
Here's how to make Real Time Parameter calling code, with UID MID below [see Yellow Box refer to number 3].
5 hosted at ImgBB — ImgBB
or, Here's one example UID MID: 002400000040 -
Here's reference about making Sequence Number
"The Sequence Number identifies a specific instance of the remote procedure call or its
results. The sequence number increments from 1 to 65535 and then wraps back to 1.
The special sequence number 0 indicates a message which the receiver should not
acknowledge. Thus, for normal message packets, the sequence number should not be
zero. The Sequence Number is communicated using MSB byte ordering." -
Quite confuse that UID MID are 6 bytes, but in the RPC it only showing that is only 2 bytes
Questions
- How to make RPC Sequence Number?
- How to make RPC Parameter Call refer to UID/MID
Any help for my questions?
Thank you in advance ~