Page 1 of 1

Reading string back

Posted: Tue Nov 11, 2025 7:18 am
by jollybv
Hi Guys

I'm having a small issue when reading the airtime back from the GSM network i get the following
Collect Number ÿÿÿÿÿÿÿÿ2ÿÿÿÿÿÿÿÿÿ4ÿÿÿÿÿÿ. what i would like to know is what character is this so i can try bypass it every time so it reads everything from the circular buffer other than the strange y which i think is character 152 on the ASCII table.
Airtime.jpg
Airtime.jpg (22.15 KiB) Viewed 65 times

Re: Reading string back

Posted: Tue Nov 11, 2025 7:52 am
by medelec35
Hello.
Insead of bypassing just a single number, you could bypass values < 32 or >126
It might be worth looking into why you get unexpected chars.
Another thing you could do it asign to an int and find out what value the odd char is.

Re: Reading string back

Posted: Tue Nov 11, 2025 7:56 am
by mnfisher
Please post your chart (or a sample) to demonstrate the issue - I would guess an issue with the read logic, maybe reading unset bytes from the buffer?

Martin

Re: Reading string back

Posted: Tue Nov 11, 2025 7:57 am
by mnfisher
Martin beat me to it...

Re: Reading string back

Posted: Tue Nov 11, 2025 8:22 am
by chipfryer27
Hi
I'm having a small issue when reading the airtime back from the GSM network
Further to the above, what module are you using, what command are you issuing and what is the expected reply?

Regards

Re: Reading string back

Posted: Tue Nov 11, 2025 8:52 am
by jollybv
Hi Guys
thanks I seem to have solved the problem the character was 255 which i bypassed and now all seems to be working it muse be something to do with the network because if i change the sim to another network it works fine only the one network give me this problem.

Just for interest sake i tried to bypass the extended ascii table <127 || > 256 but it did not work