Archive for the ‘tether’ Category

Tethering with Blackberry

Wednesday, April 1st, 2009
  • Blackberry Pearl 8130 on Sprint
  • Ubuntu Intrepid Ibex 8.10
  • Dell XPS m1330

Get rid of the low voltage message when connecting blackberry to xps

  1. Found this link: http://georgia.ubuntuforums.org/showpost.php?p=6775440&postcount=2
  2. All I did was go here: https://launchpad.net/~doctormo/+archive/ppa
  3. Add OpenPGP key
  4. Add repository
  5. Update apt-get (apt-get update)
  6. Install barry-util (apt-get install barry-util)
  7. Not sure if it’s required, but I restarted xps here…

Get ready to setup tether…

  1. From previous post… go here: http://wiki.colar.net/tethering_with_blackberry_pearl_on_linux
  2. Oh…. there’s an easier way… go here: http://wiki.colar.net/bbtether

Get ready to setup easy tether…

  1. Go here: http://wiki.colar.net/bbtether
  2. Followed instructions installing the dependencies and bbtether.
  3. For me… I do have “replacedefaultroute”, so that was easy.

Let’s tether

  1. Connect blackberry to xps
  2. Watch screen popup a message (something about low voltage) and it will go away
  3. Start Berry4All
  4. Go to Device>Rescan
  5. Oh… says it failed… (expected)
  6. Disconnect blackberry from xps
  7. Go to Device>Rescan
  8. Only listed USB devices…
  9. Connect blackberry to xps again
  10. Go to Device>Rescan
  11. Oh… it worked.. but I got a warning… (we need this warning…)
  12. warning for tethering

    warning for tethering

  13. Disconnect blackberry
  14. Turn off blackberry (don’t need to remove battery)
  15. Turn on blackberry
  16. Close Berry4All
  17. Connect blackberry to xps
  18. Start Berry4All
  19. Go to Modem>Connect
  20. Select Sprint
  21. Connected!!!

Improve speed

  1. Edit conf/sprint file
  2. Increased speed to 921600.

Side Note

  1. I did have trouble with firefox… it wouldn’t “surf” the net
  2. I could ping though…
  3. Reading the FAQ on bbtether… sometimes firefox puts it to “work offline”.
  4. That is my issue…
  5. Unchecked “work offline”… and now I am able to surf the net.

Ubuntu Blackberry tether

Saturday, October 25th, 2008

I used the following resources.

http://wiki.colar.net/tethering_with_blackberry_pearl_on_linux

http://ubuntuforums.org/showthread.php?t=617811

Some issues I had…

When trying to compile opensync, there was no opensync/opensync-xml.h.  I found this and it fixed my issue.  http://blackberryforums.pinstack.com/f158/tethered_modem_support_in_linux-40533/

Basically, I created a file  /usr/include/opensync-1.0/opensync/opensync-xml.h, and put copied and pasted this

==================

#ifndef HAVE_OPENSYNC_XML_H
#define HAVE_OPENSYNC_XML_H

#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>

#include <opensync/opensync.h>
#include <string.h>
#include <stdio.h>

#ifdef __cplusplus
extern "C"
{
#endif

typedef enum osxmlEncoding {
OSXML_8BIT = 0,
OSXML_QUOTED_PRINTABLE = 1,
OSXML_BASE64 = 2
} osxmlEncoding;

typedef enum osxmlCharset {
OSXML_ASCII = 0,
OSXML_UTF8 = 1
} osxmlCharset;

typedef struct OSyncXMLEncoding OSyncXMLEncoding;
struct OSyncXMLEncoding {
osxmlEncoding encoding;
osxmlCharset charset;
};

typedef struct OSyncXMLScore {
int value;
const char *path;
} OSyncXMLScore;

xmlNode *osxml_node_add_root(xmlDoc *doc, const char *name);
xmlNode *osxml_node_get_root(xmlDoc *doc, const char *name, OSyncError **error);
xmlNode *osxml_get_node(xmlNode *parent, const char *name);

xmlNode *osxml_node_add(xmlNode *parent, const char *name, const char *data);
//void osxml_format_dump(OSyncXML *xml, char **data, int *size);
xmlNode *osxml_format_parse(const char *input, int size, const char *rootname, OSyncError **error);
char *osxml_find_node(xmlNode *parent, const char *name);
void osxml_node_add_property(xmlNode *parent, const char *name, const char *data);
char *osxml_find_property(xmlNode *parent, const char *name);
osync_bool osxml_has_property(xmlNode *parent, const char *name);
osync_bool osxml_has_property_full(xmlNode *parent, const char *name, const char *data);

void osxml_node_mark_unknown(xmlNode *parent);
void osxml_node_remove_unknown_mark(xmlNode *node);
void osxml_map_unknown_param(xmlNode *node, const char *paramname, const char *newname);

void osxml_node_set(xmlNode *node, const char *name, const char *data, OSyncXMLEncoding encoding);
xmlXPathObject *osxml_get_nodeset(xmlDoc *doc, const char *expression);
xmlXPathObject *osxml_get_unknown_nodes(xmlDoc *doc);
OSyncConvCmpResult osxml_compare(xmlDoc *leftinpdoc, xmlDoc *rightinpdoc, OSyncXMLScore *scores, int default_score, int treshold);
xmlChar *osxml_write_to_string(xmlDoc *doc);
osync_bool osxml_copy(const char *input, int inpsize, char **output, int *outpsize);

osync_bool osxml_marshall(const char *input, int inpsize, char **output, int *outpsize, OSyncError **error);
osync_bool osxml_demarshall(const char *input, int inpsize, char **output, int *outpsize, OSyncError **error);

#ifdef __cplusplus
}
#endif

#endif

==================