I know I'm posting this a second time but this is a more general question than before to hopefully get some eyes on it:

#FlipperZero devs: if you can point me towards how to interact at all with IR reading/writing through a script (let's say python for simplicity but I don't really care), please send it to me.

Like, I'd be satisfied with a single line of code of just like

MysteriousFlipperFunctionForIR(RawIRNum1,RawIRNum2,etc)

I have the entire rest of the algorithm I need in my head, but I haven't done anything with scripting for the Flipper Zero and I have no idea how I can send or receive raw IR data from it. The only missing link for me is this part. I basically just need an IR-specific hello world kinda thing here to get this going.

If you know how to do this and want more details on what I'm trying to do, what I need is a simple script that:

1) sends an IR signal
2) reads back an IR signal after sending the initial one
3) sends another signal after confirming it received the full signal from step 2
4) continues on in this pattern untill communication is complete.

These are all raw IR, I've captured the signal in step 1 so I actually have that on hand already, and I know how to calculate the signals for everything else, I just don't know how to handle the interaction between the flipper hardware and the code. The algorithm is there, it's the hardware API I'm lost on because there's not a lot of documentation out there.

I posted this on Reddit as well, and just got a "let me google that for you" reply from someone who has never tried to google this information :-)
Aside from Google being basically useless in 2023, Flipper Zero info is not exactly readily available at this point.

@lori

also interested (unless i have to join a discord)

@solder_on The flipper zero discord did not give me much of an answer (nor did searching it). The only useful thing I got was linking me to the infrared functions in the firmware, which is probably helpful, but my eyes glaze over looking at it and it could really use some comments https://github.com/flipperdevices/flipperzero-firmware/tree/dev/applications/main/infrared
flipperzero-firmware/applications/main/infrared at dev · flipperdevices/flipperzero-firmware

Flipper Zero firmware source code. Contribute to flipperdevices/flipperzero-firmware development by creating an account on GitHub.

GitHub
@lori @solder_on I search for "calling flipperzero functions from python" and found this: https://github.com/wh00hw/pyFlipper
Looks alright and if it doesnt work you should at least get some error messages from python about what went wrong :)
GitHub - wh00hw/pyFlipper: Unoffical Flipper Zero cli wrapper written in Python

Unoffical Flipper Zero cli wrapper written in Python - GitHub - wh00hw/pyFlipper: Unoffical Flipper Zero cli wrapper written in Python

GitHub
@d0d0 @solder_on calling the functions from python isn't really my problem so much, it's figuring out how to interact with the IR functions specifically. What the functions I need are to read/send raw IR signals, what data types they're expecting, etc.
@d0d0 @solder_on okay I'm only now seeing that it has its own IR stuff at the very very bottom lol sorry this might be good then

@lori you mean like baseband analog/digital IR, not IrDA?

Is that really not documented?!?

@kkarhan just regular ass raw IR, I'm communicating with a Gameboy color.

Someone did link me to the firmware files with the functions but I am extremely bad at digging through a bunch of undocumented code to figure out what it does. Some comments in there would be nice. The manual has nothing about doing this via code, just learning remotes or loading IR files out there.

@lori https://github.com/wh00hw/pyFlipper ? note : I've not used on my end but the readme seems to indicate at least a tx/rx wrapper in python
GitHub - wh00hw/pyFlipper: Unoffical Flipper Zero cli wrapper written in Python

Unoffical Flipper Zero cli wrapper written in Python - GitHub - wh00hw/pyFlipper: Unoffical Flipper Zero cli wrapper written in Python

GitHub