Open Device: Difference between revisions

From CANopen-Lift
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[de:Open_Device]]
[[de:Open_Device]]
{{Translation}}
To enable a smooth start for potential developers of CANopen-products here we provide the hard- and software for a simple CANopen structural component. From many discussions with insterested parties we learned that the completly new development of a component and the needed initial training of CANopen is to extensive. It is to prefer to connect the existing components at first by an adapter to the CAN-bus to get first experiances with the bus. All the many information, are going to be consumed and produced by the components from the bus, can be merged best by an interface. Each developer once has used an UART for data in- or output.
Um zukünftigen Entwicklern von CANopen-Produkten den Start zu vereinfachen, wollen wir hier die Hard- und Software für eine einfache CANopen-Baugruppe zur Verfügung stellen. In Gesprächen mit vielen Interessenten kamen wir oft zu dem Ergebnis, dass die völlige Neuentwicklung einer Baugruppe die dazu notwendige Einarbeitung in CANopen zu aufwendig ist. Besser ist es, die vorhandenen Baugruppen erst einmal über einen Adapter an den CAN-Bus anzuschließen und so die ersten Erfahrungen mit dem Bus zu sammeln. Die vielen Informationen, die die Baugruppen vom Bus konsumieren und produzieren wollen, lassen sich am besten über eine Schnittstelle anbinden. Jeder Entwickler hat schon einmal eine UART verwendet, um Daten ein- oder auszugeben.  


Daher haben wir uns entschieden, hier eine Planine zu beschreiben, die Signale vom CAN-Bus auf eine serielle Schnittstelle überträgt, also sozusagen ein kleines "Gateway". Als Hardware für dieses Projekt bietet sich ein Entwciklungsboard der Firma [[Glyn]] an. Es sind die CAN-Schnittstelle und eine RS232-Schnittstelle vorhanden und es kann sofort mit der Entwicklung begonnen werden.  
So we decided to decribe a board, a little "gateway", which transmits the signals from the CAN-bus to a serial interface. As hardware for this project is obvious a developingboard from [[Glyn]]. Available are the interfaces CAN and RS232 so developing can be started immediately.


== Open Hardware ==
== Open hardware ==
[[Image:Board_EVBMB90F897.jpg|thumb|Entwicklungsboard für das CANopen-Projekt]]
[[Image:Board_EVBMB90F897.jpg|thumb|Development board for the CANopen-project]]
Das Open-Device-Projekt wird aus den oben beschriebenen Gründen mit einer kleinen Platine begonnen, die eine CAN-Schnittstelle auf eine RS232 umsetzen kann. Als ideale Plattform bietet sich dafür das Entwicklungsboard ''EVBMB90F897'' der Firma [[Glyn]] an.  
From the above mentioned reasons the open-device-project starts with a little board which can implement the CAN-interface on RS232. As an ideal platform is obvious the developingboard ''EVBMB90F897'' from [[Glyn]].


Wir wollen die Schaltpläne, Bestückungsliste und das Layout dieser Baugruppe hier veröffentlichen.  
We intend to publish here the diagrams, partslists, and the layout of this structural components.
 
In operation is the processor MB90F897PMT from [[Fujitsu]]. This is a modern 16bit-processor in a LQFP48-housing with a CAN-2.0-interface and two UARTs. A detailed description of the processors features are in the manual of the developing board and of course in the manual of the manufacturer.
 
Developing tools for this processor are available free of charge from [[Fujitsu]] and can be obtained e.g. from [[Glyn]]. Beside a modern IDE a C-compiler and a C++-compiler are included, which can be use with full function after being registered.


Als Prozessor kommt der MB90F897PMT der Firma [[Fujitsu]] zum Einsatz. Dabei handelt es sich um einen modernen 16Bit-Prozessor im LQFP48-Gehäuse mit einer CAN-2.0-Schnittstelle und zwei UARTs. Eine ausführliche Beschreibung der Features des Prozessors finden Sie im Handbuch des Entwicklungsboards und natürlich in der Bauteilbeschreibung des Hersellers.


