spacer
spacer search

PHARscape
Phar enough!

Search
spacer
header
Main Menu
Home
Linux and 3G
Linux and 3G Forum
Python Stuff
Pictures
Astronomy
Links
Contacting Me
Search
Mambo License
About
Syndicate
Lunarpages.com Web Hosting
 
Home arrow Linux and 3G Forum

PHARscape
3G Datacards and Linux
 
  FAQFAQ    SearchSearch  RegisterRegister 
   Log inLog in 

HSO 1.2

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PHARscape Forum Index -> HSO - Packet Driver for Option 7.2 Mbps devices
View previous topic :: View next topic  
Author Message
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 510
Location: UK and Belgium

uk.gif
PostPosted: Wed Apr 16, 2008 1:18 pm    Post subject: HSO 1.2 Reply with quote

Hi All,

Here is the latest driver version from Option.


Changes:
- Added frame length lower boundary checking
- Catch failed opens and unwanted closes.
- Set DTR/RTS at open()
- Add hso_tiocmset() locking
- Use usb_unlink_urb() when in_interrupt iso usb_kill_urb()
- Removed 'Suspend' modinfo and replace with more general 'Flags'
which should contain all relevant compiler defines.

Cheers,
Paul



hso-1.2.tar.gz
 Description:

Download
 Filename:  hso-1.2.tar.gz
 Filesize:  30.66 KB
 Downloaded:  6227 Time(s)

Back to top
View user's profile Send private message Visit poster's website
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 510
Location: UK and Belgium

uk.gif
PostPosted: Wed Apr 16, 2008 1:35 pm    Post subject: Reply with quote

Device Hardware IDs supported by the HSO 1.2 driver:

