I made the following circuits. The first one is an application run on the microcontroller and it allows me to see data on a PC terminal via a serial port. Yes, I'm using a software uart. There's the circuit:
The HM-TRP connection point means a connection to the HM-TRP radio module. Now the next circut...
This next circuit is supposed to function as a simple PC to microcontroller serial port data provider.
Because I don't want to mess up the radio modules, what I did to try to simulate a module is connect pin 4 of circuit 2's SV1's pins to pin 2 of circuit 1's HM-trp's connection pins and I also connected Pin 2 of circuit 2's SV1's pins to pin 4 of circuit 1's HM-trp's connection pins. That way I can hook up circuit 2 to the PC and use that PC as if it was the radio module.
Even though neither circuit blows up, I'm not getting correct data, yet I set every single baud rate n the circuits to 57600bps. (57600 in the micro software UART, 57600 in the micro hardware UART and 57600 in both PC's attached to the circuit.), and both machines are running slackware linux, except one machine is using one release earlier, but I don't think that matters does it?
On the PC connected to circuit 2, its reporting that it receives a bunch of FFh, and the micro is telling me its receiving a bunch of 00h.
What's strange is that I tested circuit 2 by itself with the PC by hooking up the transmit and receive pins (pin 4 and pin 2) together, as if I was making an overkilled serial loopback interface, and it did function as such with absolutely no error.
I also tested the transmitting functionality of the first circuit and it seems to work OK (I only had an LED to test with).
The only thing that might be the case is that I converted 5V to 3V at the HM-TRP connection point so I don't blow up the actual radio module when I'm ready to use it (Its max voltage is 3.9 I think).
Is there something I can add and/or remove to these circuits to make both computers be able to communicate with each other through these circuits?
Below is an image of the jumper connectors I'm using to connect the two circuits together (I rip one connector off from the whole group of connectors), and both circuits have good power.
I have also measured pins 2 and 6 of the max232 and they come out as +9 and -9V so I could be guessing it might be a matter of moving certain resistors and/or adding more?
The HM-TRP connection point means a connection to the HM-TRP radio module. Now the next circut...
This next circuit is supposed to function as a simple PC to microcontroller serial port data provider.
Because I don't want to mess up the radio modules, what I did to try to simulate a module is connect pin 4 of circuit 2's SV1's pins to pin 2 of circuit 1's HM-trp's connection pins and I also connected Pin 2 of circuit 2's SV1's pins to pin 4 of circuit 1's HM-trp's connection pins. That way I can hook up circuit 2 to the PC and use that PC as if it was the radio module.
Even though neither circuit blows up, I'm not getting correct data, yet I set every single baud rate n the circuits to 57600bps. (57600 in the micro software UART, 57600 in the micro hardware UART and 57600 in both PC's attached to the circuit.), and both machines are running slackware linux, except one machine is using one release earlier, but I don't think that matters does it?
On the PC connected to circuit 2, its reporting that it receives a bunch of FFh, and the micro is telling me its receiving a bunch of 00h.
What's strange is that I tested circuit 2 by itself with the PC by hooking up the transmit and receive pins (pin 4 and pin 2) together, as if I was making an overkilled serial loopback interface, and it did function as such with absolutely no error.
I also tested the transmitting functionality of the first circuit and it seems to work OK (I only had an LED to test with).
The only thing that might be the case is that I converted 5V to 3V at the HM-TRP connection point so I don't blow up the actual radio module when I'm ready to use it (Its max voltage is 3.9 I think).
Is there something I can add and/or remove to these circuits to make both computers be able to communicate with each other through these circuits?
Below is an image of the jumper connectors I'm using to connect the two circuits together (I rip one connector off from the whole group of connectors), and both circuits have good power.
I have also measured pins 2 and 6 of the max232 and they come out as +9 and -9V so I could be guessing it might be a matter of moving certain resistors and/or adding more?