Ryochan7 wrote:That is weird. Maybe I should check that version out. It sounds like the library no longer conforms to the behavior described in the current documentation.
I gave this script to my friend, he has external modem on rockwell chip (RP56D/SP) and it gives error on AT+FCLASS=8 Modem returned an error. So we changed this string in the script to AT#CLS=8 so it goes to next setup commands but wont work, i think other commands should be changed for that chip? like 129,8000 to something or the letters AT+ at all. Any ideas?
I think it should be like this for his modem:
Code: Select all
# Send the initialization string to the modem
resetModem(modem)
send_command(modem, "AT#CLS=8") # Switch to Voice mode
send_command(modem, "AT#VLS=1") # Go off-hook
#if "--enable-dial-tone" in sys.argv:
if dial_tone_enabled:
logging.info("Dial tone enabled, starting transmission...\n")
send_command(modem, "AT#VSR=7200")
send_command(modem, "AT#VBS=4")
send_command(modem, "AT#VTX") # Transmit audio (for dial tone)
# Generate tone via modem. Only lasts 4 seconds.
#send_command(modem, "AT+VTS=[440,350,400]")
logging.info("Setup complete, listening...")