![]() |
|
|||||||
| Embedded Systems and Microcontrollers Discussion forum for projects and working with embedded systems and microcontrollers (FPGAs, PICs, AVRs). Get help with hardware issues and embedded programming. |
|
|
|
Thread Tools | Display Modes |
|
#41
|
||||
|
||||
|
Quote:
ok! so like I was saying earlier...at program startup, PC automatically detects the COM port available in the computer and allow the user to select the port to which the cable has been connected to, correct? But as for the baude rate, I must stick with one ONLY to avoid complexity, right? a little question, the fact thaT ONLY one cable will be connected the program will display only one portname, right? |
|
#42
|
||||
|
||||
|
I don't think so. Your program has to ask the OS what ports are connected and the OS will respond with any number of ports. Otherwise your program has to try to open a specific port but you have no way of knowing which COM port is the serial port.
The way I determine it is I look at the COM ports via the Device Manager. When you plug in the USB cable you will see a new COM port appear in the hardware list.
__________________
Most computer problems can be attributed to a simple problem - a loosewire behind the keyboard. |
| The Following User Says Thank You to MrChips For This Useful Post: | ||
Eric007 (05-03-2012) | ||
|
#43
|
||||
|
||||
|
we been talking about direct communication between 2 PCs via cable earlier...and this was for the simulation
Now assuming you want to do the actual communication between the PC and microcontroller and that you already connected the USB to RS232 serial adapter on the PC. So the null modem cable I am going to use to connect PC and microcontroller is as attached, right? and there will be an RS232 adapter (female) on microcontroller side, right? Thanks |
|
#44
|
||||
|
||||
|
And as for the 'USB to RS232 adapter' for both PCs I can use either of the one attached, right?
|
|
#45
|
||||
|
||||
|
For connecting the PC to the micro you only use the USB to RS-232 cable. You do not use the null modem. I assume you or someone is designing the microcontroller board. Hence you would connect the TXD and RXD pins from the MCU to a MAX232 (or similar) transceiver chip and you would wire the MAX232 RS-232 connections to match the RS-232 to USB cable.
(If you wanted you could configure the MCU to be Data Terminal Equipment (DTE), the same as a PC, in which case you would need a NULL MODEM cable. But what is the point?)
__________________
Most computer problems can be attributed to a simple problem - a loosewire behind the keyboard. |
|
#46
|
||||
|
||||
|
the connection for PC to PC will be as attached (between male and female), right?
Now what kind of connectors to use to do this kind of connection?? |
|
#47
|
||||
|
||||
|
Quote:
These connection will be done one at a time. My concern is: what type of connectors must I use? Wires I use when breadboarding or there are some special connectors? Remember connection will be done between a pin and a hole (RS232 pin with null modem cable hole or socket) like I showed in that image in above picture. Thanks! |
|
#48
|
||||
|
||||
|
Somebody address my posting #46 and #47 please...
Thanks! |
|
#49
|
||||
|
||||
|
Hello,
Have a look at this page from "the hardwarebook": http://www.hardwarebook.info/Nullmodem_%289-9%29 Bertus
__________________
You don't have to know everything, if you know where to find it. When you do ask questions, you may look stupid. When you do NOT ask questions, you will STAY stupid. It would be nice to have the Timezone ( GMT +/- x ) in the location field in the profile. (User CP -> Edit Your Details) |
|
#50
|
||||
|
||||
|
Also remember in a proper null-modem cable the crossing will be done inside the cable. For your project you will have to use 9 PIN D-SUB FEMALE connector to connect to the USB to serial connector. In the other end you can use the connector you think will be best. What is important is that the transmit signal/pin in one end. Is connected to the receive signal/pin in the other end. The signal leaving as outgoing in one end. Must necessarily become an input signal in the other end. Nothing good will come out of connecting to transmitters to each other.
|
| The Following User Says Thank You to t06afre For This Useful Post: | ||
Eric007 (05-05-2012) | ||
|
| Tags |
| acquisition, data, definition, packet |
Related Site Pages
|
||||
| Section | Title | |||
| Worksheet | Shift registers | |||
| Worksheet | Flip-flop circuits | |||
| Worksheet | Digital communication | |||
| Worksheet | Timer circuits | |||
| Worksheet | Latch circuits | |||
| Worksheet | Multiplexers and demultiplexers | |||
| Worksheet | Signal modulation | |||
| Worksheet | Characteristic Impedance | |||
| Video Lecture | Wire and Cable - Basic Components and Technical Notation | |||
| Textbook | Network protocols : Digital Communication | |||
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how can i send the digital digits and voice between transmitter and receiver | neha sharma | Radio and Communications | 14 | 10-04-2011 05:11 AM |
| my first project please need your help | abdelrahman | Homework Help | 3 | 07-05-2011 10:30 PM |
| AT89C51ac3 serial data packet problem | swinch | Embedded Systems and Microcontrollers | 2 | 01-26-2010 12:29 AM |
| Thread Tools | |
| Display Modes | |
|
|