Are there any difference between mqttsrc/sink and tensor_query_* API? #3991
Replies: 4 comments 1 reply
-
Hello, @Sungbin710 .
I updated the video that connection between different devices. Please check it.
Please update connect-type from
You can use |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. I understand what HYBRID can do, however I wonder we don't have to use mqtt protocol when we use mqtt broker.
Server pipeline. (ubuntu 20.04) Client pipeline. (ubuntu 20.04) |
Beta Was this translation helpful? Give feedback.
-
You use wrong properties in your query elements. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi dev.
I am trying to implement edge pipeline Tutorial(T3, T4).
T3: https://nnstreamer.github.io/tutorial3_pubsub_mqtt.html#
T4: https://nnstreamer.github.io/tutorial4_query.html
Example in this tutorial is written only same device(localhost) and I did it. However I couldn't do this in other device(192.168.0.x).
I mean I did
localhost/other device by using mqttsrc/sink API. - MQTT protocol
only localhost by using tensor_query_* API. - TCP/MQTT protocol
are there any other examples between different devices using tensor_query_* API?
Also, I found https://github.com/nnstreamer/nnstreamer-example/tree/main/bash_script/example_tensor_query_mqtt and In client example, dest-host is written tcp://localhost, it needs protocol prefix like that?
Of course, I tried this but failed.
I tried MQTT protocol using below pipelines.
Server pipeline. (ubuntu 20.04) with MQTT broker

$ gst-launch-1.0 tensor_query_serversrc connect-type=MQTT port= dest-port=1883 topic=example ! other/tensors,num_tensors=1,dimensions=3:640:480:1,types=uint8,framerate=30/1 ! tensor_query_serversink connet-type=MQTT
Client pipeline. (ubuntu 20.04)

$ gst-launch-1.0 v4l2src ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,format=RGB,framerate=30/1 !
tensor_converter ! tensor_query_client connect-type=MQTT dest-host=<server==broker_ip> dest-port=1883 topic=example ! tensor_decoder mode=direct_video ! videoconvert ! ximagesink
I tried TCP, simlilarly

The error I got "Failed to connect host ip:port in client.
Beta Was this translation helpful? Give feedback.
All reactions