Open opauwels opened 7 years ago
What hardware are you running this (XIG) on? What do your sensor nodes consist of (xbee version and AT, API, Sensor)?
Hi @Avocadodude , we've got this setup: AT mode, Temperature & Pressure sensor via an arduino with an xbee explorer. (Edit: And of course a DIGI WiFi gateway).
I'll try to reproduce it. I gave up on the IO sample and send the whole string from my sensors (not efficient, but works). I've been meaning to go back and test IO again. I have a Connect port X2 and a xbee gateway I can try it on. Both run Xig fine.
@Avocadodude Hi, any chance you've had the time to look at the io sampling yet? I'm still not getting any GET requests, as in the logs above, I am getting RECV, X-API, GOOD and SEND logs, but no GET requests are being sent... I've also tried setting the io sample URL as the "device cloud" server URL under the device cloud configuration settings, which actually generates some traffic, however the (web)access logs show the following:
192.168.0.103 - - [26/Nov/2017:15:55:46 +0000] "\x16\x03\x01\x01\"\x01" 400 0 "-" "-"
Instead of something like:
192.168.0.100 - - [26/Nov/2017:15:54:30 +0000] "GET /index.php HTTP/1.1" 200 1831 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5"
Could this mean I just need to setup an SSL certificate for this traffic to work?
Hi,
We have a temperature sensor hooked up / linked to a wifi gateway. In the gateway's python logs i can see the XIG plugin working as it should, it detects IO samples as you'll see in the log printout below, however, it does not seem to be triggering any HTTP GET requests.
Our xig_config.py `class XigConfig(object):
`
As you can see we've uncommented the IO_Sample session and have set up a io_sample_destination_url (which currently points to a raspberry pi running an apache2 webserver, this url works perfectly fine when visited manually with a webbrowser). However in the apache access logs i don't see any requests coming in from the gateway.
Heres a cutout section from our pyhton.log on the wifi gateway:
Oct 21 21:56:43 local7.info pylog: xig.io_kernel - RECV: 47 bytes from ('[00:13:A2:00:40:F5:F3:DF]!', 232, 49413, 17, 0, 0) ('Time:7928404 Temperature:22.7C Humidity:44.8%\r\n') Oct 21 21:56:43 local7.info pylog: xig.xmit - X-API ZigBee TX Status (id = 170) Oct 21 21:56:43 local7.info pylog: xig.xmit - GOOD: tx_status (id = 170) Oct 21 21:56:43 local7.info pylog: xig.xmit - SEND: to ('[00:13:A2:00:40:F5:F3:DF]!', 232, 49413, 17) (id = 171) Oct 21 21:56:43 local7.info pylog: xig.xmit - X-API ZigBee TX Status (id = 171) Oct 21 21:56:43 local7.info pylog: xig.xmit - GOOD: tx_status (id = 171) Oct 21 21:56:43 local7.info pylog: xig.xmit - SEND: to ('[00:13:A2:00:40:F5:F3:DF]!', 232, 49413, 17) (id = 172) Oct 21 21:56:43 local7.info pylog: xig.xmit - X-API ZigBee TX Status (id = 172) Oct 21 21:56:43 local7.info pylog: xig.xmit - GOOD: tx_status (id = 172) Oct 21 21:56:43 local7.info pylog: xig.xmit - SEND: to ('[00:13:A2:00:40:F5:F3:DF]!', 232, 49413, 17) (id = 173) Oct 21 21:56:43 local7.info pylog: xig.xmit - X-API ZigBee TX Status (id = 173) Oct 21 21:56:43 local7.info pylog: xig.xmit - GOOD: tx_status (id = 173) Oct 21 21:56:43 local7.info pylog: xig.xmit - SEND: to ('[00:13:A2:00:40:F5:F3:DF]!', 232, 49413, 17) (id = 174) Oct 21 21:56:43 local7.info pylog: xig.xmit - X-API ZigBee TX Status (id = 174) Oct 21 21:56:43 local7.info pylog: xig.xmit - GOOD: tx_status (id = 174) Oct 21 21:56:43 local7.info pylog: xig.xmit - SEND: to ('[00:13:A2:00:40:F5:F3:DF]!', 232, 49413, 17) (id = 175) Oct 21 21:56:43 local7.info pylog: xig.xmit - X-API ZigBee TX Status (id = 175) Oct 21 21:56:43 local7.info pylog: xig.xmit - GOOD: tx_status (id = 175) Oct 21 21:56:43 local7.info pylog: xig.xmit - SEND: to ('[00:13:A2:00:40:F5:F3:DF]!', 232, 49413, 17) (id = 176) Oct 21 21:56:44 local7.info pylog: xig.xmit - X-API ZigBee TX Status (id = 176) Oct 21 21:56:44 local7.info pylog: xig.xmit - GOOD: tx_status (id = 176) Oct 21 21:56:44 local7.info pylog: xig.xmit - SEND: to ('[00:13:A2:00:40:F5:F3:DF]!', 232, 49413, 17) (id = 177)
So the xig.io_kernel seems to be receiving the temp. data just fine, it's just not automatically sending any http trigger requests.
Any ideas what this could be?
Thanks