Page 1 of 7 123 ... LastLast
Results 1 to 10 of 69

Thread: Nokia SMS Plugin Bugs...

  1. #1
    Join Date
    Nov 2005
    Location
    Redditch, UK
    Posts
    957

    Default Nokia SMS Plugin Bugs...

    As danward79 is still here I now have the lua errors thrown up when attempting to send...

    Transport: ...Files\Promixis\Girder5\/plugins/serial/Nokia3310.lua:120: bad argument #2 to `format' (number expected, got no value)
    stack traceback:
    [C]: in function `format'
    ...Files\Promixis\Girder5\/plugins/serial/Nokia3310.lua:120: in function <...Files\Promixis\Girder5\/plugins/serial/Nokia3310.lua:93>
    Line 120 in Nokia3310.lua is...

    if string.format('%.2X', string.byte(data, -3, -3)) == "00" then --If pad byte exists
    ... which is incorrect syntax according to the help file.

    [code] = string.byte([string], [index])
    ... but in mediabridge.lua there are also entries that don't match the help file syntax.
    local namelen = string.byte(data,1,1)+256*string.byte(data,2,2)
    Edit: Forgot lua is an external language... went elsewhere and found the syntax is correct yet during the loop "data" can appear empty. I added a line before 120...

    gir.LogMessage(PluginName, data, 3)

    ... and here is what I got.

    Time Date Source Details Payloads
    00:40:00:135 9/8/2007 Nokia Network Status Msg Received - Home Network, Automatic Selection,
    00:40:00:115 9/8/2007 Nokia
    00:39:59:074 9/8/2007 Nokia
    00:39:58:573 9/8/2007 Nokia
    00:39:58:283 9/8/2007 Nokia
    00:39:57:812 9/8/2007 Nokia
    00:39:57:572 9/8/2007 Nokia
    00:39:57:341 9/8/2007 Nokia
    00:39:57:171 9/8/2007 Nokia SMS Sent
    00:39:57:151 9/8/2007 Clicked (Targetted) Cannot find windownew2.gml:\New\Clicked (Targetted)
    00:39:57:121 9/8/2007 Nokia SMS:Sent
    00:39:57:101 9/8/2007 Nokia
    00:39:56:871 9/8/2007 Nokia
    00:39:56:700 9/8/2007 Nokia SMS Sent
    00:39:56:680 9/8/2007 Clicked (Targetted) Cannot find windownew2.gml:\New\Clicked (Targetted)
    00:39:56:650 9/8/2007 Nokia SMS:Sent
    00:39:56:630 9/8/2007 Nokia
    00:39:56:400 9/8/2007 Nokia
    00:39:56:160 9/8/2007 Nokia
    00:39:55:929 9/8/2007 Nokia
    00:39:55:689 9/8/2007 Nokia
    00:39:55:459 9/8/2007 Nokia
    00:39:55:218 9/8/2007 Nokia
    00:39:54:988 9/8/2007 Nokia
    00:39:54:748 9/8/2007 Nokia
    00:39:54:507 9/8/2007 Nokia
    00:39:54:277 9/8/2007 Nokia
    00:39:54:047 9/8/2007 Nokia
    00:39:53:806 9/8/2007 Nokia
    00:39:53:646 9/8/2007 Nokia
    00:39:53:556 9/8/2007 TaskSwitch girder.exe
    00:39:53:195 9/8/2007 Nokia
    00:39:52:715 9/8/2007 Nokia
    00:39:52:464 9/8/2007 Send SMS Message treescript oknew2.gml:\New\Send SMS Message
    Note I added a "SMS:Sent" event so that it could trigger my vb program (which wasn't running so Girder complained here heh).

    When girder hits that error though doesn't it stop running the script?
    Last edited by NeoMorph; September 7th, 2007 at 06:48 PM.
    - John H
    * PROMIXIAN TO THE CORE! * (NetRemote2WholeHomePro + Girder5WholeHomePro + USB-UIRT + Touchscreens + WirelessControlSystems + ANNA) == AutomationHeaven
    - "IthinkI'mgoingtobantheuseofthespacebarinfuture..."

  2. #2
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    566

    Default

    John,

    Interesting, what are you sending? (The actual message).

    I can't get the errors your getting, so I'm wondering if it's a setting or the actual message beign sent that's causing the error.

    I assume you're sendig from your VB script? What hapens if you create a simple Send SMS MEssage action and trigger this with an F5, do you still get the error?

    Richard

  3. #3
    Join Date
    Nov 2005
    Location
    Redditch, UK
    Posts
    957

    Default

    Richard the answer to that is DEFINATELY!

    If you had read the previous thread completely you would have seen that it took a wheelbarrow on the bonce to figure that out.

    OK...

    "G:1234,WhateverPayloadNoExtraCommas" - works
    "G:1234,Payload1,Payload2" - causes your error

    Hope that helps... it's not the end of the errors but it's definately the one that seems to cause breakages.

    What message was you trying to send?
    - John H
    * PROMIXIAN TO THE CORE! * (NetRemote2WholeHomePro + Girder5WholeHomePro + USB-UIRT + Touchscreens + WirelessControlSystems + ANNA) == AutomationHeaven
    - "IthinkI'mgoingtobantheuseofthespacebarinfuture..."

  4. #4
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    566

    Default

    OK from your other post;

    I have reset Girder (G5) and set the nokia logging to log everything (nokia plugin action).

    When I do my first send this is what is in the lua console
    Code:
    Serial:  Nokia :  Simple Send:   55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55      UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
    Serial:  Nokia :  Simple Send:   1E 00 0C 02 00 3D 00 01 00 01 02 01 07 91 16 14 78 60 07 F0 00 00 00 00 11 00 00 00 13 0B 91 16 14 28 29 69 F8 00 00 00 00 A7 00 00 00 00 00 00 D3 E6 14 04 95 BF C7 E5 F9 BC 4C 66 81 E8 E5 39 1D 01 46 00 37 62      .....=.........x`.............()i............Lf9..F.7b
    Serial:  Nokia :  Simple Send:   1E 00 0C 7F 00 02 02 06 10 7B      .........{
    Serial:  Nokia :  Simple Send:   1E 00 0C 7F 00 02 0A 07 18 7A      .........z
    And this is what is in the log;
    Code:
    Time Date Source Details Payloads
    12:46:29:656 9/8/2007 Nokia Network Status Msg Received - Home Network, Automatic Selection, 
    12:46:26:390 9/8/2007 Nokia SMS Sent
    12:46:22:187 9/8/2007 Send SMS Message treescript okRP_Automation.gml:\Testing Only\Send SMS Message
    12:46:15:875 9/8/2007 Set Log Level - NOKIA treescript okRP_Automation.gml:\Testing Only\Set Log Level - NOKIA
    I then clear the console/log and do the 2nd send...an this is what I get in the console;
    Code:
    Serial:  Nokia :  Simple Send:   55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55      UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
    Serial:  Nokia :  Simple Send:   1E 00 0C 02 00 3D 00 01 00 01 02 01 07 91 16 14 78 60 07 F0 00 00 00 00 11 00 00 00 13 0B 91 16 14 28 29 69 F8 00 00 00 00 A7 00 00 00 00 00 00 D3 E6 14 04 95 BF C7 E5 F9 BC 4C 66 81 E8 E5 39 1D 01 46 00 37 62      .....=.........x`.............()i............Lf9..F.7b
    and the log
    Code:
    Time Date Source Details Payloads
    12:46:57:640 9/8/2007 Send SMS Message treescript okRP_Automation.gml:\Testing Only\Send SMS Message
    And the 2nd SMS doesn't get sent.

    As you can see I get no errors which is strange since you do doing the same thing.

    Richard

  5. #5
    Join Date
    Nov 2005
    Location
    Redditch, UK
    Posts
    957

    Default

    Hmmm... I don't get the hex stuff like you do for a start.

    Did you try the message format like I mentioned? I tried the wrong method again and it stuffed up the plugin when the payload has anything but letters and numbers in it.

    I think I may have tracked it down to the GenerateEvent function in the Nokia3310.lua as it uses commas to seperate the payload and extra payloads it thinks are time and date... try to parse them and fail and it causes the checksum error

    Buried in the code I found this...
    --MsgFormat "G4E:1234,Event,Payload,Time,Date
    Seems like this is what is happening...
    Last edited by NeoMorph; September 7th, 2007 at 10:53 PM.
    - John H
    * PROMIXIAN TO THE CORE! * (NetRemote2WholeHomePro + Girder5WholeHomePro + USB-UIRT + Touchscreens + WirelessControlSystems + ANNA) == AutomationHeaven
    - "IthinkI'mgoingtobantheuseofthespacebarinfuture..."

  6. #6
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Please post the Nokia3310.lua file here.
    --Rob

  7. #7
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    566

    Default

    Lua file attached.

    Cheers
    Richard
    Attached Files Attached Files

  8. #8
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    566

    Default

    John,

    I'm confused, the message format you're talking about is when the plugin is RECEIVING a message (sent from another phone to Girder), my logs are when I SEND a message from Girder to another phone.

    I can only send the first message and then have to reset Girder to send another, which makes me think the plugin isn't terminating correctly and thus can't process the second send request correctly for some reason.

    I can send as many messages as I like TO Girder and they work and triggger events correctly, although the messages aren't deleted off the phone after the first one, so there is an issue there too.


    The hex is generated if you enable full logging for the plugin (there is a Nokia Logging action available along with the Send SMS action to set this).

  9. #9
    Join Date
    Nov 2005
    Location
    Redditch, UK
    Posts
    957

    Default

    Quote Originally Posted by rpalmer68 View Post
    John,

    I'm confused, the message format you're talking about is when the plugin is RECEIVING a message (sent from another phone to Girder), my logs are when I SEND a message from Girder to another phone.

    I can only send the first message and then have to reset Girder to send another, which makes me think the plugin isn't terminating correctly and thus can't process the second send request correctly for some reason.

    I can send as many messages as I like TO Girder and they work and triggger events correctly, although the messages aren't deleted off the phone after the first one, so there is an issue there too.


    The hex is generated if you enable full logging for the plugin (there is a Nokia Logging action available along with the Send SMS action to set this).
    The problem of the 2nd message is due to the problem with the script hanging after the first message causing the fault. Can you post some messages that fail for you please? That's the only way I can try and figure out what is happening.

    On the logging side I can't find it! Under Nokia there is only Send SMS Message and nothing else (see attached pic). It sounds to me that you MAY have the wrong version (possibly an earlier buggier version that had the extra logging to track the problems).

    Actually I can't find the logging level settings in G5. In G4 it was easy... G5 is sneaky and has hidden them away somewhere.
    - John H
    * PROMIXIAN TO THE CORE! * (NetRemote2WholeHomePro + Girder5WholeHomePro + USB-UIRT + Touchscreens + WirelessControlSystems + ANNA) == AutomationHeaven
    - "IthinkI'mgoingtobantheuseofthespacebarinfuture..."

  10. #10
    Join Date
    Nov 2005
    Location
    Redditch, UK
    Posts
    957

    Default

    Oops... forgot to post the pic I was going to upload...

    See attached pic for confusing lack of logging level setting that was useful in G4.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	nokia logging.jpg 
Views:	106 
Size:	33.8 KB 
ID:	4068  
    - John H
    * PROMIXIAN TO THE CORE! * (NetRemote2WholeHomePro + Girder5WholeHomePro + USB-UIRT + Touchscreens + WirelessControlSystems + ANNA) == AutomationHeaven
    - "IthinkI'mgoingtobantheuseofthespacebarinfuture..."

Page 1 of 7 123 ... LastLast

Posting Permissions

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