I’m trying to connect my Fez Panda II with my Sm5100b gsm unit. But i just cant get the connection going cause i keep getting SerialError.Frame errors. Here are some snippets of what i’m doing. And the error keeps occurring on the line following the write command.
Ok, i’m sorry that i have to ask so many questions but i’m really just a software developer. The electronics are new to me. How should i connect the external power source. How many volts and to which pins? Could i just connect the fez board via usb and then also plug a 9V battery on the power socket?
Ok I connected a 9V 1000mA adapter and it seems that i’m getting DataReceived events and a lot of Frame errors. When i read the data from the serial port as follows, the buffer is filled with 0’s and NewText is “”?
void serialPort_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
byte[] inBuffer = new byte[serialPort.BytesToRead];
serialPort.Read(inBuffer, 0, inBuffer.Length);
String NewText = new String(System.Text.Encoding.UTF8.GetChars(inBuffer));
......
Looks like a wrong connection or baudrate issue. Maybe the unit uses autobauding and you first need to send some predefined data so it can sense it. 9600 seems slow for a gsm unit. I would have guessed 115200.
Anyway, can you point us to a datasheet that is not in chinese and tell us exactly how you connected each pin? (And/Or close-up picture of your setup)
Thank you for your reply. Yes i could give you the details. I’m using the SM5100B GSM Shield from Sparkfun [url]http://www.sparkfun.com/products/9607[/url] . That page contains all the details (AT commands etc) on the device. I just plugged it onto the Fez as they are pin compatible. For the GSM Driver i used this code [url]http://code.tinyclr.com/project/278/gsm-driver/[/url] , just changed the AT commands a bit for the SM5100B. I could also just say that i have used this same SM5100B on my Arduino Mega and it was working fine on the 9600 baud rate. Except on the Arduino i did not have to specify the parity, stop bits, data bits or handshaking. But i found that the default is 8-N-1 and no handshake. So that should not be a problem.
Yes, it works as it is on the default setting. I have tested this same gsm unit on my Arduino. And it is working as it is. Just cant get it going on the Fez.
I am not sure then. I personally have tried one before and it worked so I know the shield works on FEZ. That was too long ago and I no longer have the code
I have the same problem,
I bought the sim300C and with the computer I can communicate but when I want to connect on my Fez domino I can’t recived any message.