Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with Hardware Serial and Hardware Serial2 (Read 4579 times)
anand
Newbies
*
Offline


Posts: 2
Joined: Jun 17th, 2016
Problem with Hardware Serial and Hardware Serial2
Jun 17th, 2016 at 1:56pm
Print Post  
I am trying to use a GPS module and a Wifi module together. The GPS module is connected to Serial2 port and Wifi module is connected to Serial port. 

I am seeing that the following string is being sent on the Serial port (Wifi Rx).

VMDPV_1 | 1_VMDPV

ERROR


I guess it is because something is sending the VMDPV_1 | 1_VMDPV string to the RX of Wifi and then the Wifi is echoing it on the TX and then also sending Error as it could not recognize the input.

Once the GPS is configured I can see the data that GPS sends on Serial2 also going to the Wifi RX. And the Wifi echoes it and prints ERROR.

I am not able to figure out why this is happening.
The Wifi works at 115200, while Serial2 works at 9600.

Thanks for any help in figuring out this problem in advance.

regards,
-anand
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with Hardware Serial and Hardware Serial2
Reply #1 - Jun 17th, 2016 at 1:59pm
Print Post  
Hi,

Please switch the tool bar from "Debug" to "Release" and then upload again.

The messages you see are part of the debug system and with your configuration it can't be used without changing some settings. So for now switch off debug so your stuff works.

Thanks
« Last Edit: Jun 17th, 2016 at 1:59pm by Tim@Visual Micro »  
Back to top
IP Logged
 
anand
Newbies
*
Offline


Posts: 2
Joined: Jun 17th, 2016
Re: Problem with Hardware Serial and Hardware Serial2
Reply #2 - Jun 18th, 2016 at 12:00pm
Print Post  
I have tried changing debug to release, but it didn't help. Also the major problem is that all the output of GPS is going into Wifi input. The debug output is only for a couple of times. But the GPS output goes in continuously.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with Hardware Serial and Hardware Serial2
Reply #3 - Jun 18th, 2016 at 12:08pm
Print Post  
Hi,

Sorry I wasn't clear.

Switching off debug will prevent this text from being sent from the Arduino on the Serial port.

VMDPV_1 | 1_VMDPV

Can you confirm that this text no longer appears in the output?

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint