element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Huawei Mg323 UART Interface
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 10 replies
  • Subscribers 303 subscribers
  • Views 1291 views
  • Users 0 members are here
  • mg323
  • uart
  • mg232
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Huawei Mg323 UART Interface

Former Member
Former Member over 10 years ago

Hi,

 

I have a Mg323-b,but I don't succeed in communicating with it in UART.

 

I'm using a FT230X in order to communicate via UART (though it does not support for DTR/DSR). I've allready used this FT230X to talk to a wide range of UART devices without ever a problem like this one.

 

When I power  the Mg323 module I get on UART1 "IIII 0XFF 0XFF 0XFF 0XFF ^SYSSTART" and "^SHUTDOWN" When I power it down.But other than that it does not respond to any command like "AT".

 

On UART0 I don't get anything, and it does not respond to anything either.

 

I've tried almost all possible UART configuration .

 

It seems that some people do succeed in talking to the module:

Huawei Mg323 Send SMS text problem

 

Any Clue?  (A particular handshake/init sequence needed? particular UART Config? Anything particular which could prevent UART1 or UART0 to work? Anything that is required for it to work, but that  is not so striaghtforward?)

 

Thank's in advence.

Pierre.

  • Sign in to reply
  • Cancel
  • amgalbu
    amgalbu over 10 years ago

    What do you use as a host?
    Is it possible that you send extra characters after the AT command?

    You have to send only AT<CR> because any other character after the CR typically stops the executon of previous command

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to amgalbu

    Thanks for the answer!

     

    I use a computer under Gnu/Linux, with GTKterm in hexadecimal mode.

     

    So I can check precisely what is sent that is: "41 54 0D" What is <CR> is it 0D?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • amgalbu
    amgalbu over 10 years ago in reply to Former Member

    Hi

    Yes OD is the hex representation of the <CR> (Carriage return) character

    I searched for mg323 on the web, and I found out this code refers to an SOC. What is the code of the board the Mg323-b is soldered on?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Ps: My current config is 115200-8-N-1, but i've tried many without success.

    What default config should be used to talk to the module the first time?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to amgalbu

    Custom Board.

     

    Though I seem to have followed all specifications given in hardware design guide. (I'm used to design way more complex boards.)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • amgalbu
    amgalbu over 10 years ago in reply to Former Member

    You mean you built the board? Do you have a schematic?

    I look quickly through the datasheet.

    UART0 is for debug, so it's correct you get nothing

    UART1 is the interface to use. It supports variable baudrate. The default is 115200,0dd,8,1

    Take a look here for more details

    http://download-c.huawei.com/download/downloadCenter?downloadId=14153

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to amgalbu

    Thanks for the info and the document concerning default values. Though in the document they seem to say that default is 8 bits data, 1 bit stop, no parity.

     

    Here is the schematic I used

    image

    I connected a battery Beetween P2.1 and P2.5, a pushbutton between P2.4 and P2.5 to power it on, and a led between P6.1 and ground which blinks at 1 hz when I power the module on, which is normal.

     

    Concerning UART0 do you mean that in order to use it, it must be activated softwarly trhough UART1 before?

     

    A problem that I could have is that my FT230X AUART To USB converter does not support DTR/DSR. On top of that I've noticed that if I let them unplugged, DTR is up (probably a pull up resistor), But DSR is low! Should it mean the module is not ready to communicate?

     

    [EDIT] I also Connected a 200UF capacitor between VCoin and ground.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    I feel a litlle bit shamefull about it, but I just noticed that There was an obvious soldering problem on TX. Sorry for bothering you.

     

     

    Though I still have something strange: the modules keeps sending the same thing over and over again. I don't know if it is normal.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • amgalbu
    amgalbu over 10 years ago in reply to Former Member

    Don't worry! you are always welcome and I'm happy you worked out this issue!

    What is the module sending out?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to amgalbu

    Yes Thank you.

    Now everything is working fine (I had a last little solder bridge).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube