2012年2月26日日曜日

STM8SにBLUETOOTHをつないでみました

在宅勤務中なので、STM8Sで遊ぶのがおろそかになっていました.ひさしぶりにSTM8Sのページをupdateしました.

今回は、BLUETOOTHのCOM PORT機能でSTM8S-DISCOVERYとPCを繋ぐ、というものです.
やってみたら、おおっ繋がる繋がる.便利なものですね.

ただし、USAから個人輸入したBLUETOOTH基板なのでこれは電波法違反になりますので、実験のみに留めなくてはいけませんです.技術適合基準とかいう認証を得てない基板なのでね.みなさんも電波法違反は慎みましょう.

なんつって、秋葉で買った無線マウスなんて技適マークないですけど、これってお縄頂戴ってことですか???

ブロック図的にはこういう仕組みです.
基板外観はこうなります.右下の小さな基板がBLUETOOTH基板です.


BLUETOOTH基板を使ってみた感想

●STM8SのUARTのボーレートは115200bpsじゃないと動きませんでした.これはBLUETOOTH基板の固定仕様であるようです.したがって、BLUETOOTH基板によってはSTM8Sが9600bpsじゃないとダメっていうこともあると思います.

●BLUETOOTH基板の仕様に合わせて、STM8SのUARTの設定を、8bitのparityナシに変更しました.これ以外の設定では動きませんでした.

●terminal softのボーレートは、115200でも9600でもなんでもOKでした.BLUETOOTHドライバがボーレートをシカトしているようです.

●STM8SのCOM PORT経由でFLASHを焼く機能はちゃんと使えました.ただし、あらかじめBLUETOOTHを繋ぎっぱなしにしておく必要がありました.

●どのくらいの距離まで電波が届くかは実験してません.



=== STMのアフィリエイト始めました ===
STM32のwelcome-kitです.試用レポはいずれ...
 

20 件のコメント:

  1. こんばんは
    以前ブルーツースを津kったらでバイスドライバがUSB関係と喧嘩しまくって、ブッルーツース関連を禁止に設定して居ます。
    その後BW¥悦のブルーツースをかったのですが恐くてまだ手を入れていません。

    返信削除
  2. チョット酔っぱらって文字がデタラメになっているのに気が付いていませんでした。
    「使ったら」「別の」とよ読み替えて下さい。
    それでは失礼します。

    返信削除
  3. Hi everybody, here every one is sharing these kinds of knowledge, thus it's nice to read this webpage, and I used to pay a visit this weblog everyday.

    Also visit my weblog :: Best online backup services

    返信削除
  4. Hello colleagues, fastidious paragraph and good arguments commented here, I
    am genuinely enjoying by these.

    Here is my web blog Pure green coffee bean extract

    返信削除
  5. When I originally commented I clicked the "Notify me when new comments are added" checkbox and
    now each time a comment is added I get several e-mails with the same comment.
    Is there any way you can remove people from that service?
    Thanks!

    Feel free to visit my web blog :: beat making software

    返信削除
  6. I have read so many posts concerning the blogger lovers however this post is actually a fastidious piece of writing, keep it up.


    My website ... Handle Toddler Hitting

    返信削除
  7. Very good info. Lucky me I recently found your website by chance
    (stumbleupon). I've bookmarked it for later!

    Look at my web-site; free dish network

    返信削除
  8. First of all I would like to say wonderful blog! I had a quick
    question that I'd like to ask if you do not mind. I was curious to know how you center yourself and clear your head before writing. I have had a tough time clearing my mind in getting my thoughts out there. I do take pleasure in writing but it just seems like the first 10 to 15 minutes tend to be lost just trying to figure out how to begin. Any ideas or tips? Many thanks!

    Feel free to surf to my web blog - toddler hitting

    返信削除
  9. Howdy are using Wordpress for your blog platform?
    I'm new to the blog world but I'm trying to get started and create my own.
    Do you need any html coding expertise to make your own blog?
    Any help would be greatly appreciated!

    Here is my web page - How to Get Good Grades

    返信削除
  10. It's really a nice and helpful piece of information. I am glad that you just shared this useful info with us. Please stay us up to date like this. Thanks for sharing.

    Here is my web page: Stop Toddler Hitting

    返信削除
  11. I really like your blog.. very nice colors & theme.
    Did you create this website yourself or did you
    hire someone to do it for you? Plz answer back as I'm looking to create my own blog and would like to find out where u got this from. appreciate it

    Feel free to surf to my web site legal us poker sites

    返信削除
  12. An outstanding share! I have just forwarded
    this onto a friend who has been doing a little homework on this.
    And he actually bought me breakfast simply because I stumbled upon it for him.

    .. lol. So let me reword this.... Thanks for the meal!
    ! But yeah, thanks for spending time to discuss this matter here on your internet site.


    My web page how to play the ukulele

    返信削除
  13. When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get three emails with the same
    comment. Is there any way you can remove me from that service?
    Thanks a lot!

    Also visit my website :: Stop Toddler Hitting

    返信削除
  14. Great work! That is the kind of information that are
    meant to be shared across the web. Shame on the seek
    engines for now not positioning this put up higher! Come on over and seek advice from my site .
    Thank you =)

    Feel free to surf to my web page - Tips for Cold Calling

    返信削除
  15. I was able to find good advice from your articles.


    Have a look at my web blog; us poker sites

    返信削除
  16. Sweet blog! I found it while searching on Yahoo News. Do
    you have any suggestions on how to get listed
    in Yahoo News? I've been trying for a while but I never seem to get there! Appreciate it

    My blog post ... learn to play ukulele

    返信削除
  17. I've been surfing online more than three hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my view, if all site owners and bloggers made good content as you did, the internet will be a lot more useful than ever before.

    Look into my web page: http://www.youtube.com/watch?v=AHHFqUe6Akw

    返信削除
  18. Hi mates, how is everything, and what you would like to say regarding this article, in my view its actually
    awesome for me.

    My web-site - Panasonic VIERA TC-L47E50 Lowest Price

    返信削除
  19. Today, while I was at work, my cousin stole my iPad and tested to see if it
    can survive a twenty five foot drop, just so she can be a youtube sensation.
    My iPad is now broken and she has 83 views. I know this
    is completely off topic but I had to share
    it with someone!

    Here is my homepage: VIERA TC-L47E50 Lowest Price

    返信削除
  20. Keep on writing, great job!

    Here is my website ... TC-L47E50 Best Price

    返信削除