Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(protocol): add serverless protocol library #16

Closed
wants to merge 10 commits into from

Conversation

mmoreiradj
Copy link
Contributor

Create a lib to communicate over a serial port.

Added README on how to test it.

I think one point of improvement is to not calculate the checksum from the payload converted to json as we don't know wether serde or another json converter parser will convert it the same way.

Martin Moreira de Jesus and others added 6 commits April 16, 2024 22:33
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
@mmoreiradj mmoreiradj force-pushed the feat/serverless-protocol branch from 3f5db89 to 9e435c4 Compare April 16, 2024 20:33
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
@mmoreiradj mmoreiradj force-pushed the feat/serverless-protocol branch from 78da532 to e597272 Compare April 17, 2024 07:50
@mmoreiradj
Copy link
Contributor Author

Added libudev-dev in github actions step

…pe to checksum (#2)

* feat: make checksum from payload as bytes instead of relying on serde_json::to_string

* feat: rework checksum to add message_type
feat: rework checksum to use sha256

Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
@mmoreiradj mmoreiradj force-pushed the feat/serverless-protocol branch from 39034a8 to 0464cae Compare April 17, 2024 10:57
@remi-espie
Copy link
Contributor

The checksum is now calculated using the content of the payload and the message type, without relying on serde_json::to_string

Copy link
Contributor

@remi-espie remi-espie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

2. Run the example:

```bash
cargo run --example cargo run --example serverless_protocol_example -- --serial-path-a=<path_to_first_pty> --serial-path-b=<path_to_second_pty>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove typo

Suggested change
cargo run --example cargo run --example serverless_protocol_example -- --serial-path-a=<path_to_first_pty> --serial-path-b=<path_to_second_pty>
cargo run --example serverless_protocol_example -- --serial-path-a=<path_to_first_pty> --serial-path-b=<path_to_second_pty>

Signed-off-by: Martin Moreira de Jesus <martin.moreira-de-jesus@protonmail.com>
@mmoreiradj mmoreiradj force-pushed the feat/serverless-protocol branch from c07b01a to 2591a22 Compare April 18, 2024 08:10
@mmoreiradj
Copy link
Contributor Author

@charley04310 @thomas-mauran does this match your needs ?

@mmoreiradj
Copy link
Contributor Author

closed in favor of this, we dont need this protocol, we can just use the network now

@mmoreiradj mmoreiradj closed this Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants