I am trying to use a PIC microcontroller to communicate to the Q24. My intent is to send string of commands just like you would in hyperterminal. I am using UART to send the data strings. What I am doing is putting the command in an array of characters such as this:
—send a quote
—send a quote
and I am using the UART function to transmit each character of the array. I can view this using hyperterminal and it shows up just like it would as if I was using the keyboard to enter these commands. However, the Q24 does not respond the same way. How can I achieve this? Is there a sample code which shows a simple way to transmit SMS messages? If so, where can I see this sample with an explanation? I am using C to program this.
The Q24 does not reply with an “OK” like it does when I use the keyboard. I have the Baud Rate set to 115200 on my microcontroller and is also the same for the Q24. In terms of flow control the PIC is set to “Simplex mode”. The rest of the settings are 8-n-1. We are using the WiSMO2 Development Board so all of the signals should be ok. What we have is the PIC sending TX and RX to max 3232 chip which from there sends it to the DB9 port of the dev board and from there to the MAX chip in that Board and to the wireless module.
The PIC has only two modes of UART…which are “Simplex Mode” and “no Flow Control”. Since this needs hardware control I can only assume it needs the former setting to get strings transmitted to the Q24. Additionally, I have everything set with the proper settings to communicate with it as mentioned on the documentation for the Q24. What I have is the TX line from the microcontroller going to the RX line of the Q24 and the RX line of the microcontroller to the TX pin of the Q24. I’ve turned off the MAX chip as said on the documentation by moving the jumper. Unfortunately, through this method I do not get anything working.
As said before, I tried going from the PIC microcontroller to the MAX3232 chip to the DB9 of the WiSMO2 board which goes to the MAX3238 and then to the Q24, and no response.