Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length



Pages: 1 [2]  All
  Print  
Author Topic: You can now access internet through 3G/GPRS modem using the PPP feature!  (Read 7119 times)
Zebbe
Newbie
*
Posts: 11


View Profile
« Reply #25 on: October 12, 2009, 04:01:52 AM »

Hi!

Do you have any plans to add support for Huawei 3G USB modems?
It should work similar way as SierraInstaller class except switch command.

I found this from ubuntu mode_switch.c:

Sierra:
...
   ret = usb_control_msg(devh, 0x40, 0x0b, 00000001, 0, buffer, 0, 1000);
...
Huawei:
...
   ret = usb_control_msg(devh, USB_TYPE_STANDARD + USB_RECIP_DEVICE, USB_REQ_SET_FEATURE, 00000001, 0, buffer, 0, 1000);
...
AFAIK this is the same as
   ret = usb_control_msg(devh, (0x00 << 5)       + 0x00            , 0x03               , 00000001, 0, buffer, 0, 1000);

Would be nice to have HuaweiInstaller class also...


 
Logged
SupportAdmin
Administrator
Hero Member
*****
Posts: 5527



View Profile WWW
« Reply #26 on: October 12, 2009, 07:10:24 AM »

Quote
Would be nice to have HuaweiInstaller class also...

We would need a modem to implement this and also read this post please
http://www.ghielectronics.com/forum/index.php/topic,1503.0.html
Logged
GHI_Support
Administrator
Hero Member
*****
Posts: 1302


View Profile
« Reply #27 on: October 12, 2009, 08:37:57 AM »

Since you have the USB source code and if you have knowledge about USB, you can implement it yourself.
You just need RAWUSBDevice for your modem. Then implement GHIElectronics.System.Net.IPacketTransport to handle communications.
Logged
Zebbe
Newbie
*
Posts: 11


View Profile
« Reply #28 on: October 12, 2009, 11:16:25 AM »

In your project "Access the Internet using PPP feature from GHI through AT&T 3G USB modem (Sierra C885)" you have used class SierraInstaller and method SierraInstaller.SwitchToModemMode() to switch from mass storage mode to modem mode. Huawei (and many other 3G USB modems) works similar way as Sierra. Please take a look at http://www.draisberghof.de/usb_modeswitch/

I think PPP is not a problem, after getting modem up and running I could use GHI SerialUSB and PPP classes.
What I actually need is SierraInstaller.SwitchToModemMode() with parameters.

Sierra is not so popular in Europe, ZTE and Huawei are.
I don't have enough knowledge about USB to do this on my own Sad
Since modems usually are part of operator agreement I need to get at least Huawei to work with Embedded Master.
Logged
SupportAdmin
Administrator
Hero Member
*****
Posts: 5527



View Profile WWW
« Reply #29 on: October 12, 2009, 11:33:30 AM »

We need a modem and there will be some cost involved (go back 2 posts to see what I explained please)
Logged
Zebbe
Newbie
*
Posts: 11


View Profile
« Reply #30 on: October 14, 2009, 03:31:39 AM »

OK, I will start with Sierra modem.

How about Sierra Installer, C885 works with it but how about C888/C889 ?
It has same vendorid 0x1199 but different productid:
C885 has 0x6880
and
C888/C889 has 0x6890

It should be the same modem but has 900MHz bandwith instead of 850MHz.

Does System manager start C889 with Sierra Installer?
Logged
SupportAdmin
Administrator
Hero Member
*****
Posts: 5527



View Profile WWW
« Reply #31 on: October 14, 2009, 07:17:48 AM »

Our implementation is made in a way where you can use almost any modem but we only tested one modem. Others may just work and if they don't then you have 2 options. You can make the changes yourself or you can send us a modem and we will do it for you
Logged
s-m-i
Newbie
*
Posts: 32


View Profile
« Reply #32 on: October 28, 2009, 11:12:34 AM »

Thanks GHI support for working with us on PPP issue. The original software works well, the only confusion was with PPP.Connect method.

To establish modem PPP connection we have to use PPP.Connect(username,password) instead of PPP.Connect() even if username/password is not given. We used PPP.Connect("","") and it works well.

Here is quote from GHI:

"This feature (PPP) provides two types of PPP communications:
 
The first type is a non-authentication connection between two Embedded Master devices
through Serial Ports or USB to Serial devices. Using this feature you can use Micro
Framework TCP/IP stack over links other than Ethernet. For example, using a wireless
uart-XBee.
In this case, network settings used will be exactly the same ones used for Ethernet port
such as IP address and gateway address."


This uses PPP.Connect()
 
"The second type is PPP Client with PAP authentication protocol. This feature enables the
user to dial in through serial modem ( V.90/ GPRS/ 3G ) to access the Internet or extranet.
In this case, Network settings will be taken from the host server."
 


This uses PPP.Connect(username,password) //Performs PPP connection using a user name and password.
Logged
liqdfire
Newbie
*
Posts: 22


View Profile
« Reply #33 on: November 12, 2009, 09:47:44 PM »

I have the telit GM862 module like you used int he example; however, I am not as well versed in electronics as I am in coding so I am a little cloudy on how to hook it to the EM. Would it be possible for me to get the pin diagram you used to make the connections in the example. I appreciate it.
Logged
support
Administrator
Sr. Member
*****
Posts: 490


View Profile
« Reply #34 on: November 13, 2009, 12:11:31 AM »

This is your easiest solution:

http://www.sparkfun.com/commerce/product_info.php?products_id=477

this board exposes the required signals to RS232 connector. you can get this board and using Serial cable you connect it directly to your Embedded Master Development system COM3 RS232 connector
Logged
liqdfire
Newbie
*
Posts: 22


View Profile
« Reply #35 on: November 13, 2009, 12:38:44 AM »

Probably is, I had already purchased http://www.sparkfun.com/commerce/product_info.php?products_id=277 a while ago when I got the module.
Not for sure I want to spend another $80 on a breakout board.
Logged
fesp
Newbie
*
Posts: 22


View Profile
« Reply #36 on: December 21, 2009, 09:06:13 AM »

>> We already have that class but it is not exposed to end user. we will expose it in next release.

A bit of an old topic, but for this purpose I'd really like to create my own (virtual) serial port. What is the base class I can use?
Logged
support
Administrator
Sr. Member
*****
Posts: 490


View Profile
« Reply #37 on: December 21, 2009, 11:11:53 AM »

GHIElectronics.System.Net.IPacketTransport Interface
Logged
Pages: 1 [2]  All
  Print  
 
Jump to: