Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
Ivan
Posts: 14
Joined: 22 Jul 2016, 09:39

Huawei E5530s-2 / raspberry

Post by Ivan » 14 Aug 2016, 14:05

I bought me a new modem : huawei 5330s-2.
And I ty (again) to setup a system.
But with no luch, again....

Let me show you screen shots.

Code: Select all

pi@SmsMedPi:~ $ lsusb
Bus 001 Device 005: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 001 Device 004: ID 1c4f:0032 SiGma Micro
Bus 001 Device 007: ID 12d1:14db Huawei Technologies Co., Ltd.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@SmsMedPi:~ $
Then I try

Code: Select all

pi@SmsMedPi:~ $ dmesg | grep ttyUSB
pi@SmsMedPi:~ $
odd.....

an other command

Code: Select all

Bus 001 Device 007: ID 12d1:14db Huawei Technologies Co., Ltd.
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x14db
  bcdDevice            1.02
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           94
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      6 Ethernet Networking
      bInterfaceProtocol      0
      iInterface              5
      CDC Header:
        bcdCDC               1.10
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1
      CDC Ethernet:
        iMacAddress                      7 (??)
        bmEthernetStatistics    0x00000000
        wMaxSegmentSize               1514
        wNumberMCFilters            0x0000
        bNumberPowerFilters              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               9
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      6
      bInterfaceProtocol      0
      iInterface              6
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
after

Code: Select all

pi@SmsMedPi:~ $ sudo usb_modeswitch -J -v 12d1 -p 1f01
Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 006 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI Mobile
  Serial No.: FFFFFFFFFFFFFFFF
-------------------------
Using standard Huawei switching message
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 1 (CSW) ...
 Response successfully read (13 bytes), status 0
Reset response endpoint 0x81
Reset message endpoint 0x01
-> Run lsusb to note any changes. Bye!
Looks verry promising.

And the test result

Code: Select all

pi@SmsMedPi:~ $ echo "All your base are belong to us" | gammu-smsd-inject TEXT [i]My peronal phone[/i]
gammu-smsd-inject[1889]: Created outbox message OUTC20160814_140115_00_[i]My peronal phone[/i]_sms0.smsbackup
Written message with ID /home/pi/Gammu/outbox/OUTC20160814_140115_00_[i]My peronal phone[/i]_sms0.smsbackup
pi@SmsMedPi:~ $
THis message

Code: Select all

; This file format was designed for Gammu and is compatible with Gammu+
; See <http://www.gammu.org> for more info
; Saved 20160814T140244 (zo 14 aug 2016 14:02:44 )

[SMSBackup000]
; All your base are belong to us
PDU = Submit
DateTime = 20160814T140244Z
State = Sent
Number = "[i]My peronal phone[/i]"
NumberUnicode = 0030003400390035003200320036003200320032
Name = ""
NameUnicode =
Text00 = 0041006C006C00200079006F00750072002000620061007300650020006100720065002000620065006C006F006E006700200074006F002000750073
Coding = Default_No_Compression
Folder = 1
Length = 30
Class = -1
ReplySMSC = False
RejectDuplicates = False
ReplaceMessage = 0
MessageReference = 0
Truly I don't know anymore....
Can sombody help me.
What do I wrong???

Ivan

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawei E5530s-2 / raspberry

Post by LOM » 14 Aug 2016, 15:44

Ivan wrote:I bought me a new modem : huawei 5330s-2.
What do I wrong???

Ivan
You bought a Huawei MiFi router and they don't have serial interfaces, you can only do ethernet tethering on such a device.
It will show up as an ethernet port in your raspberry pi.

Ivan
Posts: 14
Joined: 22 Jul 2016, 09:39

Re: Huawei E5530s-2 / raspberry

Post by Ivan » 14 Aug 2016, 16:48

You bought a Huawei MiFi router and they don't have serial interfaces, you can only do ethernet tethering on such a device.
It will show up as an ethernet port in your raspberry pi.
I have a laptop with ubuntu 16.04, and from there I can send/recieve sms, there is phonboook aswell,
And, as you say, a mifi device. Thats true.

All the function work via the webpage of the mifi.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawei E5530s-2 / raspberry

Post by LOM » 14 Aug 2016, 17:18

Ivan wrote: All the function work via the webpage of the mifi.
and so they will also do in your raspberry pi.
I don't think Gammu has support for that though, it can afaik only work via a serial dial-up interface which this mifi device doesn't have any of.

Ivan
Posts: 14
Joined: 22 Jul 2016, 09:39

Re: Huawei E5530s-2 / raspberry

Post by Ivan » 14 Aug 2016, 17:50

Neither do I think.

My previous one is

Manufacturer: Option N.V.
Product: Globesurferer HSDPA Modem
Serial No.: S2397B429T
IMEI= 356237011589658

but that doesnt work with one particular (I live in Belgium) => Base.
It doenst work with a Telenet Card....

