Bryan Tran

Forum Replies Created

Viewing 30 posts - 151 through 180 (of 200 total)
  • Author
    Posts
  • in reply to: Modem AT commands from C #4328
    Bryan Tran
    Moderator

    Hi Jim,

    Take a look at this sms-utils code and may by take out the serial port part http://git.multitech.net/cgi-bin/cgit.cgi.

    Regards,

    BT

    in reply to: Modem AT commands from C #4326
    Bryan Tran
    Moderator

    Hi Jim,

    Would you pls reboot your CDP and then ssh back into your CDP and type the following commands, post your output.

    microcom /dev/ttyUSB3[Enter]

    AT[Enter]

    ATI[Enter]

    AT+CSQ[Enter]

    AT+CREG?[Enter]

    AT+CPIN?[Enter]

    I am not very sure why you would get an “Error” message response after typed in AT[enter].

    The USB port will ignored the serial baud rate settings.

    Regards,

    BT

    in reply to: OCG-D power consumption? #4323
    Bryan Tran
    Moderator

    Hi,

    1. What are the typical power consumptions of the device (while being idle, transmitting/receiving data via 2G, etc)?

    Answer:

    http://www.multitech.net/developer/products/multiconnect-ocg/hardware/multiconnect-ocg-d/hardware-specifications-r1-0/

    2. Does it support any low-power modes?

    Answer:

    Yes. standby and mem mode.

    Ex:

    An example of how to put your MT100EOCG/MTCDP in a standby mode and wake it up using the serial port console (ttyS0).

    *Plug in your 3pin debug cable and at the prompt type:

    echo enabled > /sys/devices/platform/atmel_usart.0/tty/ttyS0/power/wakeup[Enter]

    *Enable ttyS0 port to wake up.

    echo standby > /sys/power/state[Enter]

    *Put the processor in stand by mode.

    Now, you can just hit a space bar or Enter key to wake it up.

    Another example, you can wake up using the rtc timer by typing at the prompt:

    echo “” > /sys/devices/platform/at91_rtt.0/rtc/rtc0/wakealarm[Enter]

    *Clear the value.

    echo “+30” > /sys/devices/platform/at91_rtt.0/rtc/rtc0/wakealarm[Enter]

    echo mem > /sys/power/state[Enter]

    *Put the processor in “mem” mode.

    *Now, the device will wake up after the timer is expired (30secs).

    3. According to the specification it has an ARM9 CPU – can anybody specify an exact make?

    Answer:

    AT91SAM9G20-CU

    4. Is it shipped with a schematic?

    Answer:

    No.

    Regards,

    BT

    in reply to: Modem AT commands from C #4324
    Bryan Tran
    Moderator

    Hi Jim,

    1. The correct port for the H4 is: /dev/ttyUSB3 and /dev/ttyUSB4.

    http://www.multitech.net/developer/products/multiconnect-ocg/hardware/multiconnect-ocg-d/accessing-hardware-interfaces/

    2. As a test, would you please ssh into the CDP device and issue the following command:

    microcom /dev/ttyUSB3 -s 115200[Enter]

    AT[Enter]

    Do you get any response ?

    *Note: If you do not see what you are typing, try: ATE1[Enter]

    If you do get response on the above command, then it likely there is something in your C program.

    Regards,

    BT

    in reply to: USB-Ethernet Adapter Support #4308
    Bryan Tran
    Moderator

    Hi Steven,

    Can you try to do: modprobe asix[Enter]

    See if it helps.

    Regards,

    BT

    in reply to: Mispelling in /etc/ppp/options result in device hanging #4254
    Bryan Tran
    Moderator

    Hi Lucas,

    When you go into the U-boot prompt using the 3pin serial debug cable. Do you see your Ethernet LED still lit up ? If so, then you can do as follow:

    a. Go to your Development PC machine and Type:

    – source env-oe.sh

    – bitbake corecdp-base-image.

    *Create a corecdp-base-image. Also, if you have the line uncommented: export TFTPBOOT_DIR=/tftpboot – in the file env-oe.sh, then you should have a soft link to the image in the tftpboot folder.

    b. Boot your OCG to the U-boot prompt and type: printenv[Enter]

    *This will list out the environment variables that currently set on the OCG.

    c. Look for:

    -ipaddr <–This should set to the ip address of the OCG

    -Serverip <–This should set to the IP address of your PC development machine.

    *You would want to have them in the same network.

    d. Type: run krb[Enter]

    *If you have a TFTP server set up on your development PC, then it would upload both: kernel and rootfs to your OCG.

    Regards,

    BT

    in reply to: Accessing 3G via Ethernet #4229
    Bryan Tran
    Moderator

    Hi Rashan,

    1. Create a new script named: nat_enable.sh on your OCG and put these commands in:

    #BT – Allow to have multiple PCs access the internet and allow forwarding rule

    #into our NAT table.

    iptables –table nat –append POSTROUTING –out-interface ppp0 -j MASQUERADE

    iptables –append FORWARD –in-interface eth0 -j ACCEPT

    #BT – Enable packet forwarding

    echo 1 > /proc/sys/net/ipv4/ip_forward

    2. Save it and then type: chmod +x nat_enable.sh

    3. Then type: ./nat_enable.sh

    *Run the nat_enable.sh file.

    Regards,

    BT

    in reply to: Re: Locked Out of the OCG-EV2 #4245
    Bryan Tran
    Moderator

    Hi Lucas,

    Do you have a Developer Board ? Then you can put the module back on the developer board and use 3pins serial debug cable or usb cable to talk to the box via minicom.

    Regards,

    BT

    in reply to: Accessing 3G via Ethernet #4226
    Bryan Tran
    Moderator

    Hi Rashan,

    I assumed you want to have a PC sitting behind the OCG and want to access to the internet via the OCG device from the PC.

    Basic set up is as follow:

    Notes: You can connect the ethernet port on the OCG to your PC machine and then ssh into the OCG to do the steps below.

    a. You need to know your model number along with the device port for your OCG, and then modify the file /etc/ppp/options to include this info.

    http://www.multitech.net/developer/products/multiconnect-ocg/hardware/multiconnect-ocg-d/accessing-hardware-interfaces/

    Note: Under Select tty device option, comment everything out other than your device port. And leave other stuff as is.

    b. You then need to modify either gsm_chat or cdma_chat file at /etc/ppp/peers/ depend on what modem you have (gsm or cdma modem)

    http://www.multitech.net/developer/products/multiconnect-ocg/applications/ppp-peers/

    Notes:

    i. For the gsm, you need to modify the apn only.

    AT+CGDCONT=1,”IP”,”internet” <–Only need to change “internet” to your apn. Your service provider should give you this info.

    ii. For the cdma, you do not need to do anything, as the default file is fine.

    c. Finally, issuing the command: pppd call gsm

    Or: pppd call cdma (Depend on what modem you have).

    d. Once connected, you can issue a ping to the internet:

    http://www.google.com

    If you are getting a reply then it is good to go.

    e. You then can setup a gateway IP address and DNS ip address on the PC. Bring up your web browser on the PC and you should be able to access the internet.

    f. If you still can not get it to work, I suggest go to http://www.multitech.com -> support and open up a ticket for further help.

    Regards,

    BT

    in reply to: C++ Example #4187
    Bryan Tran
    Moderator

    Hi Gene,

    1. I downloaded the sample code and open it up fine in Visual C++ 2008 Express Edition. I did not have any problem.

    2. You may want to try:

    a. Go to folder: FaxFinderCplus and open up the FaxFinderCplus source file using any editor. Do select All and select copy. We want to copy the whole file content.

    b. Bring up your Visual C++ 2008 Express Edition and do: File -> New -> Project -> CLR -> CLR Console Application.

    Enter your name.

    Enter your solution name.

    Paste the content into the new .cpp file.

    Do the ‘build’ and ‘start without debugging’.

    Regards,

    BT

    in reply to: Re: Beginner Tutorials or Code Snippets? #3878
    Bryan Tran
    Moderator

    Hi Rich,

    Sorry, I am in process of rework the sample code. However, we currently released a software called – MultiConnect SDK.


    The MultiConnect SDK provides developers with most of the things necessary to write a robust machine-to-machine (M2M) application. If you want to build an M2M application, but you are not an embedded

    Linux or C developer, you can use the MultiConnect SDK, written in the Java programming language, to

    quickly create your application. Java was chosen for its strong presence in the marketplace and academia. Java also has higher productivity rates compared to lower level languages like C.


    *You need to fill out an MultiConnectâ„¢ OCG Open Communications Gateway Software Developer Kit Request Form at:

    http://www.multitech.com/en_US/TOOLS/Forms/DynamicForms/EnterData.aspx?ID=32

    Regards,

    BT

    in reply to: MTSMC-G2 GPRS #4122
    Bryan Tran
    Moderator

    Hi Nilesh,

    I am not sure if I understanding the question correctly. But:

    1. The GPS receiver is accessible at 9600 baud on /dev/ttyS3.

    http://www.multitech.net/developer/products/multiconnect-ocg/hardware/multiconnect-ocg-d/accessing-hardware-interfaces/

    2. You can also send the GPS data from /dev/ttyS3 to a remote TCP server by:

    a. Make a ppp connection.

    b. Writing a TCP client application (running on the MTCDP-G2) that will connect to your remote TCP server via the ppp connection, then read the GPS data on the /dev/ttyS3 and send it to the remote TCP server.

    Regards,

    BT

    in reply to: Using Web Service API to send faxes #4060
    Bryan Tran
    Moderator

    Hi Gene,

    We have several code samples in different programing language for how to send a fax using Web Service API.

    https://webfiles.multitech.com/engineering/sample-code/fax-finder/

    Also, install Wire Shark to look at the IP packets in case you are running into a problem.

    Regards,

    BT

    in reply to: corecdp 2.0.2 on Debian Wheezy gcc fail to build #4045
    Bryan Tran
    Moderator

    Hi Matt,

    Pls, try Debian 5/6 because this has been tested here.

    Regards

    BT

    in reply to: Re: multitech MTCBA-N1-EN2 #4026
    Bryan Tran
    Moderator

    Hi Yann,

    1. What is the serial number of the unit ? The model that you post is not correct.

    2. You mentioned:


    The IP adress can communicate during the first hour after the power on but after it doesn’t work.


    *Which IP address do you referring to ? Ethernet IP or WAN IP address ? I am assuming the WAN ip address but I am not sure.

    3. If it is WAN ip address, you can try:

    a. Under PPP -> Idle Time out -> 0 secs.

    b. PPP -> ICMP/TCP Keep Alive Check -> Keep Alive Check -> Enable. Keep Alive Type -> ICMP -> Host -> http://www.google.com -> Port 80.

    4. PPP -> Modem Configuration -> Init String2 -> AT+CSQ and InitString3 -> AT+CREG?. These will tell if you are having a good signal or not and whether you are registering to the Home/Roaming Network..etc..

    5. You can also enable Syslog and look at the log to see if there is any error..etc..

    6. Here is the link to our manual – http://www.multitech.com/en_US/DOCUMENTS/Families/MultiModemrCell/manuals.aspx

    Regards,

    BT

    in reply to: Re: Ethernet network access && cell network access #4014
    Bryan Tran
    Moderator

    Hi Ben,

    I am assuming that you want to have a PC1 that is sitting behind your OCG (private network) and another PC2 is at the remote with a Public IP address. From a PC1, you want to Putty into a remote PC2 and vice versa.

    This can be accomplished by:

    a. Setting up your OCG to establish a ppp connection to the internet.

    http://www.multitech.net/developer/products/multiconnect-ocg/applications/ppp-peers/

    b. Configure your OCG act as a router/firewall.

    http://www.multitech.net/developer/products/multiconnect-ocg/applications/ppp-masq/

    c. Setup a DNAT rule on your OCG to allow port 22/anyport from PC2 (outside world) access your internal PC.

    A quick search online give me the following link:

    http://www.linuxtopia.org/Linux_Firewall_iptables/x4013.html

    Regards,

    BT

    in reply to: Re: How to specify the usb device? #4007
    Bryan Tran
    Moderator

    Hi James,

    May be you could try to write a udev rules. Here is a link to it http://reactivated.net/writing_udev_rules.html. Also, There are some examples on this forum and plenty of others online.

    Regards,

    BT

    in reply to: pppd Troubles – what to dododoo? #3992
    Bryan Tran
    Moderator

    Hi ConRad,

    Can you try to dial the number as follow:

    *99#

    If it is still not working, try this number:

    *99*1#

    And see if it helps

    Regards,

    BT

    in reply to: Re: Internet Connectivity via Ethernet? #3924
    Bryan Tran
    Moderator

    Hi Philip,

    Sorry for late reply. I am not sure if I understanding your question correctly. But if you are asking to get Internet access using Ethernet, you can just set the default gateway on eth0 to an IP on you network that routes out to the Internet.

    This would be in the /etc/network/interfaces file. The syntax is standard to Debian/Ubuntu Linux distributions and you would just have add a line:

    gateway x.x.x.x

    where x.x.x.x is the IP of the gateway.

    You would also have to setup DNS by putting an entry /etc/resolv.conf.

    Note that that file goes away on reboot with the default firmware. This could be changed by deleting the link for /etc/resolv.conf and making new file. Or by putting the file in /var/config and changing /etc/resolv.conf to be a link to the file in /var/config.

    Regards,

    BT

    in reply to: Re: Getting started with the OCG #3973
    Bryan Tran
    Moderator
    in reply to: Cannot Compile corecdp-2.0.2 #3965
    Bryan Tran
    Moderator

    Hi Dawid,

    What version of your Ubuntu ? If your Ubuntu version is not 10.04 LTS, pls try Ubuntu 10.04 LTS or 11.04 LTS ? These are tested here and known to work.

    The Ubuntu 11.10 is not currently supported.

    Regards,

    BT

    in reply to: Re: lighttpd setup help #3911
    Bryan Tran
    Moderator

    Hi,

    1. bitbake corecdp-webserver-image.

    2. Upload the image to your CDP device.

    3. Go to /etc/ and modify the lighttdp.conf as follow:

    a. Find the section: ‘server.modules’ and uncommented the line: “mod_fastcgi”.

    b. Find the section: ‘fastcgi.server’ and uncommented the whole section as follow:


    fastcgi.server = ( “.php” =>

    ( “localhost” =>

    (

    “socket” => “/tmp/php-fastcgi.socket”,

    “bin-path” => “/usr/bin/php-cgi”

    )

    )

    )


    Note: You also need to change the “bin-path” to /usr/bin/php-cgi

    4. Save and restart your CDP device.

    5. Once it booting back up, go to /www/pages/ and create a php file called: info.php and put in the following content:

    <?php

    phpinfo();

    ?>

    6. Save the file and then do: chmod 755 info.php.

    7. Web into your CDP device at: http://192.168.2.1/info.php (If you are using the default IP). You should see the web pages php info.

    Regards,

    BT

    in reply to: Re: Beginner Tutorials or Code Snippets? #3875
    Bryan Tran
    Moderator

    Hello,

    1. Thanks! I’ll try it out.

    *Let me know if you are able to get it to work on your device and give out your thoughts in regarding whether – The code is helpful to the end user or not..etc..

    2. Do you know if there are any power consumption considerations or other drawbacks that would be good to know about when using Java?

    *Not that I know of.

    3. Also, when I ssh to the device I can’t run ls on it – or at least it doesn’t return any directory/file listings. Is this normal?

    *Can you try to do the command: pwd[Enter]. This will tell where you are at in the file system. I noticed that, when you first ssh into the box, it will placed you in the /home/root/ folder and if you do: ls[Enter]. It will displaying as an empty folder.

    If this is the case, you can do: cd .. a couple of times to back out to the top level file system. Then do: ls again and see if you are seeing all the system files?

    Regards,

    BT

    in reply to: Re: Beginner Tutorials or Code Snippets? #3873
    Bryan Tran
    Moderator

    Hi,

    Here is the link to a sample code that I have written in java language for the CDP.

    https://webfiles.multitech.com/engineering/sample-code/mtcdp/Java/

    It allows:

    a. Act as a NAT router.

    b. Send GPS data to a remote TCP server.

    c. Send data from the serial to the remote TCP server.

    d. User configuration via Web interface. (RMI method).

    Notes: If you already had the image that included the java and lighttdp Web server. Then you do not need to do step 1 and 2 listed in the installation.pdf file.

    This is not really a tutorial. But it is a full working source code with comments and docs. Just tested today again 🙂

    Let me know if this is help.

    Regards,

    BT

    in reply to: OCG -MTCDP-H4: Problem accessing GSM and GPS information #3696
    Bryan Tran
    Moderator

    Hi Alok,

    1. Accessing the GPS:

    a. At the # prompt: type: microcom /dev/ttyS3[Enter]

    *You should see the GPS data displaying.

    2. Accessing the GSM or the radio:

    a. At the # prompt: type: microcom /dev/ttyUSB3 or /dev/ttyUSB4[Enter]

    *Then type: AT[Enter]

    *You should see an OK in response.

    To exit out the microcom: type: Ctrl + x.

    3. Connect the USB cable one end to the USB device port on the CDP and other end into your Ubuntu machine. Run the minicom on your Ubuntu machine and make sure you set the minicom to the right USB port.

    Also, set the serial baud rate to: 115200, 8N1 and no flow control.

    Power off and back on at the CDP, you should see a lot of messages scrolling up on your Minicom console. Then it will give you a CDP login prompt. Log in and perform the above two steps to look at GPS data and type AT command or send SMS message manually to the radio or GSM modem.

    Regards,

    BT

    in reply to: Re: php GET POST not working #3644
    Bryan Tran
    Moderator

    Rishi,

    Can post your content of the html and php file that you are having a problem with and along with the file names and where are these files residing ?

    Regards,

    BT

    in reply to: Re: step-by-step instructions for enabling php #3628
    Bryan Tran
    Moderator

    Hi James,

    1. bitbake corecdp-webserver-image.

    2. Upload the image to your CDP device.

    3. Go to /etc/ and modify the lighttdp.conf as follow:

    a. Find the section: ‘server.modules’ and uncommented the line: “mod_fastcgi”.

    b. Find the section: ‘fastcgi.server’ and uncommented the whole section as follow:


    fastcgi.server = ( “.php” =>

    ( “localhost” =>

    (

    “socket” => “/tmp/php-fastcgi.socket”,

    “bin-path” => “/usr/bin/php-cgi”

    )

    )

    )


    Note: You also need to change the “bin-path” to /usr/bin/php-cgi

    4. Save and restart your CDP device.

    5. Once it booting back up, go to /www/pages/ and create a php file called: info.php and put in the following content:

    <?php

    phpinfo();

    ?>

    6. Save the file and then do: chmod 755 info.php.

    7. Web into your CDP device at: http://192.168.2.1/info.php (If you are using the default IP). You should see the web pages php info.

    Regards,

    BT

    in reply to: How to upgrade to php-5.3.0? #3588
    Bryan Tran
    Moderator
    in reply to: How to upgrade to php-5.3.0? #3586
    Bryan Tran
    Moderator

    JM,

    Issue the following command on your development machine:

    sudo rm /home/jm/.ssh/known_hosts

    Then try to ssh back into your device again. It should work.

    Regards,

    BT

    in reply to: How to upgrade to php-5.3.0? #3584
    Bryan Tran
    Moderator

    Hi JM,

    BTW, When you are issuing the mv command, make sure you separate the source and the destination file with a space. For example,

    mv source destination.

    Note: There is a space between the source and destination.

    Regards,

    BT

Viewing 30 posts - 151 through 180 (of 200 total)