<div dir="ltr"><div>Hello all,<br>I'm newbie in the serial buissness and I beed some Help. I'm a student at my last year and I got final assaignment.</div>
<div>My goal is to comunicate with SIM free, GSM Module through computer. I want to simulate SIM card by receiving and transferring data from my code.</div>
<div> </div>
<div>In order to understand how to comunicate with the GSM module I took an existing module which gut RS232 connector and connected it to the computer. I ran my python code:</div>
<div>class MySerial():</div>
<div> def __init__ (self,port,baundrate,....)</div>
<div> self.s = serial.Serial(port,baundreate,....)</div>
<div> </div>
<div> def read(self,size=1):</div>
<div> txt = self.s.read(size)</div>
<div> </div>
<div> def write(self,text=''):
<div> txt = self.s.write(text)</div>
<div> </div>
<div> def main():</div>
<div> obj = MySerial('COM1')</div>
<div> obj.write('ATI')</div>
<div> sleep(1)</div>
<div> obj.read(10)</div>
<div> </div>
<div>the code run and I send the comman 'ATI' which ask the GSM Module if everything is OK. <br>the read line returs 'ATI'. echo to my write function.</div>
<div> </div>
<div>Whenever I run this comman ('ATI') through hyperterminal I gut the result : 232 OK</div>
<div> </div>
<div>Does any one got an Idea why my code isn't getting the same answer from the GSM Module?</div>
<div>thanks</div>
<div>dave</div></div></div>