FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
390 views 7 comments
by anonymous

Hello,

I have a RUTX11 with two sims, both limited to 85000 Mb. From /etc/config/quota_limit:

config interface 'mob1s1a1'        option enabled '1'
        option period '3'
        option reset_day '8'
        option sim '1'
        option modem '3-1'
        option ifname 'mob1s1a1'
        option previous_period '3'
        option previous_reset_day_hour '8'
        option enable_warning '1'
        option warning_num '***********'
        option data_limit '85000'
        option warning_limit '84000'
        option wrn_sent '0'
        option due_reset_time '1604790000'

And similar values for sim 2 except reset_day '22'.

After being hit by a costly overshot during the previous period, I have monitored the mob1s1a1 counter. Here are the main results:

date; cat /proc/net/xt_quota/mob1s1a1

 

Wed Sep 30 23:27:35 CEST 2020
11575747189

date; cat /proc/net/xt_quota/mob1s1a1
Thu Oct  1 13:36:15 CEST 2020
88193667573

date; cat /proc/net/xt_quota/mob1s1a1
Wed Oct  7 20:41:43 CEST 2020
76328436149

date; cat /proc/net/xt_quota/mob1s1a1
Wed Oct  7 23:59:57 CEST 2020
75586509049
 
date; cat /proc/net/xt_quota/mob1s1a1
Thu Oct  8 00:00:04 CEST 2020
89128953327

date; cat /proc/net/xt_quota/mob1s1a1
Thu Oct  8 11:45:21 CEST 2020
74033802506

So the counter is reset on the first day of the month (bad), the eight of the month (good) and reports a huge usage during a short period between 00:00;04 and 11;45:21 Thu Oct 8 (wrong, according to the provider). The device does not switch to the alternate sim when the real quota is reached.

Firmware version: RUTX_R_00.02.04.3

Best regards.

1 Answer

0 votes
by anonymous
Hello,

Regarding this issue of yours may I know if the said device is like powered off and on or sometimes power is getting cut? Because some of the data could be lost in case of power usage that may result to reset of data limit counter.

Also i would suggest you to upgrade to the latest firmware available on our wiki page: https://wiki.teltonika-networks.com/view/RUTX11_Firmware_Downloads

Hope it helps

Regards,
Jerome
by anonymous

Hello Jerome,

root@lgrrutx:/etc/config# date; uptime

Thu Oct 8 12:59:40 CEST 2020 12:59:40

up 5 days, 9:59, load average: 0.47, 0.42, 0.40 

Regards,
by anonymous

Hello,

Hmm... I am not a 100% sure but could you try doing this calculations:

1. The total number divided by 1024.
2. Then the answer would be in bytes.
3. Now convert that bytes to Megabytes and check if it is showing the correct one or is it near to the value  you are expecting.

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

Note: your carrier's data usage accounting may differ. Teltonika is not liable should any accounting discrepancies occur.

Could you check :)

Regards,
Jerome

by anonymous
Hello Jerome,

Regarding the counter, the provider reports about 1.1 Gb at the moment, this is a huge discrepancy. This value is nowhere near the one extracted from the RUTX11. Looks like the /proc/net/xt_quota/mob1s1a1 has been reloaded from the result of ubus -S call mdcollect get_overall '{"iface_name":"qmimux0","conn_period":"month","sim":1}'.

Regarding the firmware upgrade:

     there is no indication of a possible fix for this issue neither in web page description nor in in the SDK changelog.

    version 02.05.1 lacks a workable wireguard package, of course I can compile a 1.0.20200729 version similar to the one I have done for 02.04.3 but I am a little short of time just now.

Regards,
by anonymous

Hello, 

I think i understand your issue the wrong way. So basically you are inputting let say 1000MB as the data limit but if you run the cat /proc/net/xt_quota/mob1s1a1 the result would be on bytes. 

To make it much clearer the 1000 MB input is not 1000 Megabytes but instead it is 1000 MiB so in order to convert it to bytes it would be 1048576000 bytes. 

1 kibibyte (KiB) = 210 bytes = 1024 bytes
1 mebibyte (MiB) = 210 kibibytes (KiB) = 220 bytes = 1 048 576 bytes

So if you want to limit the usage on your Sim 1 to 1GB you will input 953.67431640625 MiB. 

1GB -> 953.67431640625 MiB 
2GB -> 1907.3486 MiB
3GB -> 2861.02294921875 MiB

For this i will inform our HQ about the units and conversion. 

I hope it would clear up. 

Regards,
Jerome

by anonymous
Hello Jerome,

I already know the difference between MB and MiB and so on... I have been bitten by the units you use (not the same as the operator's)

The sims limits are at 90 GiB (operator's view), that's about 85000 MB (RUTX11's view). But the point is not there. It is the counter management that is completely wrong. It should not be reset on the first day of the month, only at the period expiration and not somewhat restored in the following few hours.

Regards,

.
by anonymous

Hello,

Could you send me a copy of the troubleshoot file of the said device via PM i will share it with the Team.

So it is much clearer now the main issue you are having is the data limit resets on the wrong date and showing and the data usage information is displaying wrong values compared with the ISP. And the sim card is not switching to the second  sim card when data limit is reached.

Also have you enabled sim switching? On Network > Mobile > Sim Switch.
 
Kindly check if i am correct so that i can inform our HQ about this

Regards,
Jerome

by anonymous
Hello Jerome,

Sim switching is enabled. I'll send you the troubleshoot file.

Regards,