Communicating With GSM Modem | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Communicating With GSM Modem
March 2, 2016
2:04 pm
Avatar
lovediwan
Member
Members
Forum Posts: 14
Member Since:
March 2, 2016
sp_UserOfflineSmall Offline

I'm using Arduino Mega ADK, & while reading data from Serial Port connected i felt the problem.

But when i run the code & get the details on Other port on my Arduino Mega ADK, I found it stops sending data. After much troubleshooting i found that the "Serial Check for Bytes.vi" hangs after couple of iterations. No idea yet but looking for support. 

I just try to send data from one serial port to other all at once by using send to file. 

Please see the attached the following 

  1. My code
  2. How i'm sending all data at once
  3. File that i'm sending

Looking forward for the support on this. 

Regards

Love Diwan

sp_PlupAttachments Attachments
March 2, 2016
4:34 pm
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Is it possible that your Arduino is running out of memory? Have you used the debug techniques shown on the Debugging - Memory Crash.vi shipping example to see how the Arduino memory is behaving as the code progresses? Your problem may be related to that, as you have a string shift register that may be growing the string to a point that it pushes the string to be out of memory bounds. Another thing to try is to reduce the size of the stuff you are sending through the serial port to check if it makes it through. If it does, it is probably another clue that your may be running out of memory.

Filipe

Cheers
Filipe

March 3, 2016
2:12 am
Avatar
lovediwan
Member
Members
Forum Posts: 14
Member Since:
March 2, 2016
sp_UserOfflineSmall Offline

Hello Filipe,

I tried to send in smaller packets but  it stops after certain data readings. 

But yes u may be right I may ran out of memory I will try to reserve the memory in the beginning and update it as and when required. 

I cannot reduce the size because this the test code final code will communicate with a GSM modem and we will be using code for receiving the message. Please share the example code if you have. 

Regards

Love Diwan

March 8, 2016
6:08 am
Avatar
lovediwan
Member
Members
Forum Posts: 14
Member Since:
March 2, 2016
sp_UserOfflineSmall Offline

My complete code just worked fine. Arduino was running out of memory so little effort in memory management helps alot. 

A BIG THANKS TO FILIPE. 🙂

 

Regards

Love Diwan

March 8, 2016
3:21 pm
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

I'm glad you were able to figure it out!

Cheers
Filipe

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
3
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356