element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Raspberry Pi 3 und EnOcean Pi - Kompatibilitätsproblem
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 49 replies
  • Answers 10 answers
  • Subscribers 668 subscribers
  • Views 5297 views
  • Users 0 members are here
  • raspberry-pi3
  • raspberry_pi_space
  • enoceanpi
Related

Raspberry Pi 3 und EnOcean Pi - Kompatibilitätsproblem

robertheinze
robertheinze over 9 years ago

Als diese Woche der neue RPi3 rauskam, waren wir voller Ehrgeiz, künftig in unseren Systemen zu switchen.

Immerhin würde der RPi3 es ermöglichen auf einen USB Bluetooth Dongle zu verzichten und eine WiFi-Connectivity macht die Verbindung zu unseren Servern noch einfacher .

 

leider weit gefeht, denn das ganze funkt nur unter Verwendung der SDIOs und UART (durch Aktivierung der Devce Tree-Funktionwn, was dann jedoch den EnOceanPi, der ebenfalls /dev/ttyAMA0 (UART) verwendet, außer Betrieb setzt. Sprich, wir haben es noch nicht geschafft, EnOceanPi, WiFi und Bluetooth am RPi3 zum Laufen zu bringen.

 

Hat wer, der mehr Erfahrung mit HW-orientierter Programmierung hat eine Idee?

  • Sign in to reply
  • Cancel
  • fvan
    0 fvan over 9 years ago in reply to robertheinze

    Don't use ttyAMA0, use ttyS0, also in openHab.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robertheinze
    0 robertheinze over 9 years ago in reply to fvan

    I managed to have the EnOceanPi running on ttyAMA0 but the Bluetooth is unstable. Do you have EnOceanPi and BT active? BT points to ttyS0 in /lib/systemd/system/hciuart.service

     

    hciuart.service cannot always start ...

    After "sudo systemctl restart hciuart.service" it works!  But after a restart sometimes, the problem is there again - restart and it works ... :-(

     

    I do use both in /boot/config.txt

    dtoverlay=pi3-miniuart-bt-overlay

    force_turbo=1

     

    using device_tree=bcm2709-rpi-2-b.dtb

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to fvan

    Hello Frederick,

     

    Thanks for your posting but enocean pi doesn't functure....Can you help me please?

    I don't use OpenHab. I installed FHEM.

     

    Ok:

    - Make sure everything is up-to-date: sudo apt-get update && sudo apt-get upgrade && sudo rpi-update --> check

    - Enable Serial via raspi-config --> check

     

    Following i don't understand:

    - but edit /boot/cmdline.txt to disable serial console

    - Use /dev/ttyS0 instead of /dev/ttyAMA0

    What do you do and what do you write where?

     

    I read something about deactivating serial with RPI2, i tried everything i've read, but finally that doesn't work for me, the RPI3 and enocean pi...

     

    Thank you

     

    Have an nice Day

    Dirk

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • fvan
    0 fvan over 9 years ago in reply to robertheinze

    Hi Robert,

     

    I didn't do any of those /boot/config.txt changes to get it to work.


    "BT points to ttyS0 in /lib/systemd/system/hciuart.service", by default it points to ttyAMA0, don't change it to ttyS0.

     

    EnOceanPi runs on ttyS0 with the changes I have described, nothing more is required.

     

    Frederick

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • fvan
    0 fvan over 9 years ago in reply to Former Member

    Hi Dirk,

     

    in /boot/cmdline.txt, remove the part that states "console=ttyS0,115200".
    To point your application to the EnOceanPi, use ttyS0 and not ttyAMA0, as that's where the BT is on.

     

     

     

    Frederick

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robertheinze
    0 robertheinze over 9 years ago in reply to fvan

    I agree with Dirk, it doesn't work to address EnOceanPi in FHEM via ttyS0, therefore I kept it on ttyAMA0 and tried to change everything towards have HCIUart service running on ttySo, but that's not working properly.

     

    EnOceanPi is working, WiFi is working but BT is not working.

     

    My settings:

    /boot/config.txt

    # Additional overlays and parameters are documented /boot/overlays/README
    #dtoverlay=pi3-miniuart-bt-overlay
    dtoverlay=pi3-miniuart-bt
    force_turbo=1

     

    # Enable audio (loads snd_bcm2835)

    dtparam=audio=on

    #using device_tree=bcm2709-rpi-2-b.dtb

     

    /boot/cmdline.txt

    dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait core_freq=250

     

    hciuart.service

    [Unit]
    Description=Configure Bluetooth Modems connected by UART
    ConditionPathIsDirectory=/proc/device-tree/soc/gpio@7e200000/bt_pins
    Before=bluetooth.service
    After=dev-ttyS0.device

    [Service]
    Type=forking
    ExecStart=/usr/bin/hciattach /dev/ttyS0 bcm43xx 115200 noflow -

    [Install]

    WantedBy=multi-user.target

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robertheinze
    0 robertheinze over 9 years ago in reply to robertheinze

    I have posted it in the FHEM-Forum, maybe Rudolf König the "master of FHEM" has a solution for this, since it seems to be related to FHEM on the Raspi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • fvan
    0 fvan over 9 years ago

    Made a blog post on how to get the UART to work from scratch: UART for Serial Console or HAT on Raspberry Pi 3 – Frederick Vandenbosch

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago

    I would be extremely interested in any developments on this issue. I use Raspberry Pi's as LAN gateways: they interface the EnoceanPi HAT to a control software called IP-Symcon using ser2net ethernet-to-serial protocol. Now I am sitting on four Pi-3's which are essentially bricked. I tried to follow the solution indicated in fvan's blog, but it is unclear to me whether I should activate the UART or not. Any help would be greatly appreciated!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago in reply to Former Member

    Now I am sitting on four Pi-3's which are essentially bricked

    https://www.reddit.com/r/raspberry_pi/comments/1q1old/bricked_my_pi_green_led_blinks_4_times/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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