How to connect Reliance netconnect +(Huawei EC156) in ubuntu

I tried to connect a new reliance netconnect in ubuntu…i used the usual wvdial method but it was a failure…when i tried to connect using wvdial i got the error message that /dev/ttyUSB0 does not exist…



i tried lsusb and dmesg…This were the outputs





dmesg output



on dmesg output i can see the data card is detected as cdrom device…

from lsusb output i got the product and vendor id of the data card 12d1:1505

cd  /etc/usb_modeswitch.d

Create a new config file named 12d1:1505

copy and paste the following content to the file

DefaultVendor= 0x12d1 

Save the file..Then issue the following command from /etc/usb_modeswitch.d

sudo usb_modeswitch -I -W -c 12d1\:1505

you can see the device get detected and can see a description like this

USB description data (for identification)
Product: HUAWEI Mobile
Serial No.: �������������������
Looking for active driver …
OK, driver found (“usb-storage”)
OK, driver “usb-storage” detached
Setting up communication with interface 0 …
Using endpoint 0x08 for message sending …
Trying to send message 1 to endpoint 0x08 …
OK, message successfully sent
Resetting response endpoint 0x87
Resetting message endpoint 0x08
USB error: could not clear/halt ep 8: Broken pipe
Error resetting endpoint: -32
USB error: could not release intf 0: No such device
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

After this try to connect using normal wvdial method or if its is configured it may connect automatically or try a restart it will fix it

Happy Hacking……. 🙂


How to fix Apache – “Could not reliably determine the server’s fully qualified domain name, using for ServerName” Error on Ubuntu

How to fix Apache – “Could not reliably determine the server’s fully qualified domain name, using for ServerName” Error on Ubuntu




edit the /etc/apache2/httpd.cong

$sudo vim /etc/apache2/httpd.conf

usually it will be blank…add the following to httpd.conf

ServerName localhost

if httpd.conf contains some data then add at the top like this…

ServerName localhost
<Directory /var/www>
Options Indexes Includes FollowSymLinks MultiViews
#AllowOverride AuthConfig
AllowOverride all
Order allow,deny
Allow from all

Now restart apache the problem is fixed 🙂

$sudo /etc/init.d/apache2 restart

STM32F4Discovery first IO Toggle example

Now we are trying to run our first led blinking example..

cd  ~/stm32build/stlink_texane/

Download the examples


Unzip it


Download the Make files


Unzip the make files


cd ~/stm32build/stlink_texane/STM32F4DISCOVERY_Makefiles

Copy the Makefile to Example directory

cp Makefile.IO_Toggle ~/stm32build/stlink_texane/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/IO_Toggle/

cd ~/stm32build/stlink_texane/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/IO_Toggle

Build the project

make -f Makefile.IO_Toggle

flash the program to STM32F4Discovery board

st-flash write IO_Toggle.bin 0x8000000

Press reset button we can see LED’s flashing…. 🙂