Receiving incorrect balances / partially jumbled SMS

Any communication concerning the SMS module

Moderators: hugo, alexandre, rmvanarkel

Post Reply
simonjwoolf
Posts: 111
Joined: Mon May 28, 2012 8:49 am

Receiving incorrect balances / partially jumbled SMS

Post by simonjwoolf » Mon Jul 15, 2013 11:44 am

Hi,

We've noticed an issue with one of our few remaining Cyclos 3.6 systems (using SMS Driver and Controller 1.0)

One user has reported that they are consistently receiving SMS with the wrong balance. The balance is wrong whether they make a payment transaction or request their balance (dt). It is usually *very* wrong, eg: £B130 when it should be £B2.35 for example.

On examination of their texts, we can see that it looks like one or more texts are being garbled/concatenated toegether.

Has anyone seen a similar issue, or have any idea how to troubleshoot and resolve it?

Simon
MLJ phone screenshot - incorrect confirmation balance.jpg
MLJ phone screenshot - incorrect confirmation balance.jpg (77.56 KiB) Viewed 3431 times
MLJ phone screenshot - incorrect confirmation balance and text 150713.JPG
MLJ phone screenshot - incorrect confirmation balance and text 150713.JPG (57.23 KiB) Viewed 3431 times
---
Simon Woolf
Cyclos Consultant

rmvanarkel
Posts: 240
Joined: Tue Oct 05, 2010 1:14 pm

Re: Receiving incorrect balances / partially jumbled SMS

Post by rmvanarkel » Tue Jul 16, 2013 9:48 am

After studying the logs you send us, it seems that the problem only occurs with long messages that are split in two parts. Multi part sms messages can contain 153 characters (instead of 160, 7 characters are used to combine the sms in one) and indeed (see the example below) this problem happens after 153 characters. And more interesting is that it combines the first part of the new message with the last part of your old message:

Bristol Pound: You have made a payment of £B 17.45 to member The Fish Shop (Bristol) Ltd (fishshop). Transaction ID: BTL00000017143. Your new account bal >|< ance is £B 12.70
Bristol Pound: You have made a payment of £B 4.65 to member Harvest (part of Essential Trading Cooperative) (harvest). Transaction ID: BTL00000017150. Yo >|< ur new account balance is £B 2.61

Makes:
Bristol Pound: You have made a payment of £B 4.65 to member Harvest (part of Essential Trading Cooperative) (harvest). Transaction ID: BTL00000017150. Yoance is £B 12.70

Since the logs indicate that Cyclos sends everything correctly I should contact your Gateway provider. In the meanwhile you can solve it by making the SMS shorter. You can save space by removing "member", "Transaction" and "account". And also you can set limit the usernames by a lower amount of characters. Also you can test your sms provider by sending two long sms messages after each other. Good luck with it!

rmvanarkel
Posts: 240
Joined: Tue Oct 05, 2010 1:14 pm

Re: Receiving incorrect balances / partially jumbled SMS

Post by rmvanarkel » Tue Jul 16, 2013 9:55 am

It could even be an Android problem:
https://code.google.com/p/android/issue ... l?id=17769

Although thats more unlikely, but if you read the thread there is an app for it it might be interesting installing it on this phone.

Post Reply