Pages: 1 [2]   Go Down
Author Topic: how to use 2 usb serial port at the same time on computer  (Read 3463 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i need some guide on the library
What library?

Quote
and the C# code
What C# code?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i need some guide on the library
What library?

Quote
and the C# code
What C# code?

mean if i use others IDE, then how i write the code for communicating between 2 com port?
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It depends on what you use. Look at it's documentation for reading and writing serial data.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It depends on what you use. Look at it's documentation for reading and writing serial data.

ok thanks..i will look on that. if anything, i will post here and ask again. Thanks all of you for kindness replied. Thanks so much^^ smiley
Logged

Germany
Offline Offline
Faraday Member
**
Karma: 56
Posts: 2983
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I fear you're on a far too complicated path!

your link about the Evaluation Board - ADXL345 says
" The UART pins are also broken out allowing a direct TTL interface with the processor. "

You just need two digital pins and GND from the Arduino and connect that directly to the ADXL uart. (Rx to Tx , Tx to Rx, GND to GND)
Then look for the Arduino SoftwareSerial Library, and hopefully you see it's all done, already.

The next task is you probably need to see on the PC what's going on,
so you might like to copy the communication (both sides) to the standard serial.println to log it in the PC Arduino Serial Monitor.
 

 
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 49
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I fear you're on a far too complicated path!

your link about the Evaluation Board - ADXL345 says
" The UART pins are also broken out allowing a direct TTL interface with the processor. "

You just need two digital pins and GND from the Arduino and connect that directly to the ADXL uart. (Rx to Tx , Tx to Rx, GND to GND)
Then look for the Arduino SoftwareSerial Library, and hopefully you see it's all done, already.

The next task is you probably need to see on the PC what's going on,
so you might like to copy the communication (both sides) to the standard serial.println to log it in the PC Arduino Serial Monitor.
 

 

thanks for your advise. now honestly i have no exact idea on it. I try connect it with TX (from eval adxl board)to RX on arduino...i did print it on serial monitor but it seem llike displayed current value instead of the data i want....i am stuck on it now..
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

can any one help me for using 4 uart ports of atmega 2560  at a time
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What help do you need?
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 141
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you are interesting in communication to two or more boards from the same pc, just should run different IDE-s of Arduino, not from file->... menu but from another arduino.exe, only in this case arduino allows to have different ports on different projects.


* two_ports.png (42.86 KB, 888x567 - viewed 28 times.)
« Last Edit: October 27, 2013, 01:53:43 pm by kaor » Logged

რასაცა გასცემ შენია, რაც არა - დაკარგულია!

Pages: 1 [2]   Go Up
Jump to: