sisickij
Newbie level 2
- Joined
- Feb 26, 2013
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,300
Greetings,
I am trying to establish a connection between a microcontroller (STM32F4DISCOVERY board) and a radio modem, controlled via AT commands. Interface between the MCU and the modem is established via RS232 (I use circuit with MAX232 IC for this).
When I connect the PC to the modem (via PC COM port), everything works, i.e. I receive answers to my commands.
When I connect the MCU to the PC, it also works, I can read values, transmitted from the MCU, via terminal software and MCU can process values sent from the PC.
But when I connect the MCU to the modem, there is no connection. The modem does not answer to any commands (though it should return error if it does not understand), there are no signals on the RX line.
I use the same cable, so it should be fine. Unfortunately I do not have hardware documentation of the modem, but I've tried to connect to the modem from the PC using 3-wire only cable (TX, RX, GND), and it worked.
I am attaching photos of the oscilloscope screen, maybe it will help. I have measured signal on TX line, one square represents 5V.
**broken link removed**
1. MCU is connected to the PC, and the MCU repeatedly sends certain message. The terminal software on the PC correctly receives sent message
**broken link removed**
2. MCU is connected to the PC but I have also connected the ground and TX lines to the modem. Messages, sent from the MCU are no longer received by the PC.
Perhaps anyone has any suggestions?
I am trying to establish a connection between a microcontroller (STM32F4DISCOVERY board) and a radio modem, controlled via AT commands. Interface between the MCU and the modem is established via RS232 (I use circuit with MAX232 IC for this).
When I connect the PC to the modem (via PC COM port), everything works, i.e. I receive answers to my commands.
When I connect the MCU to the PC, it also works, I can read values, transmitted from the MCU, via terminal software and MCU can process values sent from the PC.
But when I connect the MCU to the modem, there is no connection. The modem does not answer to any commands (though it should return error if it does not understand), there are no signals on the RX line.
I use the same cable, so it should be fine. Unfortunately I do not have hardware documentation of the modem, but I've tried to connect to the modem from the PC using 3-wire only cable (TX, RX, GND), and it worked.
I am attaching photos of the oscilloscope screen, maybe it will help. I have measured signal on TX line, one square represents 5V.
**broken link removed**
1. MCU is connected to the PC, and the MCU repeatedly sends certain message. The terminal software on the PC correctly receives sent message
**broken link removed**
2. MCU is connected to the PC but I have also connected the ground and TX lines to the modem. Messages, sent from the MCU are no longer received by the PC.
Perhaps anyone has any suggestions?