Jump to content

kardenal

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kardenal's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi. I'm trying to get PHP to read a hex value. This value comes from an SMS message sendt by a logger. It has information of energyusage. The information is sendt in hex and is 112 char long but PHP codes (pack) this into a 12 char long ASCII string and i can't find a way decode (unpack) this to its originale form. Does anyone have any idea how i can get hold of the initial hex value? The SMS message: format definition from linux "gsmsmsd" command. Type of message: SMS message Message type: SMS-DELIVER SC address: '4792001000' More messages to send: 1 Reply path: 0 User data header indicator: 0 Status report indication: 0 Originating address: '4793002664' Protocol identifier: 0x0 Data coding scheme: compressed fax message waiting SC timestamp: 05/01/2006 12:00:27 AM (+0200) User data length: [!--coloro:#CC0000--][span style=\"color:#CC0000\"][!--/coloro--]112 [!--colorc--][/span][!--/colorc--] User data header: 0x User data: '[!--coloro:#CC0000--][span style=\"color:#CC0000\"][!--/coloro--]m741007ë,W[!--colorc--][/span][!--/colorc--] The "m741007ë,W" is a representation of the 112 chr hex string. The hex is 16 based. Anyone???
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.