Would you know the reason, or better a sollution for that "annoying" prob?

I have to take medicine an regular times, and would love to do that via SMS.

Ivan

Ivan
Posts: 14
Joined: 22 Jul 2016, 09:39

Re: Huawei E5530s-2 / raspberry

Post by Ivan » 15 Aug 2016, 08:19

That said,
I have a
samsung III mini
Windows 7 phone(duh, it was a gift from a former ceo)
Huawei ascend mate 7
Would it be possible to send sms?

'cause with my Globetrotter I doesn't seems to work due a one particular provider.

I have 5 gsm-lines (almost) for free...
And none of them can't be used.
Unless I by an other (data-)simcard WITH another abbo...

I'm desperate
Ivan

Ivan
Posts: 14
Joined: 22 Jul 2016, 09:39

Re: Huawei E5530s-2 / raspberry

Post by Ivan » 15 Aug 2016, 10:00

Maybe I'm crossing a line..

Suppose that we are in front of a door.
And I don't know such a door.
Could you told me is this door is closed or not?
I don't ask for a key, or any other way to open this door.

I ask this question because It works with ne provider, and not wit the other.


Thanks in advance

Still desperate
Ivan

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Huawei E5530s-2 / raspberry

Post by Josh » 15 Aug 2016, 11:12

It's a bit confusing what you want to do exactly, and on which system ...

The Huawei Mifi router can be accessed by web browser but not by Gammu because that program needs a serial modem port which can understand "AT commands".

Other modems like the Globetrotter can be accessed by serial access so they might work with Gammu. The problem is likely not the provider but rather the modem.

Ivan
Posts: 14
Joined: 22 Jul 2016, 09:39

Re: Huawei E5530s-2 / raspberry

Post by Ivan » 15 Aug 2016, 11:55

Let me explain my "problem"
Ihave to take medicne, on time.

My goal was to use a raspberry and via crontp send me a sms.
That workes like a charm, really.
I'm in company, getting a sms, taken medicine.

The dongle is old, 2007 sommething.
I bought me a pay and go card.

Now I have 5 mobile numers, due to an action of my provider.
And Endless sms.

tried with the new card, nothing.
With or without Pin code...

Reinstall raspi, jessie, no luck...

I live in Belgium.

The dongle is from Mobistar;
The working card is from Base
And the not workng card is from Telenet.

So, I tought I by myself a new one Huawei 5330S-2
from a good webshop. Nothing exotic.

I called to se if it works with linux.
YES.


Now I now its werkwith via webpage...
With all the sims that I have...

Thanks for even read this long explanation.

Ivan

ps, now I cannot send anything anymore ...
Not with the privious working setup.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Huawei E5530s-2 / raspberry

Post by Josh » 15 Aug 2016, 16:33

So you have tried the new SIM card from Telenet in your old modem (Mobicom), and it does not work when using your unchanged old setup. It used to work with your old SIM card.

Is that correct?

Ivan
Posts: 14
Joined: 22 Jul 2016, 09:39

Re: Huawei E5530s-2 / raspberry

Post by Ivan » 15 Aug 2016, 19:09

Josh wrote:So you have tried the new SIM card from Telenet in your old modem (Mobicom), and it does not work when using your unchanged old setup. It used to work with your old SIM card.

Is that correct?
Thats correct.
First working sim card (Base)
Not working simcard) telenet.


BUT, I put the working the sim card (Base) in a phone.
To compare the settings

I recieved soms sms from proider Base (the working one)
And now My first card sim card doesn't work anymore, bummer..

Somethimes = "if it works, don't fix it"...


Ivan.

Ivan
Posts: 14
Joined: 22 Jul 2016, 09:39

Re: Huawei E5530s-2 / raspberry

Post by Ivan » 16 Aug 2016, 16:50

I dropped the Huawei - MIFI as that is a router, ... Good on holliday.
IK returned tho my option Option N.V. Globetrotter HSDPA Modem
I installed three programm's
1. Gammu
2. Gammu-smsd
3. wvdial


Gammu
here is the config file, as discribed in the /etc/gammurc

Code: Select all

# This is a generated gammurc file.
# It was generated by Gammu configurator 0.4

# In Unix/Linux  : copy it into your home directory and name it .gammurc
#                  or into /etc and name it gammurc
# In Win32       : copy it into directory with Gammu.exe and name gammurc

