Loading...
Pages: 1 [2]   Go Down
Author Topic: how to use 2 usb serial port at the same time on computer  (Read 1321 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 311
Posts: 35470
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: 19
Posts: 3118
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
Edison Member
*
Karma: 27
Posts: 1486
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: 19
Posts: 3118
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What help do you need?
Logged

Pages: 1 [2]   Go Up
Print
 
Jump to: