Closed Cupcake-sama closed 7 years ago
You have a reply on your post on the TI E2E forum.
Have you installed Mosquitto Broker, and make sure that Mosquitto broker service is running. the MQTT library uses it. be sure to start service like this.
sudo service mosquitto start
you can also check its status to check if it is running properly.
sudo service mosquitto status
or extra options are
Usage: /etc/init.d/mosquitto {start|stop|reload|force-reload|restart|try-restart|status}
Hi,
We are also trying the same thing but with the BBB having Ethernet interface. We started the mosquitto and can see the data publish and subscribe.
debian@beaglebone:~$ mosquitto 1499344364: mosquitto version 1.4.8 (build date 2017-07-04 12:05:37+0000) starting 1499344364: Using default config. 1499344364: Opening ipv4 listen socket on port 1883. 1499344364: Opening ipv6 listen socket on port 1883. 1499344393: New connection from ::1 on port 1883. 1499344393: New client connected from ::1 as mosqsub/1328-beaglebone (c1, k60). 1499344421: New connection from ::1 on port 1883. 1499344421: New client connected from ::1 as mosqpub/1342-beaglebone (c1, k60). 1499344421: Client mosqpub/1342-beaglebone disconnected.
6lbr configuration is as follows,
MODE=ROUTER
RAW_ETH=1 BRIDGE=0 DEV_BRIDGE=br0 DEV_TAP=tap0 DEV_ETH=eth0
RAW_ETH_FCS=0
DEV_RADIO=/dev/ttyACM0 #2.4GHz USB Dongle will enumerate like ACM0
BAUDRATE=115200
LOG_LEVEL=3
and interface configuration is as follows,
auto lo iface lo inet loopback
auto eth0 iface eth0 inet dhcp
iface usb0 inet static address 192.168.7.2 netmask 255.255.255.0 network 192.168.7.0 gateway 192.168.7.1
Please let me know the issue.
Thanks Rahul
UPDATE
using tcpdump on port 1883 on the edge router (beaglebone black) there was no MQTT activity coming fromthe sensorTag(running cc26xx-web-demo with MQTT client,6lbr client,coap server enabled) on channle 26 with ble disabled. running mosquito on the edge router (beaglebone black) with local ip_
Please help, I cannot figure out why the MQTT client of the web demo is not publishing the sensor data.
p.s. the topic I'm subscribing to is iot-2/evt/status/fmt/json ++++++++++++++++++
I followed this tutorial : http://processors.wiki.ti.com/index.php/Cc26xx_sw_examples
but instead of using the cc26xx-demo I used the cc26xx-web-demo and successfully manged to get everything up and running and I can access the 6lbr web page, when I access the sensorTag page I see a mqtt configuration page as shown:
I'm trying to locally connect to the mqtt broker using javascript and have it send the sensor data so I can print it to the console.
but this is the output I'm getting
I ran tcpdump on my edge router (beaglebone black wirless) to listen for traffic on port 1883 and it seems to be picking up packets as shown
the only things I changed in the web demo before I complied it is in the project-conf.h
and then flashed it to my sensorTag cc2650stk
is the mqtt broker Ip and port I'm connecting to, right?
my setup
BBB wirless : edge router running 6lbr using the CC2531EMK dongle flashed with cc2531-slip-radio_contikimac from the ti example above cc2650STK : flashed with cc26xx-web-demo with mention change I made to the project-conf.h
6lbr settings :