Komórka jako modem

Instalacja i konfiguracja oprogramowania sieciowego.
Awatar użytkownika
none
Sędziwy Jeż
Sędziwy Jeż
Posty: 60
Rejestracja: 12 wrz 2007, 18:11
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: LXDE

Komórka jako modem

Post autor: none »

Witam wszystkich. Od pewnego czasu staram się zamienić moją komórke na modem bo czasem sie przydaje jak np gdzieś jade. Moja komóra to BlackBerry 8700g a system ubuntu 8.04. Oczywiście szukałem na google i znalazłem to: http://ubuntuforums.org/showthread.php?t=366719 . Myśle jest dobrz ok ściągam : http://sourceforge.net/project/download ... z&68377112 ok mam a ./configure wywala coś takiego co mogłem to doinstalowałem:

Kod: Zaznacz cały

dom@dom-laptop:~/instalki/xmblackberry-0.3.0$ ./config
bash: ./config: No such file or directory
dom@dom-laptop:~/instalki/xmblackberry-0.3.0$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for pkg-config... /usr/bin/pkg-config
checking for opensync-1.0 osengine-1.0... checking for libxml-2.0... checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether ln -s works... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for chown... /bin/chown
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether libXp is available... no
checking for Motif... checking whether libXp is available... (cached) no
libraries (none), headers (none)
checking for Xpm... libraries test link failed, headers test link failed
checking for Xlt... libraries test link failed, headers test link failed
checking for pthread_create in -lpthread... yes
checking for openpty in -lutil... yes
checking for SHA1 in -lssl... yes
checking for XmVaCreateLabel in -lXm... no
checking usb.h usability... no
checking usb.h presence... no
checking for usb.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking openssl/sha.h usability... yes
checking openssl/sha.h presence... yes
checking for openssl/sha.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
config.status: creating 99-xmblackberry.rules
config.status: creating Doxyfile
config.status: creating XmBlackBerry.1
config.status: creating gprs_protocol_fix/Makefile
config.status: WARNING:  gprs_protocol_fix/Makefile.in seems to ignore the --datarootdir setting
config.status: creating gprs_protocol_fix/peer
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
=== configuring in libusb (/home/dom/instalki/xmblackberry-0.3.0/libusb)
configure: running /bin/bash ./configure '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for what USB OS support... Linux
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ANSI C header files... (cached) yes
checking for vprintf... yes
checking for _doprnt... no
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking for memmove... yes
checking for pkg-config... /usr/bin/pkg-config
checking if we should build the documentation... auto
checking for jade... no
checking for openjade... no
checking for Doxygen tools... checking for dot... not found
checking for doxygen... not found
configure: WARNING: Documentation build components not installed. sgml docs will not be built
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating libusb.spec
config.status: creating libusb-config
config.status: creating libusb.pc
config.status: creating tests/Makefile
config.status: creating README
config.status: creating INSTALL.libusb
config.status: creating usb.h
config.status: creating Doxyfile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
	GPRS support ....... YES
	Password support ... YES
	OpenSync support ... NO
	Xlt ................ Xlt was not found but is necessary
	                     Get it from http://sourceforge.net/projects/xlt
	OpenMotif .......... The found libXm was not new enough.
	                     I use the XmVaCreate* functions.
	                     Get it from http://motifzone.net
dom@dom-laptop:~/instalki/xmblackberry-0.3.0$ 
2 link : http://wiki.howardforums.com/index.php/ ... _Linux#USB tam jest konfig

Kod: Zaznacz cały

[Dialer Defaults]
Init1 = AT+CGDCONT=1,"IP","internet"
Modem Type = USB Modem
Phone = *99***1#
Password = plusgsm	
Username = plusgsm
Modem = /dev/usbdev
Baud = 460800
Co wpisać w selekcji Modem i "IP" ? Proszę o szybką pomoc Z góry dzięki
Dariusz2000
Sędziwy Jeż
Sędziwy Jeż
Posty: 51
Rejestracja: 11 gru 2007, 04:03
Płeć: Mężczyzna
Wersja Ubuntu: 7.10

Odp: Komórka jako modem

Post autor: Dariusz2000 »

Jeśli to nietypowy telefon to wypróbuj Global GPRS http://www.globalgprs.strony.pl Jest on wyspecjalizowany w obsłudze konkretnych marek np. BlackBerry. Jeśli ten telefon jest podobny do innych BlackBerry to powinien zadziałać.
Awatar użytkownika
none
Sędziwy Jeż
Sędziwy Jeż
Posty: 60
Rejestracja: 12 wrz 2007, 18:11
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: LXDE

Odp: Komórka jako modem

Post autor: none »

Niestety program nie działa :( nie chce się połaczyć za każdym razem pisze nie znaleziono urządzenia mimo iż lsusb pokazuje, że go mam żeby wykluczyć, że złe miejsce montowania usb wybralem sprawdziłem wszystkie i nic. Proszę o pomoc w logach kernela nie ma gdzie montuje a ubuntu widzi moje urzadzenie bo nie wrzeszczy, że ma małe napięcie czyli ok. Proszę o pomoc
Dariusz2000
Sędziwy Jeż
Sędziwy Jeż
Posty: 51
Rejestracja: 11 gru 2007, 04:03
Płeć: Mężczyzna
Wersja Ubuntu: 7.10

Odp: Komórka jako modem

Post autor: Dariusz2000 »

Telefony na kabelku USB dostają nie tylko port /dev/ttyUSB0 1 2 ... ale często też /dev/ACM0 1 2 ...
Sprawdzałeś oba rodzaje? Mój program ma przyciski "Port - Podpowiedź 1" "Port - Podpowiedź 2" jeśli ten pierwszy przycisk nie znalazł portu /dev/ttyUSB... /dev/ACM... to znaczy, że kernel źle rozpoznaje urządzenie. Wyświelanie przez lsusb informacji o urządzeniu niestety nie wystarczy. A to, że komórka ładuje sobie baterię z kabelka USB nie ma nic wspólnego z transmisją danych.

Proponuję użyć nowej dystrybucji Linuksa Ubuntu 8.04 mającej kernel 2.6.24 lub Fedora 9 z kernelem 2.6.25
Obie są w postaci LiveCD, więc nie musisz ich instalować na dysku. Mój program działa na LiveCD. Uruchom na nowym kernelu w programie przycisk "Port - Podpowiedź 1" może wykryje wtedy /dev/ttyUSB0 1 2 /dev/ACM0 1 2.

Zamiast USB możesz wypróbować łącze przez bluetooth. Tu jest poradnik jak je skonfigurować
http://krysmann.net/wp22/281/ubuntu-gut ... e#more-281
Awatar użytkownika
none
Sędziwy Jeż
Sędziwy Jeż
Posty: 60
Rejestracja: 12 wrz 2007, 18:11
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: LXDE

Odp: Komórka jako modem

Post autor: none »

Mam ubuntu 8.04 a ładowanie w przypadku tek komórki ma znaczenie bo bez drivwerów pokazuje że zamałe napięcie ma a i podac wynik jakiejś komendy bo podpowiedź 1 pokazuje tylko porty PCI i COM a co do bluetooth to akurat z tym będzie problem bo nie mam bluetooth w laptopie :( A może wiesz jaki numer mam wybrać w Plusie by nawiązać połączenie bo potrzebne mi przy okazji. Proszę o pomoc bo mi ręce opadaja
Awatar użytkownika
SvenGips
Sędziwy Jeż
Sędziwy Jeż
Posty: 38
Rejestracja: 19 kwie 2007, 23:15
Płeć: Mężczyzna
Wersja Ubuntu: 15.04
Środowisko graficzne: GNOME
Architektura: x86_64
Kontakt:

Odp: Komórka jako modem

Post autor: SvenGips »

A czy testował to ktoś pod SDA2 ewentualnie SPV C500 lub C600?
Samsung R60 Plus = Intel Core2Duo 2Ghz|2Gb DDR2|Wifi Atheros |Ati Radeon X2300 128MB|hdd:Fujitsu200GB + exthdd:WD My Book 500GB|
Ubuntu 8.04 PL
ODPOWIEDZ

Wróć do „Sieci, serwery, Internet”

Kto jest online

Użytkownicy przeglądający to forum: Bing [Bot] i 5 gości