PINE64
atinout binaries for mobian/debian? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: atinout binaries for mobian/debian? (/showthread.php?tid=19220)



atinout binaries for mobian/debian? - NeutralGrey - 05-12-2024

Does anyone have any binaries atinout for mobian on pinephone 1.2?

https://atinout.sourceforge.net/ does not have precompiled binaries for debian/mobian and attempting to compile from source results in a segmentation fault error.


RE: atinout binaries for mobian/debian? - Gumur - 05-12-2024

(05-12-2024, 10:03 AM)NeutralGrey Wrote: Does anyone have any binaries atinout for mobian on pinephone 1.2?

https://atinout.sourceforge.net/ does not have precompiled binaries for debian/mobian and attempting to compile from source results in a segmentation fault error.

Download the tar.gz file, and compile on a terminal:

$ gcc atinout.c -o atinout
or
$ gcc -O2 atinout.c -o atinout


If you get an error on line 173, modify this line in this way:

printf("atinout version \" VERSION \"\n");

I compiled it on mobian-bookworm without error, but i did not verify if it works.


RE: atinout binaries for mobian/debian? - Gumur - 05-13-2024

I can confirm it works, sending these two commands with success:

echo 'AT+QGMR' | sudo ./atinout - /dev/ttyUSB2 -

echo 'AT+QMBNCFG="list"' | sudo ./atinout - /dev/ttyUSB2 -


RE: atinout binaries for mobian/debian? - baptx - 08-07-2024

There is a Makefile, so you don't need to compile with gcc command directly, you can just type "make" in the source folder.
I got this error:

Code:
gcc -o atinout -W -Wall -Wextra -Werror -DVERSION=\"0.9.1\" -g  atinout.c
atinout.c: In function ‘is_final_result’:
atinout.c:141:20: error: this statement may fall through [-Werror=implicit-fallthrough=]
  141 |                if (strcmp(&response[1], "K\r\n") == 0) {
      |                    ^
atinout.c:145:9: note: here
  145 |        default:
      |        ^~~~~~~
cc1: all warnings being treated as errors                                                                                                                                                                       
make: *** [Makefile:14: atinout] Error 1

So I removed -Werror from the Makefile and it compiled successfully.
If you want to use "atinout" instead of "./atinout" for the commands, you can install the binary with "sudo make install".

Executing AT commands works too:
https://wiki.pine64.org/index.php/PinePhone#AT_commands


RE: atinout binaries for mobian/debian? - astylethargic - 10-31-2024

(05-12-2024, 10:03 AM)NeutralGrey Wrote: Does anyone have any binaries atinout for mobian on pinephone 1.2?

https://atinout.sourceforge.net/ does not have precompiled binaries for debian/mobian and attempting to compile from source results in a segmentation fault error.

It looks like there aren’t any precompiled binaries for Atinout on Mobian for the PinePhone. If you’re facing segmentation faults while compiling from source, it could be related to dependencies or specific configurations for ARM architecture.

Here are a few suggestions you could try:

Check Dependencies: Ensure all required libraries and dependencies are properly installed. Sometimes missing or incompatible versions can lead to segmentation faults.

Debugging: If you’re comfortable, you could try running the compilation with debugging tools like gdb to pinpoint where the segmentation fault occurs.

Community Support: Consider reaching out on forums or community channels related to Mobian or PinePhone. Other users may have encountered similar issues or may have binaries available.

Alternative Solutions: If Atinout is crucial for your use case, you could explore whether similar tools are available or if you could use a different method to achieve your goals.