2:04 pm
March 2, 2016
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
- My code
- How i'm sending all data at once
- File that i'm sending
Looking forward for the support on this.
Regards
Love Diwan
4:34 pm
March 12, 2015
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
2:12 am
March 2, 2016
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
16
1 Guest(s)