Skip to content
Snippets Groups Projects
  1. Aug 29, 2012
    • Dan Williams's avatar
      release: bump version to 0.6.0 · d14fb6fe
      Dan Williams authored
      2 tags
      d14fb6fe
    • Dan Williams's avatar
      release: update NEWS · d24085b0
      Dan Williams authored
      d24085b0
    • Dan Williams's avatar
      sierra: fix CSQ handling on APP1 port · c5fc2837
      Dan Williams authored
      The APP1 port doesn't always prefix its replies with <CR><LF> which
      runs afoul of the built-in echo removal.  Since Sierra modems are on
      the whole well-behaved WRT echo removal, just disable it on the
      secondary ports.  Only changes behavior for PPP-based devices since
      they are the only ones that use the APP1 ports.
      c5fc2837
    • Dan Williams's avatar
      sierra: allow users to help debug APP1 PPP capability · 7a4bc7b4
      Dan Williams authored
      Most Sierra PPP-based devices are supposed to allow PPP on the
      APP1 port, which has a dumb AT parser, leaving the main port
      (with the intelligent AT parser) free for status and signal strength.
      But out of all the devices I've tested it with (8775, 8781, AC881,
      and C885), only the C885 actually works.  The rest (including three
      different firmware versions for the 8775) either crash or disconnect
      shortly after PPP starts.
      
      To help figure out which devices actually support this, when
      running MM in debug mode, users can set the MM_SIERRA_APP1_PPP_OK
      environment variable and assume the APP1 port allows PPP.  This
      is only for debugging purposes.
      7a4bc7b4
    • Dan Williams's avatar
      core: speed up QCDM probing a bit · 90e705f0
      Dan Williams authored
      The point of sending two "version info" commands was to ensure that
      the terminating 0x7E of the first one was processed as a QCDM frame
      boundary and that any random data in the buffer (like AT commands
      from probing) got cleared out.  The second command would always
      get processed as a valid QCDM command if the device supported QCDM,
      since there was no garbage before it.
      
      Instead of that dance, just prepend the version info message with
      an extra 0x7E to ensure a clean QCDM frame which the device hopefully
      responds to immediately.  Second, actually process that response
      instead of throwing it away.  Should save about 3 seconds when
      probing QCDM ports.
      90e705f0
    • Dan Williams's avatar
      sierra: use DHCP for the USB 305 (AT&T Lightning) · 94b37c44
      Dan Williams authored
      For some reason, my AT&T Lightning just doesn't work with static
      IP (AT%IPDPADDR) any more.  No traffic passes even though everything
      is set up the way it was before.  No idea what happened.  Using
      latest firmware 2.0.0.11.
      
      But what's interesting is on Windows the generic Sierra Watcher
      app uses DHCP.  But on Linux, when using AT%IPDPACT, DHCP doesn't
      work.  That's odd.  But it turns out the modem supports the
      "standard" Sierra proprietary AT!SCACT commands, and that
      *does* make DHCP work.  Crazy no?  So since the Windows app
      uses DHCP, it's likely that the non-DHCP case (AT%IPDPACT/AT%IPDPADDR)
      either isn't well tested or isn't well supported.  With that
      in mind, let's just use DHCP for this device in Linux too.
      94b37c44
    • Dan Williams's avatar
      icera: allow implementors to supply custom call control commands · f8455221
      Dan Williams authored
      Some devices should use custom call control commands instead of
      AT%IPDPACT.
      f8455221
  2. Aug 28, 2012
    • Dan Williams's avatar
      icera: handle additional IPv4 configuration options · d3d98de5
      Dan Williams authored
      Newer devices like the ZTE/Vodafone K3805-z have an enhanced
      %IPDPADDR command that includes a netmask and gateway, and
      these are necessary to configure the device since it uses /24
      instead of a /32.  Since the device is nice enough to tell
      us that, we should probably use that information.
      
      Unfortunately the MM API doens't expose the netmask and gateway
      yet, so we'll have to add a GetIP4ConfigEx() method or something
      like that, but this commit sets us up to do that.
      d3d98de5
    • Dan Williams's avatar
      zte: handle Icera-based devics that use DHCP · fb11f267
      Dan Williams authored
      Since we can't autodetect that the devices use DHCP, we'll need to
      tag them with udev rules for the time being.
      fb11f267
  3. Aug 27, 2012
  4. Aug 24, 2012
    • Dan Williams's avatar
      novatel: fix checking ERI for roaming/home decision · 164da2f6
      Dan Williams authored
      More fallout from b22b2d99
      which changed the return type of the qcdm_result_get_*() functions.
      164da2f6
    • Dan Williams's avatar
      icera: be more paranoid about cleaning up connect operations · 2bfd215c
      Dan Williams authored
      In case the connect gets interrupted by a disconnect or something.
      2bfd215c
    • Eric Shienbrood's avatar
      icera: retry configuring PDP context if it fails. · 31b3c0f8
      Eric Shienbrood authored and Dan Williams's avatar Dan Williams committed
      If a connect operation is attempted immediately after a disconnect,
      it sometimes fails with CME error 583 - "a profile (CID) is currently
      active". Apparently, even though the preceding operation (%IPDPACT)
      to deactivate the PDP context returned an OK response, the context
      is not really completely available until a fraction of a second
      later. This causes the %IPDPCFG operation that is part of the
      subsequent connect attempt to fail with error 583. This change
      retries the %IPDPCFG after a one second delay.
      
      BUG=chrome-os-partner:4936
      TEST=This can be tested from the UI, but I found it easier to produce
      the timing needed to trigger the bug by running mm-disconnect and
      mm-connect from a shell.
      
      Start out with the modem in the connected state. In the shell, run
      
        sudo /usr/local/lib/flimflam/test/mm-disconnect; sudo /usr/local/lib/flimflam/test/mm-connect --number='*99#' --apn=wap.cingular
      
      modem-manager should emit the log line "Invalid error code: 583".
      Prior to this change, the connect operation would fail. Now it should
      succeed.
      
      Change-Id: I6ae0e6a9f5405b54b0b465fe91d9542529f365c2
      Reviewed-on: http://gerrit.chromium.org/gerrit/5781
      
      
      Tested-by: default avatarEric Shienbrood <ers@chromium.org>
      Reviewed-by: default avatarNathan J. Williams <njw@chromium.org>
      31b3c0f8
    • Dan Williams's avatar
      ecdb5191
    • Dan Williams's avatar
      core: send State property change signals · 4a788333
      Dan Williams authored
      It was already exported via D-Bus, but the change signals weren't
      getting sent out.  I believe this was a holdover from when we weren't
      sure whether to export the internal state or not.  But we should.
      4a788333
    • Dan Williams's avatar
      sierra: fix detection of APP1 port · 082f683b
      Dan Williams authored
      The APP1 port (which has a limited AT parser) doesn't prefix
      its replies with <CR><LF> like nice modems do, and that means
      it runs afoul of the echo removal bits of the AT serial port
      code.  We need to parse the whole string even though it's not
      prefixed properly to find the APP1 string in the response.
      082f683b
    • Dan Williams's avatar
      core: add function to open probe ports without removing echo · 8f74fc2b
      Dan Williams authored
      Some devices (Sierra GSM ones) return stuff we need but don't
      bother to prefix it with <CR><LF>, so we need to optionally turn
      off the echo removal at probe time.
      8f74fc2b
    • Dan Williams's avatar
      sierra: fix detection of CDMA modems · 62503143
      Dan Williams authored
      They were getting detected as GSM, because of course the port
      type for CDMA modem AT ports is MM_PORT_TYPE_AT, which passed
      the check for GSM.  Oops.
      62503143
  5. Aug 16, 2012
    • Dan Williams's avatar
      build: clean marshallers from git master · 6d4515c2
      Dan Williams authored
      When switching branches from git master to MM_06 and 05, the
      marshallers generated by git master in src/ get #included
      rather than the ones from marshallers/.  So make sure we clean
      them when doing 'make clean'.
      6d4515c2
  6. Aug 09, 2012
  7. Aug 08, 2012
  8. Aug 03, 2012
  9. Jul 30, 2012
    • Aleksander Morgado's avatar
      huawei: limit the number of deferred tasks · b6909eab
      Aleksander Morgado authored
      The Huawei plugin requires to probe first the USB interface 0; all the other
      probing tasks in the remaining ports will get deferred until the interface 0
      gets probed. But, some modems (e.g. Huawei ET8282), don't expose the USB
      interface 0 as an AT port, so we get an infinite loop as no port ends up being
      probed.
      
      In order to fix this, we will limit to a predefined maximum the number of times
      a given probing task is deferred, 4 in this case. So, if a given probing task is
      deferred for more than 4x3s=12s, probing will get forced.
      b6909eab
  10. Jul 28, 2012
  11. Jul 23, 2012
  12. Jul 21, 2012
  13. Jul 20, 2012
  14. Jul 19, 2012
  15. Jul 18, 2012
    • Dan Williams's avatar
      gsm: fix sending SMS messages on some modems and use PDU by default · 65f13f41
      Dan Williams authored
      It turns out we really do have to wait for the modem to return the
      ">" prompt before sending the message data, otherwise a number of
      modems will complain about the data and fail the message.  Fix that
      by sending the first bit of the CMGS, waiting for the ">", and then
      sending the rest.
      
      This also switches all modems over to PDU mode by default if they
      support it, since it's more compatible and most recent modems don't
      even bother to support text mode anyway.
      65f13f41
Loading