Modem Auto Answer-Hanging for 1 min...


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hello,

    My theory was wrong.

    Bruce in the post #13 there is no modem connected.

    The post #13 as I understand it:

    The PIC sends "ATE0" to the RX pin of the PC. (The terminal program of the PC shows ATE0).

    The PIC sends "ATV0" to the RX pin of the PC. (The terminal program of the PC shows ATV0).
    Ioannis types "0" in the terminal program of the PC and the PIC gets this byte
    otherwise no further AT commands are sent by the PIC.

    The PIC sends "ats0=2" to the RX pin of the PC. (The terminal program of the PC shows ats0=2).

    The PIC sends "ATX3" to the RX pin of the PC. (The terminal program of the PC shows ATX3).

    The PIC sends "AT&K0" to the RX pin of the PC, but the PC terminal program shows only
    AT and after a minute in addition to AT the PC receives also <00>. So after a minute
    on the PC screen you will see AT<00> and the execution of the program continues normally
    in the PIC. (So the PIC does not successfully send AT&K0 to the PC).

    Ioannis please confirm that.

    Luciano
    Last edited by Luciano; - 18th August 2005 at 00:15.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,171


    Did you find this post helpful? Yes | No

    Default

    Luciano yes. You are right. This is exactly the case. Bruce, sorry, in #13 I did not clearly stated that the device was disconnected.

    Please also note that, if all the 3 Hserin commands are joined as one then there is NO problem in the transmitted string! (I do not know if there is other problem in some other subroutine though...)

    So, as I can conclude up to this moment, there must be some difficulty from PBP to work with many and some long sub routines.

    Also, if the subrounines are transfered from the top to the bottom then this problem disappears! (Others from other sub's are appearing then...)

    Black Magic or what?

    Ioannis

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,171


    Did you find this post helpful? Yes | No

    Default Update on the case...

    If I Copy the part of the program with the studied problem to a new fresh program, with no other commands, subroutines or whatsoever, then it runs normally!!

    Ioannis

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Hi Ioannis,

    If you're using the MPASM assembler, can you post the .COD file? If using the PM assembler, then post the .HEX file. I can run it through MPLAB, and see if I can find where it's hanging. I'm curious.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,171


    Did you find this post helpful? Yes | No

    Default

    Sure Bruce. I run it through PM. So .hex it is.

    Ioannis
    Attached Files Attached Files

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Check all your routines, and make sure you don't use a GOTO to reach any sub-routines that end with RETURN.

    "EDIT"

    After looking at PBP's DONE routine, I doubt that's it either. I don't see anywhere in code where a string being sent is spread across any page boundaries either so my 1st guess wasn't any good.

    If shifting the routines around makes it work for the send part, are you sure everything else is working right after the shift?

    It could be stack overflow if you have a ton of nested gosubs or calls?
    Last edited by Bruce; - 19th August 2005 at 18:24.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,171


    Did you find this post helpful? Yes | No

    Default

    Thanks Bruce for the look.

    Well, I double checked for the points you made as it would be possible. I could not find anything suspicious.

    Shifting the sub's around corrects one problem but creates another in another subroutine!

    I suppose I cannot have all the sub's together!!!

    Ioannis

Similar Threads

  1. No Modem response
    By jimboho in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 11th November 2004, 06:58

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts