hi can you help me with how to use the ir ocrustar dongle on windows? #1

Closed
opened 2025-01-25 12:57:08 +01:00 by RaulTheMiner17 · 4 comments

hi can you help me with how to use the ir ocrustar dongle on windows?

hi can you help me with how to use the ir ocrustar dongle on windows?
Owner

Hello, Windows is not supported or planned. It works on Linux, BSD, and macOS only.

That said, if you can program, it's relatively simple to rewrite.

Hello, Windows is not supported or planned. It works on Linux, BSD, and macOS only. That said, if you can program, it's relatively simple to rewrite.
p closed this issue 2025-01-25 14:02:54 +01:00
Author

thank you! i managed to get it work with termux on my android, i need help to convert the data captured from a flipper zero to the hex string input, can you please help me?

below is the raw data captured from flipper zero

name: RAW_587
type: raw
frequency: 38000
duty_cycle: 0.330000
data: 1144 3045 358 2356 515 880 490 907 489 1591 490 2988 490 6554 490 881 515 854 542 2250 1203 2960 516 1565 516 2276 1204 1563 516 2962 516 1564 517 1565 516 2251 1228 2935 515 2276 517 854 516 880 516 1565 516 2961 517 56594 628 718 1365 2800 1363 2822 654 1427 654 2801 677 1427 654 1427 654 2112 1367 2796 679 1403 678 2114 654 717 679 716 653 1428 654 742 654 1427 654 2825 653 6432 627 719 1364 2823 1339 2824 653 1428 653 2825 653 1428 653 1428 653 2113 1367 2797 677 1404 678 2115 652 718 678 717 652 1429 653 743 653 1428 653 2825 653 6432 627 720 1363 2824 1339 2824 652 1428 653 2825 653 1429 652 1428 653 2114 1365 2797 678 1403 679 2115 652 718 678 716 653 1429 652 744 652 1428 653 2826 652 6432 627 720 1363 2824 1338 2824 653 1428 653 2825 653 1429 652 1429 652 2114 1366 2797 677 1404 678 2115 652 718 678 717 652 1429 653 743 653 1428 653 2826 652 6433 626 720 1363 2824 1363 2800 652 1428 653 2825 653 1429 652 1429 652 2114 1365 2798 677 1404 678 2115 652 718 678 717 652 1429 652 744 653 1429 652 2826 652 6433 626 744 1339 2825 1337 2825 652 1429 652 2826 652 1430 651 1429 652 2114 1366 2798 676 1404 678 2116 651 719 677 718 651 1430 676 720 651 1430 651 2827 651 6434 625 745 1338 2826 1336 2827 650 1431 650 2827 651 1432 649 1431 650 2140 1339 2824 651 1430 652 2141 626 744 652 744 625 1456 650 746 626 1455 626 2853 625 6460 599 746 1337 2851 1312 2851 626 1456 625 2828 650 1456 625 1456 625 2141 1339 2825 650 1431 651 2142 625 745 651 745 625 1456 650 746 626 1456 625 2853 626 6460 599 746 1337 2851 1336 2827 625 1456 625 2830 649 1456 625 1456 625 2141 1339 2824 651 1431 651 2142 625 745 651 744 625 1456 650 746 626 1455 626 2853 625 6460 599 746 1337 2851 1311 2851 626 1456 625 2828 650 1456 625 1456 625 2141 1338 2825 650 1431 651 2142 625 745 651 745 625 1456 650 746 626 1456 625 2853 625 6461 598 747 1336 2852 1336 2827 625 1456 625 2853 625 1456 625 1456 625 2142 1338 2825 650 1432 650 2144 623 746 650 746 624 1457 624 772 624 1457 624 2855 623 6462 1284 2167 1310 773 1308 2854 623 2168 598 1483 599 773 622 774 622 1459 622 2169 1311 2852 598 2170 622 2854 599 797 598 1483 598 798 573 1509 572 2906 597 6489 1258 2169 1284 822 1284 2878 597 2170 597 1484 598 798 597 799 597 1485 572 2194 1286 2878 597 2196 571 2880 598 798 596 1485 597 799 572 1510 571 2907 571 6531 1256 2196 1257 823 1258 2906 570 2221 570 1486 596 801 570 826 570 1511 570 2196 1283 2880 595 2223 544 2907 571 826 544 1537 569 827 545 1537 544 2934 544 6525 1229 2223 1231 851 1255 2933 518 2224 569 1538 542 854 517 879 517 1564 517 2250 1229 2934 515 2277 516 2962 516 907 462 1618 459 911 462 1805 100

