Reading string back

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jollybv
Posts: 143
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

Reading string back

Post 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 66 times

medelec35
Matrix Staff
Posts: 2190
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 664 times
Been thanked: 743 times

Re: Reading string back

Post 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.
Martin

mnfisher
Valued Contributor
Posts: 1703
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 146 times
Been thanked: 794 times

Re: Reading string back

Post 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

mnfisher
Valued Contributor
Posts: 1703
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 146 times
Been thanked: 794 times

Re: Reading string back

Post by mnfisher »

Martin beat me to it...

chipfryer27
Valued Contributor
Posts: 1767
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 391 times
Been thanked: 600 times

Re: Reading string back

Post 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

jollybv
Posts: 143
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

Post 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

Post Reply