Entwicklungswerkzeuge für diesen Prozessor werden kostenlos von Fujitsu bereit gestellt und können zum Beispiel über die Firma [[Glyn]] bezogen werden. Dazu gehören neben einer modernen IDE auch ein C-Compiler und ein C++-Compiler, die mit vollem Funktionsumfang nach einer Registrierung genutzt werden können.


== Open Software ==
== Open Software ==
Die Software für eine erste Beispielanwendung soll hier ebenfalls zur Verfügung gestellt werden. Es handelt sich dabei um einen einfachen CANopen-Stack mit einer Beispielapplikation zum virtuellen Gerät ''Door Unit''.  
The software for the first instance use shall here be provided as well. It is a simple CANopen-stack with a sample-application for the virtual device ''Door Unit''.


Als Grundlage für den hier zur Verfügung gestellten Code dient der [http://www.microcanopen.com/ MicroCANopen-Stack] der von der Firma [[ESAcademy]] für dieses Projekt bereitgestellt wurde und der aktuell für das Entwicklungsboard EVBMF90F387 angepasst bereitsteht.
The basis for the provided code is [http://www.microcanopen.com/ MicroCANopen-Stack] from company [[ESAcademy]] which got supplied for this project. It is adopted to the development board EVBMF90F387 and standing by.
  '''Für den MicroCANopen-Stack gelten besondere Lizenzbedingungen.  
  '''For the MicroCANopen-Stack are special licence conditions being valid. '''
  Die Firma [[ESAcademy]] hat den Code unter der Lizenz [http://creativecommons.org/licenses/by-nc-sa/2.5/ cc 2.5 by-nc-sa] zur Verfügung gestellt. '''
  The company [[ESAcademy]] has provided the code under the licence [http://creativecommons.org/licenses/by-nc-sa/2.5/ cc 2.5 by-nc-sa].  


=== Current State of the Software ===
=== Current State of the Software ===
* angepasst an die Hardwarebasis EVBMF90F387
* adopted to the hardware basis EVBMF90F387  
* benutzt nur die CAN- und die SCI-Schnittstelle
* uses only the CAN- and the SCI-interface
* für virtuelles Gerät ''Door Unit''
* for the virtual device ''Door Unit''  
* keine EDS-Datei vorhanden
* no EDS-file existing
* minimalstes Objekt-Verzeichnis (z. B. keine gerätespezifischen Objekte)
* minute object-index (e.g. no unit-specific objects)  
* Führt Resets aus, wenn kein anderer CAN-Knoten am Bus vorhanden ist
* performs resets, if there is no other CAN-node at the bus available


=== Download ===
=== Download ===
Wir stellen Ihnen das Projekt als Zip-Datei zur Verfügung. Bitte lesen Sie die Hinweise in der Datei ''readme.txt''.
We supply the project as a Zip-file. Please read the notes in the file ''readme.txt''.
:[http://www.canopen-lift.org/lift-data/door417_v_1_0.zip Download door417_v_1_0.zip]
:[http://www.canopen-lift.org/lift-data/door417_v_1_0.zip Download door417_v_1_0.zip]
:[http://www.canopen-lift.org/lift-data/door417_MB90F897_v_1_0.zip Download door417_MB90F897_v_1_0.zip]


== Developer Environment ==
== Developer Environment ==
Die Software steht aktuell für das Entwicklungsboard EVBMF90F387 zur Verfügung, da den Entwicklern bisher kein aktuelles Board zur Verfügung stand. Sobald dies verfügbar ist, wird der Stack auf das oben beschrieben Entwicklungsboard angepasst.
The software is available for the development boards EVBMF90F887 and EVBMF90F387. For new development projects you should use the EVBMF90F887 board.  
 
Für die Entwicklung steht eine komplette IDE mit aktuellen C- und C++-Compiler von der Firma [[Fujitsu]] zur Verfügung. Diese kann wie auch das Entwicklungsboard über die Firma [[Glyn]] bezogen werden. Nach einer Registrierung der Entwicklungssoftware steht den ersten Tests nichts mehr im Wege.  


For the development there is a complete IDE available with latest C- and C++-Compiler from company [[Fujitsu]]. This can be obtained from company [[Glyn]] same like the developing board. After registration of the developing software nothing will hinder the first tests.


Der hier zur Verfügung gestellte Code reicht noch nicht für den produktiven Einsatz sondern dient lediglich als Anregung, um mehr daraus zu machen. Mal sehen, wie sich das Projekt entwickelt. Bei Interesse oder Vorschlägen wenden Sie sich bitte an [[Jörg Hellmich]].
This here supplied code is not enough for a productive use but is only ment as an motivation to make more with it. Let's see how the project will develop. On interest or with suggestions please contact [[Jörg Hellmich]].

Latest revision as of 13:57, 21 March 2007

To enable a smooth start for potential developers of CANopen-products here we provide the hard- and software for a simple CANopen structural component. From many discussions with insterested parties we learned that the completly new development of a component and the needed initial training of CANopen is to extensive. It is to prefer to connect the existing components at first by an adapter to the CAN-bus to get first experiances with the bus. All the many information, are going to be consumed and produced by the components from the bus, can be merged best by an interface. Each developer once has used an UART for data in- or output.

So we decided to decribe a board, a little "gateway", which transmits the signals from the CAN-bus to a serial interface. As hardware for this project is obvious a developingboard from Glyn. Available are the interfaces CAN and RS232 so developing can be started immediately.

Open hardware

Development board for the CANopen-project

From the above mentioned reasons the open-device-project starts with a little board which can implement the CAN-interface on RS232. As an ideal platform is obvious the developingboard EVBMB90F897 from Glyn.

We intend to publish here the diagrams, partslists, and the layout of this structural components.

In operation is the processor MB90F897PMT from Fujitsu. This is a modern 16bit-processor in a LQFP48-housing with a CAN-2.0-interface and two UARTs. A detailed description of the processors features are in the manual of the developing board and of course in the manual of the manufacturer.

Developing tools for this processor are available free of charge from Fujitsu and can be obtained e.g. from Glyn. Beside a modern IDE a C-compiler and a C++-compiler are included, which can be use with full function after being registered.


Open Software

The software for the first instance use shall here be provided as well. It is a simple CANopen-stack with a sample-application for the virtual device Door Unit.

The basis for the provided code is MicroCANopen-Stack from company ESAcademy which got supplied for this project. It is adopted to the development board EVBMF90F387 and standing by.

 For the MicroCANopen-Stack are special licence conditions being valid.   
 The company ESAcademy has provided the code under the licence cc 2.5 by-nc-sa. 

Current State of the Software

  • adopted to the hardware basis EVBMF90F387
  • uses only the CAN- and the SCI-interface
  • for the virtual device Door Unit
  • no EDS-file existing
  • minute object-index (e.g. no unit-specific objects)
  • performs resets, if there is no other CAN-node at the bus available

Download

We supply the project as a Zip-file. Please read the notes in the file readme.txt.

Download door417_v_1_0.zip
Download door417_MB90F897_v_1_0.zip

Developer Environment

The software is available for the development boards EVBMF90F887 and EVBMF90F387. For new development projects you should use the EVBMF90F887 board.

For the development there is a complete IDE available with latest C- and C++-Compiler from company Fujitsu. This can be obtained from company Glyn same like the developing board. After registration of the developing software nothing will hinder the first tests.

This here supplied code is not enough for a productive use but is only ment as an motivation to make more with it. Let's see how the project will develop. On interest or with suggestions please contact Jörg Hellmich.