Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Networking library
Forum Updated to NodeBB v4.3 + New Features

Networking library

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 652 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Q139
    wrote on last edited by
    #1

    Please recommend simple to use cross platform library with compression, encryption and cheksum support + variable and fixed length binary and text data parsing support to build on top of Qt networking classes or ready made.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      What are you planning to send ?

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Q139
        wrote on last edited by Q139
        #3

        Hi ,
        Mostly numeric data over mobile connection with limited data usage. 2G mobile network with 30-50mb montly data limit.

        Perhaps every 1-30 seconds ~10 floating values with 2-3 decimals.

        Current solution is floating values converted to text , from there to half byte custom char and use 4 bits per numeric character.

        But sometimes software update.
        Good compression could be useful.

        Looking for easy to config lib to use in other projects as well.

        Current idea is to make parsing lib with templates for packets. That are in sync for server and client. All size info for packet contents would not have to be sent within networking packets if client and server already have the info.
        And run packets trough lz4 or other compression algo before sending.

        But i think something like this is already made.

        jeremy_kJ 1 Reply Last reply
        0
        • Q Q139

          Hi ,
          Mostly numeric data over mobile connection with limited data usage. 2G mobile network with 30-50mb montly data limit.

          Perhaps every 1-30 seconds ~10 floating values with 2-3 decimals.

          Current solution is floating values converted to text , from there to half byte custom char and use 4 bits per numeric character.

          But sometimes software update.
          Good compression could be useful.

          Looking for easy to config lib to use in other projects as well.

          Current idea is to make parsing lib with templates for packets. That are in sync for server and client. All size info for packet contents would not have to be sent within networking packets if client and server already have the info.
          And run packets trough lz4 or other compression algo before sending.

          But i think something like this is already made.

          jeremy_kJ Offline
          jeremy_kJ Offline
          jeremy_k
          wrote on last edited by
          #4

          @Q139 said in Networking library:

          Hi ,
          Mostly numeric data over mobile connection with limited data usage. 2G mobile network with 30-50mb montly data limit.

          Is this using the base band protocol, or IPv4/6 over 2G?

          Perhaps every 1-30 seconds ~10 floating values with 2-3 decimals.

          Is the range of the values known?

          Asking a question about code? http://eel.is/iso-c++/testcase/

          Q 1 Reply Last reply
          0
          • jeremy_kJ jeremy_k

            @Q139 said in Networking library:

            Hi ,
            Mostly numeric data over mobile connection with limited data usage. 2G mobile network with 30-50mb montly data limit.

            Is this using the base band protocol, or IPv4/6 over 2G?

            Perhaps every 1-30 seconds ~10 floating values with 2-3 decimals.

            Is the range of the values known?

            Q Offline
            Q Offline
            Q139
            wrote on last edited by Q139
            #5

            @jeremy_k said in Networking library:

            Is this using the base band protocol, or IPv4/6 over 2G?

            Yes, GSM modem over serial connection.

            @jeremy_k said in Networking library:

            Is the range of the values known?

            Yes , for mostly used packets the values are not using full range of floating value types.
            ~0-99 before decimal and 0-3 digits after decimal

            kshegunovK 1 Reply Last reply
            0
            • Q Q139

              @jeremy_k said in Networking library:

              Is this using the base band protocol, or IPv4/6 over 2G?

              Yes, GSM modem over serial connection.

              @jeremy_k said in Networking library:

              Is the range of the values known?

              Yes , for mostly used packets the values are not using full range of floating value types.
              ~0-99 before decimal and 0-3 digits after decimal

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #6

              @Q139 said in Networking library:

              ~0-99 before decimal and 0-3 digits after decimal

              Without sign this is representable in 2 bytes fixed-point, isn't it?

              Read and abide by the Qt Code of Conduct

              Q 1 Reply Last reply
              0
              • kshegunovK kshegunov

                @Q139 said in Networking library:

                ~0-99 before decimal and 0-3 digits after decimal

                Without sign this is representable in 2 bytes fixed-point, isn't it?

                Q Offline
                Q Offline
                Q139
                wrote on last edited by Q139
                #7

                @kshegunov
                Using 64K combos from 2bytes, with 2 decimal points zero to 640.00+ appears possible.

                For 3 decimals would probably need 99999 combos if using fixed step 0.001.

                1 extra bit to 2 bytes could be enough.

                I think its doable with bit field (bit packing).
                With long array of data probably get good savings.

                So far i have tested byte to nibble as it aligns to byte easy.
                With 17bits or 2.125 bytes it appears to take more coding effort for alignment if using variable number of data.

                Is there algo that takes in something like (variable size array of int values , parameter to use 17bits or X bits per item) and outputs binaries containing reduced size for later to align back to integers?

                I have problem finding it on google due to bad keywords.

                kshegunovK 1 Reply Last reply
                0
                • Q Q139

                  @kshegunov
                  Using 64K combos from 2bytes, with 2 decimal points zero to 640.00+ appears possible.

                  For 3 decimals would probably need 99999 combos if using fixed step 0.001.

                  1 extra bit to 2 bytes could be enough.

                  I think its doable with bit field (bit packing).
                  With long array of data probably get good savings.

                  So far i have tested byte to nibble as it aligns to byte easy.
                  With 17bits or 2.125 bytes it appears to take more coding effort for alignment if using variable number of data.

                  Is there algo that takes in something like (variable size array of int values , parameter to use 17bits or X bits per item) and outputs binaries containing reduced size for later to align back to integers?

                  I have problem finding it on google due to bad keywords.

                  kshegunovK Offline
                  kshegunovK Offline
                  kshegunov
                  Moderators
                  wrote on last edited by kshegunov
                  #8

                  Using 64K combos from 2bytes, with 2 decimal points zero to 640.00+ appears possible.

                  The point is not decimal. 10 bits of fractional gives you 3 decimal digits, meaning that you get 6 more bits for the leading part, which is 64 (in decimal), so 64.xxx is exactly representable. You could "lie" if you can settle to give up a bit from the fractional part:

                  7 bits leading + 9 bits fractional -> up to 128.xxx with 2.7 decimal digits after the dot (your LSB in decimal would be 0.002 then)

                  Read and abide by the Qt Code of Conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved