JFF-Bohdan / sim-module

Python 3 classes for SIM 900 GSM module
MIT License
54 stars 26 forks source link

ERROR: error initializing session: #7

Open paapattaja opened 7 years ago

paapattaja commented 7 years ago

Hi

Every class i try to use it keeps kicking out this "ERROR: error initializing session:"

Using Raspberry pi 3 and very confused. Can you help me out?

JFF-Bohdan commented 7 years ago

Hi

I need to know which SIM module you using, what COM/UART port name you using and many more information: your python version, UART speed and many more. Would you be so kind to give me this information?

paapattaja commented 7 years ago

i would be happy to. i am using the elecfreaks GPRS/GSM Module-EFCom Pro EFComPro @ http://www.elecfreaks.com/estore/gprs-gsm-module-efcom-pro-efcompro.html#!prettyPhoto

i am using the rx/tx ports raspberry configured under AMA0

unfortunately i have no idea where the get the rest of the information for you... could you help getting the rest of the information to you?

JFF-Bohdan commented 7 years ago

Have you checked UART speed? It's very difficult to find answer for your problem. I really can do it if you will send me sample. Is it acceptable for you?

paapattaja commented 7 years ago

where do i pick the speed for you? and what sample are you asking about?

yes i am a little green about all this stuff

JFF-Bohdan commented 7 years ago

It's OK don't know something, absolutely. Everything is fine.

SIM900 have UART speed configuration. And you need to know it before communicating with SIM900. This information can be found using AT-commands. You can get a lot of information about SIM900/SIM800 using AT commands and terminal software for Windows/Linux OSes.

I asked you about "GPRS/GSM Module-EFCom Pro EFComPro" device sample. If you can provide it to me I can find complete solution for you and (if it will be necessary) update library.

Thank you.

paapattaja commented 7 years ago

oh so i need to find the manufacturers speed setting to use?

should that be the BAUD rate used in the shared folder?

unfortunately i do not have the finances to buy and ship you a module so getting a sample for you is unfortunately impossible for me.

JFF-Bohdan commented 7 years ago

Not a problem. Let's try to find a solution for you. It's will be better if you will try to communicate with your SIM900 module in terminal software by sending AT-commands manually. So, you will find correct baud rate, parity and other configuration. It's very simple. Actually, this library also uses same AT-commands to communicate with device.

So, you just need your module and terminal software to start work with your device. After that, you will understand basic principles and will be able to use this library freely.

JFF-Bohdan commented 7 years ago

I'm planning to do complete tutorial with this library and SIM900/SIM800 modules. It will be available in 3-4 months when I will have some free time. I will notify you in this thread.

JFF-Bohdan commented 7 years ago

Hope I helped you.

Also, you can find my little posts here: http://bohdan-danishevsky.blogspot.com/

Maybe some of them will be useful to you.

paapattaja commented 7 years ago

i will take a look. thanks

andreibosco commented 7 years ago

I was having the same issue. My sim900 baudrate was set to 19200 (check it by using the command AT+IRP?), so I changed it to auto-bauding: AT+IPR=0.