ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
Ecco has quit [Ping timeout: 260 seconds]
Makarov has quit [Ping timeout: 250 seconds]
ainedixon[m] has quit [Quit: Idle timeout reached: 172800s]
pronvis has quit [Quit: Textual IRC Client: www.textualapp.com]
pronvis has joined #rust-embedded
pronvis has quit [Client Quit]
<JamesMunns[m]1> <takkaryx[m]> "started looking for a static..." <- btw, I'm interested if it NEEDS to be protobuf, or if you are using Rust on both sides. I'm working on `postcard-rpc` to address this and some other common "PC to MCU APIs", and USB is the best supported option today :D
<henrik_alser[m]> <JamesMunns[m]1> "btw, I'm interested if it..." <- I guess noone would choose protobuf out of free will right? šŸ˜¬šŸ˜…šŸ‘€
<henrik_alser[m]> Yeah takkaryx if you have the option, definately go postcard
Ralph[m] has joined #rust-embedded
<Ralph[m]> <henrik_alser[m]> "I guess noone would choose..." <- why? not talking about embedded here (never used it in that environment), but for large scale distributed enterprise software it certainly makes sense as it's an efficient way to transport lots of information and do so in a versioned & backwards compatible manner (if you follow certain principles, anyway). combine it with something like apache kafka and you have a quite solid
<Ralph[m]> system, though it comes with some costs, of course.
IlPalazzo-ojiisa has joined #rust-embedded
adamhott[m] has quit [Quit: Idle timeout reached: 172800s]
<JamesMunns[m]1> I'm guessing it was mostly tongue in cheek: at least personally I don't have any problems with it, but it's not awesome on embedded, when you don't have a heap, and are likely perf sensitive.
<henrik_alser[m]> Yeah sorry for not providing context, it was tongue in cheek for the reasons James Munns pointed out :)
<henrik_alser[m]> * in cheek and for the
<henrik_alser[m]> I also use it a lot on server systems, i was just referring to constrained systems
<henrik_alser[m]> And in general it has given me a bit of headache but may very well be me that is stupid, not protobuf, iā€™m aware :)
<henrik_alser[m]> Ralph: ^^
Henk[m] has quit [Quit: Idle timeout reached: 172800s]
embedded-enthusi has joined #rust-embedded
Makarov has joined #rust-embedded
bpye has quit [Quit: Ping timeout (120 seconds)]
bpye has joined #rust-embedded
Makarov has quit [Quit: Client closed]
Makarov has joined #rust-embedded
AlexandrosLiarok has joined #rust-embedded
<AlexandrosLiarok> <henrik_alser[m]> "I guess noone would choose..." <- I have used it to store forwards-compatible presets across firmware updates. It works nicely due to having great tooling for importing and exporting to the desktop, providing visualization and being able to allow users to build editors using the schema.
Makarov14 has joined #rust-embedded
Makarov has quit [Ping timeout: 250 seconds]
MurrayToddWillia has quit [Quit: Idle timeout reached: 172800s]
<henrik_alser[m]> <AlexandrosLiarok> "I have used it to store forwards..." <- I can change! (if i have to šŸ˜œ)
Makarov14 has quit [Ping timeout: 250 seconds]
ViktorDemk[m] has quit [Quit: Idle timeout reached: 172800s]
embedded-enthusi has quit [Ping timeout: 264 seconds]
IlPalazzo-ojiisa has quit [Read error: Connection reset by peer]
<firefrommoonligh> <barafael[m]> "So I still have to use libm..." <- Yea. Try num_traits with libm. It will give you sqrt, abs, cos, sin etc; a lot of the methods on numbers you get in std but not no_std
<firefrommoonligh> I use it in most of my firmware
NiaLinaLunaStorm has joined #rust-embedded
<NiaLinaLunaStorm> when I try to add a 3rd axis to my USB HID device, I run into a BufferOverflow UsbError: https://docs.rs/usb-device/0.3.2/usb_device/enum.UsbError.html
<NiaLinaLunaStorm> how do I find out which buffer this is?
<NiaLinaLunaStorm> from there I increased all the arrays to be size 3 instead of 2 and modified the descriptor:... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/MbyCgbIHGChvgSnGgQNsblTV>)
Makarov has joined #rust-embedded
<NiaLinaLunaStorm> chainging OutBytes8 and InBytes8 to the 64 variant seems to fix it... I would like to understasnd why tho (and what can be done once I get to that 64 bit limit
<NiaLinaLunaStorm> s/bit/byte/
dngrs[m] has joined #rust-embedded
<dngrs[m]> <NiaLinaLunaStorm> "chainging OutBytes8 and InBytes8..." <- maybe with the `control-buffer-256` feature of `usb-device`, not sure if it applies to your specific problem but I ran into some memory issues in the past that were fixed by that
<M9names[m]> I think the data for hid is in interrupt transfers? The max size it dictated by the speed.
<M9names[m]> * I think the data for hid is in interrupt transfers? The max size is dictated by the speed.
msangi has left #rust-embedded [#rust-embedded]