Go Down

Topic: how to use 2 usb serial port at the same time on computer (Read 4 times) previous topic - next topic

PaulS

Quote
i need some guide on the library

What library?

Quote
and the C# code

What C# code?

tlslaj0417


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?

dxw00d

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

tlslaj0417


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^^ :)

michael_x

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.



tlslaj0417


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..

gnanendrakumar

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

dxw00d


kaor

#23
Oct 27, 2013, 07:38 pm Last Edit: Oct 27, 2013, 07:53 pm by kaor Reason: 1
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.
?????? ?????? ?????, ??? ??? - ??????????!

Go Up