딱히 포맷을 가리진 않는다고 한다.

그래서 json을 보내던, plain text를 보내던 바이너리를 보내던

바이너리를 base64encode 하던 상관없나 보다.

[링크 : https://www.emqx.com/en/blog/how-to-process-json-hex-and-binary-data-in-mqtt]

 

귀찮으면(!) 파일을 그냥 던져도 되나보다.

$ mosquitto_pub --help
mosquitto_pub is a simple mqtt client that will publish a message on a single topic and exit.
mosquitto_pub version 2.0.11 running on libmosquitto 2.0.11.

Usage: mosquitto_pub {[-h host] [--unix path] [-p port] [-u username] [-P password] -t topic | -L URL}
                     {-f file | -l | -n | -m message}
                     [-c] [-k keepalive] [-q qos] [-r] [--repeat N] [--repeat-delay time] [-x session-expiry]
                     [-A bind_address] [--nodelay]
                     [-i id] [-I id_prefix]
                     [-d] [--quiet]
                     [-M max_inflight]
                     [-u username [-P password]]
                     [--will-topic [--will-payload payload] [--will-qos qos] [--will-retain]]
                     [{--cafile file | --capath dir} [--cert file] [--key file]
                       [--ciphers ciphers] [--insecure]
                       [--tls-alpn protocol]
                       [--tls-engine engine] [--keyform keyform] [--tls-engine-kpass-sha1]]
                       [--tls-use-os-certs]
                     [--psk hex-key --psk-identity identity [--ciphers ciphers]]
                     [--proxy socks-url]
                     [--property command identifier value]
                     [-D command identifier value]
       mosquitto_pub --help

 -A : bind the outgoing socket to this host/ip address. Use to control which interface
      the client communicates over.
 -d : enable debug messages.
 -c : disable clean session/enable persistent client mode
      When this argument is used, the broker will be instructed not to clean existing sessions
      for the same client id when the client connects, and sessions will never expire when the
      client disconnects. MQTT v5 clients can change their session expiry interval with the -x
      argument.
 -D : Define MQTT v5 properties. See the documentation for more details.
 -f : send the contents of a file as the message.
 -h : mqtt host to connect to. Defaults to localhost.
 -i : id to use for this client. Defaults to mosquitto_pub_ appended with the process id.
 -I : define the client id as id_prefix appended with the process id. Useful for when the
      broker is using the clientid_prefixes option.
 -k : keep alive in seconds for this client. Defaults to 60.
 -L : specify user, password, hostname, port and topic as a URL in the form:
      mqtt(s)://[username[:password]@]host[:port]/topic
 -l : read messages from stdin, sending a separate message for each line.
 -m : message payload to send.
 -M : the maximum inflight messages for QoS 1/2..
 -n : send a null (zero length) message.
 -p : network port to connect to. Defaults to 1883 for plain MQTT and 8883 for MQTT over TLS.
 -P : provide a password
 -q : quality of service level to use for all messages. Defaults to 0.
 -r : message should be retained.
 -s : read message from stdin, sending the entire input as a message.
 -t : mqtt topic to publish to.
 -u : provide a username
 -V : specify the version of the MQTT protocol to use when connecting.
      Can be mqttv5, mqttv311 or mqttv31. Defaults to mqttv311.
 -x : Set the session-expiry-interval property on the CONNECT packet. Applies to MQTT v5
      clients only. Set to 0-4294967294 to specify the session will expire in that many
      seconds after the client disconnects, or use -1, 4294967295, or ∞ for a session
      that does not expire. Defaults to -1 if -c is also given, or 0 if -c not given.
 --help : display this message.
 --nodelay : disable Nagle's algorithm, to reduce socket sending latency at the possible
             expense of more packets being sent.
 --quiet : don't print error messages.
 --repeat : if publish mode is -f, -m, or -s, then repeat the publish N times.
 --repeat-delay : if using --repeat, wait time seconds between publishes. Defaults to 0.
 --unix : connect to a broker through a unix domain socket instead of a TCP socket,
          e.g. /tmp/mosquitto.sock
 --will-payload : payload for the client Will, which is sent by the broker in case of
                  unexpected disconnection. If not given and will-topic is set, a zero
                  length message will be sent.
 --will-qos : QoS level for the client Will.
 --will-retain : if given, make the client Will retained.
 --will-topic : the topic on which to publish the client Will.
 --cafile : path to a file containing trusted CA certificates to enable encrypted
            communication.
 --capath : path to a directory containing trusted CA certificates to enable encrypted
            communication.
 --cert : client certificate for authentication, if required by server.
 --key : client private key for authentication, if required by server.
 --keyform : keyfile type, can be either "pem" or "engine".
 --ciphers : openssl compatible list of TLS ciphers to support.
 --tls-version : TLS protocol version, can be one of tlsv1.3 tlsv1.2 or tlsv1.1.
                 Defaults to tlsv1.2 if available.
 --insecure : do not check that the server certificate hostname matches the remote
              hostname. Using this option means that you cannot be sure that the
              remote host is the server you wish to connect to and so is insecure.
              Do not use this option in a production environment.
 --tls-engine : If set, enables the use of a TLS engine device.
 --tls-engine-kpass-sha1 : SHA1 of the key password to be used with the selected SSL engine.
 --tls-use-os-certs : Load and trust OS provided CA certificates.
 --psk : pre-shared-key in hexadecimal (no leading 0x) to enable TLS-PSK mode.
 --psk-identity : client identity string for TLS-PSK mode.
 --proxy : SOCKS5 proxy URL of the form:
           socks5h://[username[:password]@]hostname[:port]
           Only "none" and "username" authentication is supported.

See https://mosquitto.org/ for more information.

'프로그램 사용 > mosquitto' 카테고리의 다른 글

zigbee CC2531 on ubuntu 실패  (0) 2025.12.27
zigbee 2 MQTT(Z2M) / zigbee home automation(ZHA)  (0) 2025.12.27
mosquitto qos  (0) 2025.04.18
mosquitto for windows 계정추가  (0) 2025.02.18
mosquitto service for windows  (0) 2025.02.18
Posted by 구차니
Linux/Ubuntu2026. 7. 9. 14:08

22.04

2760p 에서 부팅 잘됨.(uefi가 제한적으로 제공되는 녀석)

 

24.04

flag를 인식못하는지 bios_grub 쪽으로 켜졌다가 점프해야 할 것 같은데 부팅이 안된다.

 

도대체 몇번을 깔고 쑈하는지 쩝.

웃긴건 22.04 깔고 24.05로 distupgrade 하면 잘 된다는 것. 멀까..?

 

ESP - EFI (Extensible Firmware Interface) system partition

에는 부팅시 로드할 파일들이 있는데. UEFI에 다 올려져 있다면 파티션이 필요 없겠지만

지원이 미비한 보드의 경우 로드할 파일이 없으니 못켜지는걸려나?

[링크 : https://en.wikipedia.org/wiki/EFI_system_partition]

'Linux > Ubuntu' 카테고리의 다른 글

hp 2760p 우분투 26.02 설치 실패  (0) 2026.06.23
ubuntu 26.04 + 595.71.05 + CUDA 13.2  (0) 2026.06.17
festival - a text-to-speech system(tts)  (0) 2026.05.06
luit  (0) 2026.03.23
ubuntu 22.04 bgr 패널 대응  (0) 2025.12.29
Posted by 구차니

옷 더럽히려고 하니 텍스쳐를 수정해야 하나 싶었는데

블렌더에서 바로 수정이 가능한 듯?

'텍스쳐 페인트'

[링크 : https://www.youtube.com/watch?v=WEjCevjFakg&t=1s]

 

2년 지났다고 까먹다니 ㅠㅠ

2024.08.03 - [프로그램 사용/Blender] - blender uv editing

'프로그램 사용 > Blender' 카테고리의 다른 글

blender armature ik (각도 제한 등)  (0) 2026.07.10
bpy - Blender as a Python module  (0) 2026.07.10
blender rigging  (0) 2026.07.06
blender 폴리곤 줄이기  (0) 2026.07.06
blender armature addon  (0) 2026.06.27
Posted by 구차니

다이소 갔는데

sd카드 대충 사서 쓰려고 했더니

2달째 usb도 sd카드도 안들어 오고 있다고 -_ㅠ

 

다른데 가서 사려니까

용량은 적은데 더 비싸서 물어보니

옛날에 들어왔던거라 더 싸다고.. 아놔

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

socamm lpddr  (0) 2026.07.03
runpod 조사중  (0) 2026.07.01
cpu 줍줍  (0) 2026.06.30
포맷할때가 되었나..  (0) 2026.06.19
iptime as 접수  (0) 2026.06.15
Posted by 구차니
프로그램 사용/ros2026. 7. 8. 22:24

gpt 말로는

kinect v1을 ros2 에서 쓰려면 ros1을 통해서 ros1_bridge 라는걸 쓰라는데

이걸 하려면  ros 1은 20.04가 마지막이고, 해당 버전에 ros2를 설치해야 하는데

이럴바에는 docker 쓰는게 나을것 같긴한데..

 

 

[링크 : https://chatgpt.com/share/6a4e4e64-89d8-83e8-8429-fb6f46e87cbf]

 

아무튼  kinect 1을 쓰는건 일단 포기하고

ros2 + kinect v2 조합으로 RTAB-Map 이라는걸 써서 SLAM을 해보는걸로 방향을 잡아봐야겠다.

[링크 : https://786studio.tistory.com/7]

[링크 : https://saint-swithins-day.tistory.com/84]

[링크 : https://introlab.github.io/rtabmap/]

 

 

kinect는 USB 외에 별도 전원을 넣어줘야 하는게 귀찮은데

공식적으로? ms와 협업해서 하는 kinect azure의 alternative 제품으로

femto 라는게 있다고 한다. 환율 고려하면 제법 비싼데.. 거의 동등한 성능이라고

거기다가 kinect sdk를 쓸수 있을것 처럼 말하는데.. 어떨런지

[링크 : https://store.orbbec.com/collections/tof-camera]

[링크 : https://www.orbbec.com/microsoft-collaboration/]

Posted by 구차니

어우.. 핀셋이 사라져서  다이소 가서 뒤졌는데 없고

결국은 피부 미용용 가위로 겨우겨우 틱틱 거리면서 세움

얼마나 오래 가려나.. 쩝..

 

왼쪽에서 3,4번째 핀

 

 

배터리 개선판용과 초기형 부품이 서로 다르다고 한다.

3.5파이까지 한번에 갈아야 한다고.

[링크 : https://rgy0409.tistory.com/4468]

[링크 : https://rgy0409.tistory.com/3954]

Posted by 구차니
embeded/robot2026. 7. 8. 17:55

MoveJ - 먼가 이상하게(?) 휘어져서 갈때. joint 위주

MoveL - 그냥 직선으로만 움직일때 TCP를 선형으로(관절은 더 난리핌)

MoveP - 속도 중심(process?)

MoveCircle - viapoint를 찍어서 시작 - via - 끝 점을 통과하는 arc를 지나도록 계산.

[링크 : https://www.universal-robots.com/manuals/ko/HTML/SW5_25_1/Content/prod-usr-man/complianceUR3e/SW_sections/first_program/move.htm]

'embeded > robot' 카테고리의 다른 글

elephant robototics mycobot ros2  (0) 2026.07.03
mycobot ros1/ros2  (0) 2026.07.02
gcode (g-code)  (0) 2026.07.01
mycobot280 pi / TCP(tool center point)  (0) 2026.06.30
mycobot 280 pi / python  (0) 2026.06.29
Posted by 구차니

현재 사용가능한 모델.

opus가 sonnet 대비 2배 더 먹는다고 되어있는데

fable 자체는 어떤지 말이 없다.

 

fable +effort  medium으로 20$ 짜리 요금제에서 해봤더니

혼자 한번 시도하다가 40분 만에 5시간 쿼터 날려먹고 정지..

fable 이번주 쿼터는 15% 사용

그런데 위에 보면 fable에서 20.9k input / 123.2k output 캐시는 모르겠지만

입력대비 출력이 적은거 보면 수다스러운 모델은 아닌듯.

그런데 출력 기준으로.. sonnet 이 1.5M 에 313$ 값어치라고 하는데

fable은 123k 에 62$ 단가로 치면 같은 output을 맞추려면 2.5배 는 비쌀 듯.

그런데 저 금액은 어떻게 산출되는거지?

 

+

오후에는 opus medium effort로 소모

1시간 반쯤 쓸 수 있었던 것 같고.

비용으로는

opus는 sonnet 대비 1.8배 정도 나올 느낌? (125k / 49달러 -> 12배 = 1.5M / 588달러. 588/313 = 1.87배)

fable은 sonnet 대비 2.37배 정도 나올 것 같다.

 

걍 pro(20$) 로는 sonnet이나 medium effort로 써야 할 듯.

'프로그램 사용 > ai 프로그램' 카테고리의 다른 글

claude code 세션 정보  (0) 2026.07.06
claude.ai / claude code  (0) 2026.07.03
회사 클로드 결제  (2) 2026.07.03
gemini cli 안녕~?  (0) 2026.07.01
mogrify를 이용한 이미지 증강, 배경색 설정  (0) 2026.06.25
Posted by 구차니

9S의 절규가 너무 와닫는 엔딩

그래도 개인적으로는 A2의 엔딩이 더 여운이 남긴한다.

 

 

 

 

아니오 하면 시작으로 이동

 

 

아니오 하면 이것도 시작 화면으로 간다.

 

그렇게 시작하는 E 엔딩

 

근데 이지로 해서 자동으로 하다 보니 못깸 ㅋㅋㅋ

 

온라인 연동하면 웬지 싫어서 해볼까 하는데

죽어서 포기하면 시작 화면으로 간다.

E엔딩은 포기해야하나?

 

E F I J N O Q X Y 엔딩이 남았군!

Posted by 구차니

인터프리트 언어 특성상 해보기 전에 오타나 이런걸 확인하기 좀 어려운데

py를 pyc pyo등으로 바꾸는 "컴파일"을 제공하는 언어다 보니

python byte code로 변환하기 위해 문법을 체크하는지

이걸 이용해서 문법을 우회적으로(?) 확인할 수 있다

 

$ pycompile 
Usage: pycompile [-V [X.Y][-][A.B]] DIR_OR_FILE [-X REGEXPR]
       pycompile -p PACKAGE

 

오.. 좋은데?

$ cat tt.py 
mport time

time.sleep(1)

$ pycompile tt.py 
  File "tt.py", line 1
    mport time
             ^
SyntaxError: invalid syntax

[링크 : https://salguworld.tistory.com/entry/LinuxPython-파이썬-pycompile-활용-파이썬-코드-C-코드-컴파일-예제-1단일-소스코드-컴파일]

[링크 : https://stackoverflow.com/questions/4537411/compile-but-do-not-run-a-python-script]

 

thank you claude.ai

Posted by 구차니