thank you! i managed to get it work with termux on my android, i need help to convert the data captured from a flipper zero to the hex string input, can you please help me? below is the raw data captured from flipper zero name: RAW_587 type: raw frequency: 38000 duty_cycle: 0.330000 data: 1144 3045 358 2356 515 880 490 907 489 1591 490 2988 490 6554 490 881 515 854 542 2250 1203 2960 516 1565 516 2276 1204 1563 516 2962 516 1564 517 1565 516 2251 1228 2935 515 2276 517 854 516 880 516 1565 516 2961 517 56594 628 718 1365 2800 1363 2822 654 1427 654 2801 677 1427 654 1427 654 2112 1367 2796 679 1403 678 2114 654 717 679 716 653 1428 654 742 654 1427 654 2825 653 6432 627 719 1364 2823 1339 2824 653 1428 653 2825 653 1428 653 1428 653 2113 1367 2797 677 1404 678 2115 652 718 678 717 652 1429 653 743 653 1428 653 2825 653 6432 627 720 1363 2824 1339 2824 652 1428 653 2825 653 1429 652 1428 653 2114 1365 2797 678 1403 679 2115 652 718 678 716 653 1429 652 744 652 1428 653 2826 652 6432 627 720 1363 2824 1338 2824 653 1428 653 2825 653 1429 652 1429 652 2114 1366 2797 677 1404 678 2115 652 718 678 717 652 1429 653 743 653 1428 653 2826 652 6433 626 720 1363 2824 1363 2800 652 1428 653 2825 653 1429 652 1429 652 2114 1365 2798 677 1404 678 2115 652 718 678 717 652 1429 652 744 653 1429 652 2826 652 6433 626 744 1339 2825 1337 2825 652 1429 652 2826 652 1430 651 1429 652 2114 1366 2798 676 1404 678 2116 651 719 677 718 651 1430 676 720 651 1430 651 2827 651 6434 625 745 1338 2826 1336 2827 650 1431 650 2827 651 1432 649 1431 650 2140 1339 2824 651 1430 652 2141 626 744 652 744 625 1456 650 746 626 1455 626 2853 625 6460 599 746 1337 2851 1312 2851 626 1456 625 2828 650 1456 625 1456 625 2141 1339 2825 650 1431 651 2142 625 745 651 745 625 1456 650 746 626 1456 625 2853 626 6460 599 746 1337 2851 1336 2827 625 1456 625 2830 649 1456 625 1456 625 2141 1339 2824 651 1431 651 2142 625 745 651 744 625 1456 650 746 626 1455 626 2853 625 6460 599 746 1337 2851 1311 2851 626 1456 625 2828 650 1456 625 1456 625 2141 1338 2825 650 1431 651 2142 625 745 651 745 625 1456 650 746 626 1456 625 2853 625 6461 598 747 1336 2852 1336 2827 625 1456 625 2853 625 1456 625 1456 625 2142 1338 2825 650 1432 650 2144 623 746 650 746 624 1457 624 772 624 1457 624 2855 623 6462 1284 2167 1310 773 1308 2854 623 2168 598 1483 599 773 622 774 622 1459 622 2169 1311 2852 598 2170 622 2854 599 797 598 1483 598 798 573 1509 572 2906 597 6489 1258 2169 1284 822 1284 2878 597 2170 597 1484 598 798 597 799 597 1485 572 2194 1286 2878 597 2196 571 2880 598 798 596 1485 597 799 572 1510 571 2907 571 6531 1256 2196 1257 823 1258 2906 570 2221 570 1486 596 801 570 826 570 1511 570 2196 1283 2880 595 2223 544 2907 571 826 544 1537 569 827 545 1537 544 2934 544 6525 1229 2223 1231 851 1255 2933 518 2224 569 1538 542 854 517 879 517 1564 517 2250 1229 2934 515 2277 516 2962 516 907 462 1618 459 911 462 1805 100
Owner

That's interesting information to me, I should try to build it within termux as well.

Okay. If you have the newer model, elksmart-comm can record pulse data as well. On the older model, it will however capture properly only when the stars are aligned.

elksmart-comm takes an encoded hex string of pulse pairs, which is the encoding the gadget itself uses, so you can filter the "data" numbers through a script like:

import sys
def encode_number(n):
    if n <= 254:
        return f"{n:02x}"
    return "ff" * (n // 255) + f"{n % 255:02x}"

numbers = sys.stdin.read().split()
print("".join(encode_number(int(num) // 16) for num in numbers))

Thus the command line argument could be something like:

47be169320371e381e631eba1eff9a1e372035218c4bb92061208e4b6120b920612061208c4cb7208e20352037206120b920ffffffffffffffffffffffffffde272c55af55b0285928af2a592859288455ae2a572a84282c2a2c2859282e285928b028ff93272c55b053b0285928b028592859288455ae2a572a84282c2a2c2859282e285928b028ff93272d55b053b0285928b028592859288455ae2a572a84282c2a2c2859282e285928b028ff93272d55b053b0285928b028592859288455ae2a572a84282c2a2c2859282e285928b028ff93272d55b055af285928b028592859288455ae2a572a84282c2a2c2859282e285928b028ff93272e53b053b0285928b028592859288455ae2a572a84282c2a2c28592a2d285928b028ff93272e53b053b0285928b028592859288553b028592885272e282e275b282e275a27b227ff94252e53b252b2275b27b0285b275b278553b028592885272e282e275b282e275b27b227ff94252e53b253b0275b27b0285b275b278553b028592885272e282e275b282e275a27b227ff94252e53b251b2275b27b0285b275b278553b028592885272e282e275b282e275b27b227ff94252e53b253b0275b27b2275b275b278553b028592886262e282e275b2730275b27b226ff945087513051b22687255c25302630265b268751b2258726b22531255c2531235e23b525ff964e87503350b32587255c25312531255c238950b3258923b42531255c2531235e23b523ff994e894e334eb5238a235c25322333235e238950b4258a22b5233322602333226022b722ff984c8a4c354eb7208b2360213520362061208c4cb7208e20b920381c651c381c7006

Your capture looks odd, it does not follow the typical structure of infrared controls, though at least it's somewhat regular.

That's interesting information to me, I should try to build it within termux as well. Okay. If you have the newer model, elksmart-comm can record pulse data as well. On the older model, it will however capture properly only when the stars are aligned. elksmart-comm takes an encoded hex string of pulse pairs, which is the encoding the gadget itself uses, so you can filter the "data" numbers through a script like: ```python import sys def encode_number(n): if n <= 254: return f"{n:02x}" return "ff" * (n // 255) + f"{n % 255:02x}" numbers = sys.stdin.read().split() print("".join(encode_number(int(num) // 16) for num in numbers)) ``` Thus the command line argument could be something like: ``` 47be169320371e381e631eba1eff9a1e372035218c4bb92061208e4b6120b920612061208c4cb7208e20352037206120b920ffffffffffffffffffffffffffde272c55af55b0285928af2a592859288455ae2a572a84282c2a2c2859282e285928b028ff93272c55b053b0285928b028592859288455ae2a572a84282c2a2c2859282e285928b028ff93272d55b053b0285928b028592859288455ae2a572a84282c2a2c2859282e285928b028ff93272d55b053b0285928b028592859288455ae2a572a84282c2a2c2859282e285928b028ff93272d55b055af285928b028592859288455ae2a572a84282c2a2c2859282e285928b028ff93272e53b053b0285928b028592859288455ae2a572a84282c2a2c28592a2d285928b028ff93272e53b053b0285928b028592859288553b028592885272e282e275b282e275a27b227ff94252e53b252b2275b27b0285b275b278553b028592885272e282e275b282e275b27b227ff94252e53b253b0275b27b0285b275b278553b028592885272e282e275b282e275a27b227ff94252e53b251b2275b27b0285b275b278553b028592885272e282e275b282e275b27b227ff94252e53b253b0275b27b2275b275b278553b028592886262e282e275b2730275b27b226ff945087513051b22687255c25302630265b268751b2258726b22531255c2531235e23b525ff964e87503350b32587255c25312531255c238950b3258923b42531255c2531235e23b523ff994e894e334eb5238a235c25322333235e238950b4258a22b5233322602333226022b722ff984c8a4c354eb7208b2360213520362061208c4cb7208e20b920381c651c381c7006 ``` Your capture looks odd, it does not follow the typical structure of infrared controls, though at least it's somewhat regular.
Owner

I've confirmed that elksmart-comm works on Android 8.1 under superuser (within Termux).

I've confirmed that elksmart-comm works on Android 8.1 under superuser (within Termux).
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: p/usb-drivers#1
No description provided.