Bug or something else


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Bug or something else

    It reminds me something, not sure what but, can you try to replace the square bracket with parenthesis within the SERIN2 lines?

    something like
    Code:
    serin2 PC_RX,Baud_Rate,500,PC_Data,[....       apn_name(0),apn_name(1)......]
    EDIT: For testing purpose I would get rid of the Timeout...

    Damn I'm rusty
    Last edited by mister_e; - 7th February 2011 at 02:18.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Bug or something else

    I did, no matter where I put Apn_name(0),same result...
    I have defined some variables, only for testing, and everything is ok, but apn_name(0)
    EDIT:
    I really have no idea what's going on ...
    I tried this
    Code:
     serin2....[....i,apn_name(1)....]
    apn_name(0)=i
    And its working, but...
    speechless
    Last edited by pedja089; - 7th February 2011 at 02:48.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Bug or something else

    What's sending the data to your PIC? Can you sniff it with a Terminal software?

    What if you define your array at the top, then add the remaining vars bellow?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Bug or something else

    VB6.
    Of course, I first check whether VB6 send well.
    I shorted pin's 2 and 3 on the serial port, and put a piece of code that displays data from Rx in textbox.
    I have not changed anything in the vb6 code when I moved app_name[0].
    I just changed the position of the serin2.
    Now i will mowe to top of code...

  5. #5
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Bug or something else

    It does not matter where is the definition of variable, it is always the same.
    Now I changed the length of the array, and when I change the length of the array, the problem is moved from one array to another...
    So, this to me looks much like a bug...
    EDIT:
    Now I see that I wrote that I use 18LF2550.
    I wrote wrong, it's late so ...
    I moved from PIC18LF13K50 to 18LF14K50.
    18LF13K50 has 8K of memory, and that was a little to put an ftp and email client on it.
    So I switched to PIC18LF14K50 with a 16K memory, and I just copied and compiled code for it...
    Last edited by pedja089; - 7th February 2011 at 03:17.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Bug or something else

    Problem solved then?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Bug or something else

    It isn't...
    If I put apn_name var byte[25], that problem moves to apn_user[0]....

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