{USB_DEVICE(0x0af0, 0x6711),
{USB_DEVICE(0x0af0, 0x6731),
{USB_DEVICE(0x0af0, 0x6751),
{USB_DEVICE(0x0af0, 0x6771),
{USB_DEVICE(0x0af0, 0x6791),
{USB_DEVICE(0x0af0, 0x6811),
{USB_DEVICE(0x0af0, 0x6911),
{USB_DEVICE(0x0af0, 0x6951),
{USB_DEVICE(0x0af0, 0x6971),
{USB_DEVICE(0x0af0, 0x7011),
{USB_DEVICE(0x0af0, 0x7031),
{USB_DEVICE(0x0af0, 0x7051),
{USB_DEVICE(0x0af0, 0x7071),
{USB_DEVICE(0x0af0, 0x7111),
{USB_DEVICE(0x0af0, 0x7211),
{USB_DEVICE(0x0af0, 0x7251),
{USB_DEVICE(0x0af0, 0x7271),
{USB_DEVICE(0x0af0, 0x7311),
{USB_DEVICE(0x0af0, 0xc031),
{USB_DEVICE(0x0af0, 0xd013),
{USB_DEVICE(0x0af0, 0xd031),
{USB_DEVICE(0x0af0, 0xd033),

Cheers,
Paul
Back to top
View user's profile Send private message Visit poster's website
gromgull



Joined: 25 Jul 2008
Posts: 1

blank.gif
PostPosted: Fri Jul 25, 2008 10:04 am    Post subject: Problems with Option modem from Telenor Reply with quote

Hi,

I've got an option modem provided by Telenor in norway - marked model no. GI0205 on the back.

I can switch the modem using usb_modeswitch and get a option device appearing when doing lsusb, but the modem is not using the hso driver.

The modem has device id: 0af0:6901 which I see is NOT on the list above.

Can I use the hso driver with the above card? Can I configure usb_modeswitch to give me the right device id somehow?

What about the option module (this is built into the default eee-kernel) - I don't quite understand the difference between this and hso... I take it HSOConnect does NOT work with the option module - what does?

Thanks for any pointers!
Back to top
View user's profile Send private message Visit poster's website
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 510
Location: UK and Belgium

uk.gif
PostPosted: Mon Jul 28, 2008 11:35 am    Post subject: Reply with quote

Hi Gromgull,

The device you have is configured to use the normal option.ko driver and therefore will create /dev/ttyUSB? interfaces when it is plugged in.

You can use the UMTSmon program to control this device.

Cheers,
Paul
Back to top
View user's profile Send private message Visit poster's website
paul_herring



Joined: 28 Feb 2008
Posts: 3

blank.gif
PostPosted: Tue Aug 05, 2008 2:13 pm    Post subject: Reply with quote

I'm using this driver on a custom 2.6.19.2 kernel, with 2 GTM380s.

While the driver largely works, I'm worried that some of the kernel warnings I'm getting may be 'not helping' some of the other issues I have with the boards the GTM380's are mounted on. Would someone take a look at the warnings I do have and either explain what exactly they mean (I know in general the first is calling code it shouldn't in an IRQ, and the second is complaining that a prior invocation is leaving stuff behind that it wants,) and if I don't need to worry about them, why I don't?

Upon booting and loading hso:
Code:
Sep 30 01:25:16 tcu kernel: BUG: warning at kernel/softirq.c:137/local_bh_enable()
Sep 30 01:25:16 tcu kernel:  [] local_bh_enable+0x72/0x7e
Sep 30 01:25:16 tcu kernel:  [] hso_start_serial_device+0xdd/0xe7 [hso]
Sep 30 01:25:16 tcu kernel:  [] hso_serial_open+0xd6/0x142 [hso]
Sep 30 01:25:16 tcu kernel:  [] hso_serial_open+0xcc/0x142 [hso]
Sep 30 01:25:16 tcu kernel:  [] cdev_get+0x21/0x4b
Sep 30 01:25:16 tcu kernel:  [] tty_open+0x176/0x316
Sep 30 01:25:16 tcu kernel:  [] chrdev_open+0x6c/0x137
Sep 30 01:25:16 tcu kernel:  [] chrdev_open+0x0/0x137
Sep 30 01:25:16 tcu kernel:  [] __dentry_open+0xae/0x1cd
Sep 30 01:25:16 tcu kernel:  [] do_filp_open+0x48/0x4f
Sep 30 01:25:16 tcu kernel:  [] do_setitimer+0x49a/0x49f
Sep 30 01:25:16 tcu kernel:  [] get_unused_fd+0x56/0xb6
Sep 30 01:25:16 tcu kernel:  [] do_sys_open+0x47/0xed
Sep 30 01:25:16 tcu kernel:  [] alarm_setitimer+0x49/0x77
Sep 30 01:25:16 tcu kernel:  [] sys_open+0x27/0x2b
Sep 30 01:25:16 tcu kernel:  [] sysenter_past_esp+0x56/0x79
Sep 30 01:25:16 tcu kernel:  =======================


========= EDIT =========
Ignore this second dump - there was a bug in my code keeping /proc/hso/devices/ttyHS0 open when it should have been closed shortly after being opened.

Incidentally, I've found the problem with my hardware, and it was not related to the hso driver, but would still appreciate feedback on the dump above.

========= END EDIT =========

Upon getting a 'device removed from USB' problem I'm investigating, ttyHS0 remains behind because I have it open in minicom (I'm sure when I was looking at this 6 months ago, the older driver forcibly removed it forcing minicom to quit) I did an 'rmmod hso' then 'modprobe hso' - the following spans those two commands:

Code:
Sep 30 01:39:12 tcu kernel: hso: Exiting hso
Sep 30 01:39:12 tcu kernel: usbcore: deregistering interface driver hso
Sep 30 01:39:12 tcu kernel: cipcb: Ouch: cipe_netdev_event() wrong struct
Sep 30 01:39:12 tcu kernel: cipcb: Ouch: cipe_netdev_event() wrong struct
Sep 30 01:39:12 tcu kernel: BUG: warning at fs/proc/generic.c:732/remove_proc_entry()
Sep 30 01:39:12 tcu kernel:  [] remove_proc_entry+0x19a/0x1b1
Sep 30 01:39:12 tcu kernel:  [] cleanup_module+0x55/0x6a [hso]
Sep 30 01:39:12 tcu kernel:  [] __try_stop_module+0x27/0x3b
Sep 30 01:39:12 tcu kernel:  [] sys_delete_module+0x12a/0x190
Sep 30 01:39:12 tcu kernel:  [] do_page_fault+0x4f7/0x644
Sep 30 01:39:12 tcu kernel:  [] sysenter_past_esp+0x56/0x79
Sep 30 01:39:12 tcu kernel:  =======================
Sep 30 01:39:28 tcu ciped-cb[1069]: keepalive timeout
Sep 30 01:39:44 tcu gps[1095]: Switching baud rate to 9600
Sep 30 01:39:58 tcu ciped-cb[1069]: keepalive timeout
Sep 30 01:40:00 tcu kernel: hso: /home/svn/ccu/trunk/os/hso/hso.c: 1.2 Option Wireless
Sep 30 01:40:00 tcu kernel: hso: Registering procfs
Sep 30 01:40:00 tcu kernel: [2835:set_ethernet_addr]: Attempting to get MAC address failed: using default
Sep 30 01:40:00 tcu kernel: kobject_add failed for ttyHS0 with -EEXIST, don't try to register things with the same name in the same directory.
Sep 30 01:40:00 tcu kernel:  [] kobject_add+0x112/0x18d
Sep 30 01:40:00 tcu kernel:  [] class_device_add+0xbe/0x4a7
Sep 30 01:40:00 tcu kernel:  [] kobject_get+0x17/0x1e
Sep 30 01:40:00 tcu kernel:  [] kobject_init+0x39/0x52
Sep 30 01:40:00 tcu kernel:  [] class_device_initialize+0x1a/0x24
Sep 30 01:40:00 tcu kernel:  [] class_device_create+0x93/0xb5
Sep 30 01:40:00 tcu kernel:  [] tty_register_device+0x6f/0xe2
Sep 30 01:40:00 tcu kernel:  [] usb_string_sub+0x27/0xf3
Sep 30 01:40:00 tcu kernel:  [] idr_get_new+0xf/0x32
Sep 30 01:40:00 tcu kernel:  [] proc_register+0x3d/0xe9
Sep 30 01:40:00 tcu kernel:  [] hso_serial_common_create+0x5a/0x1a0 [hso]
Sep 30 01:40:00 tcu kernel:  [] hso_create_mux_serial_device+0x80/0x176 [hso]
Sep 30 01:40:00 tcu kernel:  [] hso_probe+0x1d3/0x263 [hso]
Sep 30 01:40:00 tcu kernel:  [] netlink_broadcast+0x208/0x32e
Sep 30 01:40:00 tcu kernel:  [] usb_probe_interface+0x6a/0xa0
Sep 30 01:40:00 tcu kernel:  [] really_probe+0x32/0xe0
Sep 30 01:40:00 tcu kernel:  [] __driver_attach+0x0/0x85
Sep 30 01:40:00 tcu kernel:  [] __driver_attach+0x83/0x85
Sep 30 01:40:00 tcu kernel:  [] bus_for_each_dev+0x58/0x77
Sep 30 01:40:00 tcu kernel:  [] driver_attach+0x26/0x2a
Sep 30 01:40:00 tcu kernel:  [] __driver_attach+0x0/0x85
Sep 30 01:40:00 tcu kernel:  [] bus_add_driver+0x6c/0x1a5
Sep 30 01:40:00 tcu kernel:  [] driver_register+0x5e/0x95
Sep 30 01:40:00 tcu kernel:  [] usb_register_driver+0x67/0xe3
Sep 30 01:40:00 tcu kernel:  [] init_module+0x181/0x1b4 [hso]
Sep 30 01:40:00 tcu kernel:  [] sys_init_module+0x13e/0x1920
Sep 30 01:40:00 tcu kernel:  [] sysenter_past_esp+0x56/0x79
Sep 30 01:40:00 tcu kernel:  =======================


I realise this second is because ttyHS0 is still there, but, as I said before, I was sure hso managed to forcably pull it from anything that had it open.

TIA for any insights/pointers anyone can pass on.


Last edited by paul_herring on Mon Aug 11, 2008 3:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
raceme



Joined: 11 Aug 2008
Posts: 1

france.gif
PostPosted: Mon Aug 11, 2008 3:25 pm    Post subject: Re: HSO 1.2 Reply with quote

Paul wrote:
Hi All,

Here is the latest driver version from Option.



I made a source package for Debian/Ubuntu which is available here: http://ombos.raceme.org/tof/hso/hso-source/.

To build the module package: download the http://ombos.raceme.org/tof/hso/hso-source/hso-source_1.2-0raceme1_all.deb file and install it as root and call module-assistant to compile and install the module:

Code:

# dpkg -i hso-source_1.2-0raceme1_all.deb
# m-a a-i hso


If you want to rebuild the source package for your distribution (optional): get the 3 other files, install some development tools and rebuild the package:

Code:

# apt-get install devscripts fakeroot build-essential
# dpkg-source -x hso_1.2-0raceme1.dsc
# cd hso-1.2
# debuild


Feel free to comment...
Back to top
View user's profile Send private message Visit poster's website
nightalon



Joined: 25 Aug 2008
Posts: 1

usa.gif
PostPosted: Mon Aug 25, 2008 4:15 pm    Post subject: From a noob: what next? Reply with quote

The .deb package installed fine for me on Ubuntu 8.04.1 with the latest updates. Do you recommend installing umtsmon? Wvdial seems not to work for me at the moment. Should some sort of USB configuration be the next step? I have an Option GX0201 Cingular GT MAX 3.6 ("7.2 Ready") that I upgraded to firmware 2.5.3 Hd using the generic updater...there's also a Vodafone one available. I'm using GlobeTrotter Mobility Manager in Vista, and haven't set up my PC Card slot in OSX86 yet.

Many thanks,
NighTalon

NYC
Back to top
View user's profile Send private message
peddecke



Joined: 11 Sep 2008
Posts: 7

blank.gif
PostPosted: Thu Sep 11, 2008 11:04 pm    Post subject: Re: HSO 1.2 Reply with quote

raceme wrote:
If you want to rebuild the source package for your distribution (optional): get the 3 other files, install some development tools and rebuild the package:

Code:

# apt-get install devscripts fakeroot build-essential
# dpkg-source -x hso_1.2-0raceme1.dsc
# cd hso-1.2
# debuild


Feel free to comment...

I'm trying this for Voyage Linux 0.5.2, but I get some key signing troubles:
dpkg-genchanges: not including original source code in upload
dpkg-buildpackage (debuild emulation): binary and diff upload (original source NOT included)
Now signing changes and any dsc files...
signfile hso_1.2-0raceme1.dsc Christophe Boyanique
gpg: skipped "Christophe Boyanique ": secret key not available
gpg: [stdin]: clearsign failed: secret key not available
debsign: gpg error occurred! Aborting....
debuild: fatal error at line 1155:
running debsign failed

Off course the secret key is not available Very Happy Is there a way to get rid of these troubles? Thanks!
Back to top
View user's profile Send private message
peddecke



Joined: 11 Sep 2008
Posts: 7

blank.gif
PostPosted: Fri Sep 12, 2008 12:09 am    Post subject: Re: HSO 1.2 Reply with quote

raceme wrote:
Code:

# dpkg -i hso-source_1.2-0raceme1_all.deb
# m-a a-i hso

I also tried this method. As I don't have kernel headers, I installed the kernel sources and built them with the used .config, but it doesn't work:

# m-a -k /usr/src/linux-source-2.6.23-voyage a-i hso
.
Updated infos about 1 packages
Bad kernel version specification at /usr/bin/m-a line 566, line 6.

Any solution? Thanks a lot!
Back to top
View user's profile Send private message
gaetan



Joined: 12 Sep 2008
Posts: 2

chile.gif
PostPosted: Fri Sep 12, 2008 11:36 pm    Post subject: Did not finish AT commands. Reply with quote

My usb modem is recognized, the network found, but i want to connect i have in the console
Did not finish AT commands. and the application restart, what could i do

TIA

Gaëtan
Back to top
View user's profile Send private message
gaetan



Joined: 12 Sep 2008
Posts: 2

chile.gif
PostPosted: Mon Sep 15, 2008 2:35 pm    Post subject: my fault Reply with quote

I solved my problem filling right the connection settings.
for entelcps chile the apn is imovil.entelpcs.cl, login and pass entelpcs
Back to top
View user's profile Send private message
peddecke



Joined: 11 Sep 2008
Posts: 7

blank.gif
PostPosted: Mon Sep 15, 2008 5:19 pm    Post subject: Reply with quote

OK, I've solved my problems. Neglect my previous postings.
Back to top
View user's profile Send private message
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 510
Location: UK and Belgium

uk.gif
PostPosted: Thu Sep 18, 2008 9:38 am    Post subject: Reply with quote

Hi All,

I have posted a 1.5 version of the driver. I have now closed this thread.

Cheers,
Paul
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    PHARscape Forum Index -> HSO - Packet Driver for Option 7.2 Mbps devices All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


phpBB component by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group
spacer

 
Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.
spacer