Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Obsolete repository, replaced by CANopenDemo and CANopenLinux

License

NotificationsYou must be signed in to change notification settings

CANopenNode/CANopenSocket

Repository files navigation

THIS REPOSITORY IS OBSOLETE, ITS CONTENTS HAS BEEN MOVED TO:


CANopenSocket is a collection of CANopen tools and examples.

It is based onCANopenNode, which is free and open source CANopen Stack and is included as a git submodule.

CANopen is the internationally standardized (EN 50325-4) (CiA301) CAN-based higher-layer protocol for embedded control system. For more information on CANopen seehttp://www.can-cia.org/

Getting or updating the project

Clone the project from git repository and get submodules:

git clone https://github.com/CANopenNode/CANopenSocket.gitcd CANopenSocketgit submodule initgit submodule update

Update the project:

cd CANopenSocket# make sure, project is clean (git status); changes should be committed (git gui)git pull # or: git fetch -> gitk --all (inspect the changes) -> git merge# git submodule init # if new git modulesgit submodule update

Get/update other tools (EDSeditor):

cd tools./get_tools.sh

Getting started

First information is in CANopenNode/README.

Basic getting started guide is available inCANopenNode/doc/gettingStarted.md. If everything works there as expected, with virtual or real CAN, then CANopen network is established. With at least basic operation of: CAN reception, transmission, NMT, Heartbeat, Service Communication Objects (SDO).

Next is Basic CANopen Device example program with source code, custom Object Dictionary access functions and advanced CANopen gateway communication. SeebasicDevice/README.md.

CANopenSocket contents

  • CANopenNode - free and open source CANopen Stack (git submodule)
  • docs - CANopenNode documentation, generated by doxygen, available also online athttps://canopennode.github.io/CANopenSocket/
  • cocomm - Linux commmand line tool, which communicates with CANopen gateway device via local or TCP socket. Similar asnc tool available in Linux.make the executable and type./cocomm --help or seebasicDevice/README.md for example usage.
  • canopencgi - CGI interface for Apache web server, experimental.
  • tools
    • EDSEditor - Object Dictionary Editor fromhttps://github.com/robincornelius/libedssharp. Updated withget_tools.sh.
    • get_tools.sh - script for getting/updating the tools.
    • update_docs.sh - script runs doxygen on CANopenNode and creates softlink index.html.
    • run_canopend_candump.sh - script creates virtual CAN devicevcan0 and runscandump andcanopend with gateway interface on it.
  • examples
    • basicDevice - Example CANopenNode device with or without gateway interface. Includes example for different testing variables: 64-bit integers, real numbers, strings, domain, object oriented principle with C, etc. SeebasicDevice/README.md.
  • test - Different CANopen testing tools
  • docker - Dockerfile with readme.

License

Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

About

Obsolete repository, replaced by CANopenDemo and CANopenLinux

Resources

License

Stars

Watchers

Forks

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp