Advertisement
sliq19882

Musebook EC "protocol"

Aug 22nd, 2024 (edited)
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. root@k1:~# strace -t -f -e write,read,openat,close /usr/local/bin/k1x_ec
  2. 21:46:23 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
  3. 21:46:23 close(3) = 0
  4. 21:46:23 openat(AT_FDCWD, "/lib/riscv64-linux-gnu/libdbus-1.so.3", O_RDONLY|O_CLOEXEC) = 3
  5. 21:46:23 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
  6. 21:46:23 close(3) = 0
  7. 21:46:23 openat(AT_FDCWD, "/lib/riscv64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
  8. 21:46:23 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\334h\2\0\0\0\0\0"..., 832) = 832
  9. 21:46:23 close(3) = 0
  10. 21:46:23 openat(AT_FDCWD, "/lib/riscv64-linux-gnu/libsystemd.so.0", O_RDONLY|O_CLOEXEC) = 3
  11. 21:46:23 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
  12. 21:46:23 close(3) = 0
  13. 21:46:23 openat(AT_FDCWD, "/lib/riscv64-linux-gnu/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
  14. 21:46:23 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0.k\0\0\0\0\0\0"..., 832) = 832
  15. 21:46:23 close(3) = 0
  16. 21:46:23 openat(AT_FDCWD, "/lib/riscv64-linux-gnu/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = 3
  17. 21:46:23 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
  18. 21:46:23 close(3) = 0
  19. 21:46:23 openat(AT_FDCWD, "/lib/riscv64-linux-gnu/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3
  20. 21:46:23 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
  21. 21:46:23 close(3) = 0
  22. 21:46:23 openat(AT_FDCWD, "/lib/riscv64-linux-gnu/libzstd.so.1", O_RDONLY|O_CLOEXEC) = 3
  23. 21:46:23 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
  24. 21:46:23 close(3) = 0
  25. 21:46:23 openat(AT_FDCWD, "/lib/riscv64-linux-gnu/liblz4.so.1", O_RDONLY|O_CLOEXEC) = 3
  26. 21:46:23 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
  27. 21:46:23 close(3) = 0
  28. 21:46:23 openat(AT_FDCWD, "/lib/riscv64-linux-gnu/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = 3
  29. 21:46:23 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\363\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
  30. 21:46:23 close(3) = 0
  31. 21:46:23 openat(AT_FDCWD, "/dev/uinput", O_RDWR|O_NONBLOCK) = 3
  32. 21:46:23 write(3, "K1X UART KEY\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1116) = 1116
  33. 21:46:23 openat(AT_FDCWD, "/dev/ttyS2", O_RDWR|O_NOCTTY|O_NONBLOCK) = 4
  34. 21:46:23 read(5, "OK 050d3b1f91b0df25233d461a66c77"..., 2048) = 37
  35. 21:46:23 read(5, "AGREE_UNIX_FD\r\n", 2048) = 15
  36. 21:46:23 write(2, "dbus[11681]: ", 13dbus[11681]: ) = 13
  37. 21:46:23 write(2, "A handler is already registered "..., 47A handler is already registered for /k1/ec/comm) = 47
  38. 21:46:23 write(2, "\n", 1
  39. ) = 1
  40. strace: Process 11683 attached
  41. strace: Process 11684 attached
  42. [pid 11683] 21:46:23 +++ exited with 0 +++
  43. strace: Process 11685 attached
  44. [pid 11684] 21:46:23 +++ exited with 0 +++
  45. [pid 11685] 21:46:27 write(4, "led_power breath\n", 17) = 17
  46. [pid 11685] 21:46:27 write(4, "led_charge breath\n", 18) = 18
  47. [pid 11685] 21:46:57 write(4, "led_power breath\n", 17) = 17
  48. [pid 11685] 21:46:57 write(4, "led_charge breath\n", 18) = 18
  49. ^Cstrace: Process 11681 detached
  50. strace: Process 11685 detached
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement