FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14083 questions

16727 answers

27455 comments

53734 members

0 votes
429 views 10 comments
by

I have an RUTX11 and am trying to send wifi scanner data to an http web service so I can detect nearby networks. 

I have set up a data sender in Services -> Data to Server (see screenshot), but it is not sending anything to my web server.

I am already using 'data to server' to send modbus data to my web server and that works ok.

1 Answer

0 votes
by
Hello,

Thank you for contacting.

May i know what is the firmware on the device ?

Can you try to disable retry on fail ?

Also may i know why did you put /wifi after port and host ?

In the json format field have you to tried to edit parameters just to check if its a text and not a grey text.

Thanks.

Regards,

Ahmed
by

I have disabled "retry on fail", no change.

"/wifi" is the address of my web service that will receive the http post, but I did also try set it to the root of my web server but still no change.

You were correct about the json field (and the custom header) while they were showing content in the boxes, when I click into those boxes, it is empty so it was just a prompt!
That was very misleading. I did enter the correct json and content-type header but still, I am not receiving the http post.

My firmware version is RUTX_R_00.07.00 which is the latest

by
Hello,

Could you try to add http:// with you server address.

Thanks.
by
Yes I've already tried adding http:// to the front, no change.

Just not that I have another "Data to Server" entry for sending modbus data to the same http web server and this one works fine. The URL in that case is "192.168.1.182:3000/router".
by

Hello,

I have tested it and its working fine for me.

May i know if you have enabled the wifi scanner in the wireless settings.

https://wiki.teltonika-networks.com/view/RUTX11_Wireless#WiFi_Scanner

https://community.teltonika-networks.com/?qa=blob&qa_blobid=13146091553443820555

Thanks. 

by

Okay that's embarassing. I didn't realise there was a setting to turn WiFi scanning on. I should have read the manual huh. blush

Many thanks for your help though, it is working now.

One other question while you are there though - Is there a way to determine whether the RUTX11 is currently using Wifi or Cellular or WAN port for data? I have my router set to use WAN, Wifi Client, and failover to Cellular, but I need to find a way to know which mode it's currently in.  My use case is that when the Wifi Client is connected, my applicaiton will upload it's data to the server, but not when on Cellular.

My reason for enabling Wifi Scanning was to maybe use the MAC address of the router to know if we're near the router. But maybe there is a better way? I can't see anything useful in the MODBUS registers for this.

by
Hello,

You can use event reporting feature to get notified when there is a switching between the WANS.

https://wiki.teltonika-networks.com/view/RUT950_Events_Reporting

Thanks
by
Events reporting sending an SMS or EMAIL is fine if you want a person to recieve a notification, but that is of absoutely no use if you want a "software system" to be notified.

It's a real shame that Teltonika didn't include the ability to send events via the "Data To Server" feature. This would have been an obvious use case!
by

Hello,

There is another way to do this if you want to send it with data to server.

You can send different modbus parameters like network type, current WAN IP, currently active sim card, GSM and Operator name.

Further you can visit this :

https://wiki.teltonika-networks.com/view/RUTX11_Monitoring_via_Modbus#Getting_router_parameters

Thanks. 

by
I have looked at al those MODBUS registers, but none of them help me.

The network type seems to show the cellular network type (WCDMA etc), regardless of whether cellular or wifi client or WAN port is used for data.

Likewise active sim card I think would show you the active sim regardless of whether the Wifi Client or WAN port is used for data (not the cellular network).
by
Hello,

I am sorry that the feature you are asking couldn't be sent via data to server. But we appreciate your suggestions.

Thanks.