How to avoid unnecessary NULL characters between UART transmission?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to avoid unnecessary NULL characters between UART transmission?

ソリューションへジャンプ
1,314件の閲覧回数
athmesh_n
Contributor IV

When datas are  send through UART RS485 lot of NULL characters which are not part of Datas come in between. How can we avoid unnecessary and random NULL characters coming in-between lines.

This is the required data:

1image.png

But the data we are getting is :

image.png

ラベル(1)
0 件の賞賛
返信
1 解決策
1,216件の閲覧回数
athmesh_n
Contributor IV

Hi kerryzhou‌,

Thanks for your fast response,

LPC1517, and the issue has been solved because the sector contains 256 bytes, I wrote 128 bytes. so the rest was filled by NULL characters

Thanks and Regards,

Athmesh Nandakumar

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,216件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi ATHMESH NANDAKUMAR,

     Please tell us what the LPC chip you are using? Please let me know the part number.

     You said, the UART send out  a lot of NULL, do you check your code, is it really sent by the LPC chip?

    If yes, then you can control your code, don't send that 0X00, this situation mainly your code problem.

      Next time, when you create the question, please let us know the chip part number at first, it will be useful to the question analysis.

Wish it helps you!

If you still have question about it, please kindly let me know.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,217件の閲覧回数
athmesh_n
Contributor IV

Hi kerryzhou‌,

Thanks for your fast response,

LPC1517, and the issue has been solved because the sector contains 256 bytes, I wrote 128 bytes. so the rest was filled by NULL characters

Thanks and Regards,

Athmesh Nandakumar

0 件の賞賛
返信