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.
Reading string back
-
jollybv
- Posts: 144
- http://meble-kuchenne.info.pl
- Joined: Mon Mar 08, 2021 11:25 am
- Location: Cape Town South Africa
- Has thanked: 41 times
- Been thanked: 12 times
-
medelec35
- Valued Contributor
- Posts: 2229
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 685 times
- Been thanked: 759 times
Re: Reading string back
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.
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.
Martin
-
mnfisher
- Valued Contributor
- Posts: 1788
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 151 times
- Been thanked: 846 times
Re: Reading string back
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
Martin
-
chipfryer27
- Valued Contributor
- Posts: 1814
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 404 times
- Been thanked: 624 times
Re: Reading string back
Hi
Regards
Further to the above, what module are you using, what command are you issuing and what is the expected reply?I'm having a small issue when reading the airtime back from the GSM network
Regards
-
jollybv
- Posts: 144
- Joined: Mon Mar 08, 2021 11:25 am
- Location: Cape Town South Africa
- Has thanked: 41 times
- Been thanked: 12 times
Re: Reading string back
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
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