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 5250 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
Parents
  • robertheinze
    0 robertheinze over 9 years ago

    Brian did some testing with reassigning the BT, but I had no time for testing so far. Would be interesting whether this helps ...

    Brian Dorey.com | Raspberry Pi 3 UART Overlay Workaround

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

    Another possibility is to use the USB dongle instead of the EnOceanPi, doing serial via USB.

    image

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

    I know, but  the RF-results of the stick are not comparable to the EnOceanPi and secondly we have a GSM dongle on the USB and don't want another USB-device on it ...

     

    I can give it a try tomorrow, when I am back in the office ...

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

    Just tried the procedure, and doesn't seem to be working for me image

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

    Has the latest firmware not fixed these problems?

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

    You're right!

     

    I rolled back the changes from Brian's procedure and restored all files.

     

    Then:

    - Make sure everything is up-to-date: sudo apt-get update && sudo apt-get upgrade && sudo rpi-update (I think rpi-update did the trick for me)
    - Enable Serial via raspi-config, but edit /boot/cmdline.txt to disable serial console
    - Use /dev/ttyS0 instead of /dev/ttyAMA0

    - Reboot

     

    Data is now coming in OpenHab via EnOceanPi and EnOcean binding:

    image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • fvan
    0 fvan over 9 years ago in reply to cstanton

    You're right!

     

    I rolled back the changes from Brian's procedure and restored all files.

     

    Then:

    - Make sure everything is up-to-date: sudo apt-get update && sudo apt-get upgrade && sudo rpi-update (I think rpi-update did the trick for me)
    - Enable Serial via raspi-config, but edit /boot/cmdline.txt to disable serial console
    - Use /dev/ttyS0 instead of /dev/ttyAMA0

    - Reboot

     

    Data is now coming in OpenHab via EnOceanPi and EnOcean binding:

    image

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

    I think I am getting crazy on this ...

     

    Some questions:

    When you boot with your setup, do you get "Rasbian GNU/Linux 8 raspberrypi tty1"?

    Because, that is what I get ...

     

    How do you address the EnOceanPi in OpenHab? With ttyAMA0?

     

    Do you have bluetooth enabled?

     

    On the RPi2 with jessie I masked serial-getty with

    sudo systemctl mask serial-getty@ttyAMA0.service  - what do you get when you do sudo systemctl status serial-getty@ttyAMA0.service?

     

    I have no glue, about what's wrong in my setup?

     

    Thanks

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