# Port           : in Windows/DOS: "com*:",
#                  (instead of "*" please put "1", "2", etc.)
#                  in other (Linux/Unix) "/dev/ttyS%"
#                                     or "/dev/ircomm%" ("irda" connection)
#                  (instead of "%" please put "0", "1", "2", etc.)
# Model          : use only, when Gammu doesn't recognize your phone model.
#                  Put it here. Example values: "6110", "6150", "6210", "8210"
# Connection     : type of connection. Use "fbus" or "mbus" or "dlr3" or
#                  "irda" (Infrared over sockets) or "infrared" (DirectIR)
#                  or "at19200" (AT commands on 19200, 8 bits, None parity,
#                  1 stop bit, no flow control) or "at115200" (AT commands on
#                  115200, 8 bits, None parity, 1 stop bit, no flow control)
#                  or "atblue" (AT over BlueTooth) or "dlr3blue" (FBUS
#                  over BlueTooth)
# SynchronizeTime: if you want to set time from computer to phone during
#                  starting connection. Do not rather use this option when want
#                  to reset phone during connection (in some phones need to
#                  set time again after restart)
# Logfile        : Use, when want to have logfile from communication.
# Logformat      : What debug info and format should be used:
#                  "nothing" - no debug level, "text" - transmission dump in
#                  text format, "textall" - all possible info in text format,
#                  "errors"  - errors in text format, "binary" - transmission
#                  dump in binary format
# Use_Locking    : under Unix/Linux use "yes", if want to lock used device
#                  to prevent using it by other applications
# GammuLoc       : name of localisation file


[entersecuritycode]
# pin = 9675

[gammu]

#[entersecuritycode]
# pin = 9675


port = /dev/ttyUSB0
;model =
connection = at19200
;synchronizetime = yes
;logfile =
;logformat = nothing
;use_locking =
;gammuloc =
Remark that the pincode of my sim is as comment #

Gammu-smsd

Code: Select all

# Configuration file for Gammu SMS Daemon

# Gammu library configuration, see gammurc(5)
[gammu]
# Please configure this!
port = /dev/ttyUSB0
connection = at19200
# pin = 9675
# Debugging
# logformat = textall

# SMSD configuration, see gammu-smsdrc(5)
[smsd]

service = files
logfile = syslog
RunOnReceive  = /home/pi/Gammu/hello.sh
# Increase for debugging information
debuglevel = 10
PIN = 9675


# Paths where messages are stored
inboxpath = /home/pi/Gammu/inbox/
outboxpath = /home/pi/Gammu/outbox/
sentsmspath = /home/pi/Gammu/sent/
errorsmspath = /home/pi/Gammu/error/
Remark, here is the pincode

wvdialconf

Code: Select all

root@SmsMedPi:/etc# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: Option N.V.
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB3<*1>: ATQ0 V1 E1 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB3<*1>: Modem Identifier: ATI -- Manufacturer: Option N.V.
ttyUSB3<*1>: Speed 9600: AT -- OK
ttyUSB3<*1>: Max speed is 9600; that should be safe.
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB1.
Modem configuration written to /etc/wvdial.conf.
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB3<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
But it doesn't work.

I get in the /Gammu/error folder

Code: Select all

; This file format was designed for Gammu and is compatible with Gammu+
; See <http://www.gammu.org> for more info
; Saved 20160816T140123 (di 16 aug 2016 14:01:23 )

[SMSBackup000]
; All your base are belong to us
PDU = Submit
DateTime = 20160816T140123Z
State = Sent
Number = "0CelPhone2"
NumberUnicode = 0030003400390035003200320036003200320032
Name = ""
NameUnicode = 
Text00 = 0041006C006C00200079006F00750072002000620061007300650020006100720065002000620065006C006F006E006700200074006F002000750073
Coding = Default_No_Compression
Folder = 1
Length = 30
Class = -1
ReplySMSC = False
RejectDuplicates = False
ReplaceMessage = 0
MessageReference = 0
Gammu-detect

Code: Select all

root@SmsMedPi:/etc# gammu-detect                                                ; Configuration file generated by gammu-detect.
; Please check The Gammu Manual for more information.

[gammu]
device = /dev/ttyUSB1
name = Phone on USB serial port Option_N.V. Globetrotter_HSDPA_Modem
connection = at

[gammu1]
device = /dev/ttyUSB2
name = Phone on USB serial port Option_N.V. Globetrotter_HSDPA_Modem
connection = at

[gammu2]
device = /dev/ttyUSB3
name = Phone on USB serial port Option_N.V. Globetrotter_HSDPA_Modem
connection = at

opening socket: Onjuist apparaat

Code: Select all

root@SmsMedPi:/etc# gammu --identify
Error opening device, it doesn't exist.


Would somebodybe so kind to sort me out?
Most greatfull
Ivan

pentius
Posts: 5
Joined: 17 Aug 2016, 21:40

Re: Huawei E5530s-2 / raspberry

Post by pentius » 18 Aug 2016, 13:43

LOM wrote:
Ivan wrote:I bought me a new modem : huawei 5330s-2.
What do I wrong???

Ivan
You bought a Huawei MiFi router and they don't have serial interfaces, you can only do ethernet tethering on such a device.
It will show up as an ethernet port in your raspberry pi.
I'm not sure, whether you're right. I own a Huawei E5330 and was able to access its COM ports on Windows.
I wrote down, how to switch the mode: https://devallthethings.wordpress.com/2 ... mode-html/

Post Reply