Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'GsmModem' object has no attribute 'rxThread' #95

Open
drejc12 opened this issue Apr 7, 2021 · 3 comments
Open

Error: 'GsmModem' object has no attribute 'rxThread' #95

drejc12 opened this issue Apr 7, 2021 · 3 comments

Comments

@drejc12
Copy link

drejc12 commented Apr 7, 2021

Hi,
when trying out incoming_call_demo.py example with the demo python code on Raspberry Pi I get the error when calling this modem.rxThread.join(2**31) and in modem.close():

AttributeError: 'GsmModem' object has no attribute 'rxThread'

I believe it's not package gsmmodem problem, but what it is, I have no clue - I am just a begginer in python/RPi..

I am making a project which will set one pin on the RPi when certain number call the GSM modem which is plugged in RPi.
Does anyone can help me with an already made code or example for my problem?

Looking forward for your reply and resolving my project issues.

@drejc12
Copy link
Author

drejc12 commented Apr 7, 2021

I am done with the error I posted. Sorry..

Now I run the same code incoming_call_demo.py without error, however, the code runs utill the end. Is there a problem with my GSM modem?

My modem is Huawei E173 - I am not sure if this one really supports calls?

Is there any other wrong step/thing I am making?

@lcnittl
Copy link
Collaborator

lcnittl commented Apr 7, 2021

Try to remove the 2**31 (in the join()) and run the script again.

@drejc12
Copy link
Author

drejc12 commented Apr 7, 2021

Thanks, @lcnittl, your suggestion did work, appreciate that!

Now my script is executing and waiting for an incoming call.

image

Now I don't know what to do. I have called the modem number several times, but the ring seems to have a different ringing tone than other "normal" numbers.

Trying to figure out what on my side is wrong now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants