rbei-etas / busmaster

BUSMASTER is an Open Source Software tool to simulate, analyze and test data bus systems such as CAN. BUSMASTER was conceptualized, designed and implemented by Robert Bosch Engineering and Business Solutions (RBEI). Presently it is a joint project of RBEI and ETAS GmbH.
http://rbei-etas.github.com/busmaster/
GNU General Public License v3.0
931 stars 495 forks source link

[COM API] SendCANMSg Interface by Python #754

Open slongeri opened 9 years ago

slongeri commented 9 years ago

Hello,

i tried to build up a simple automation of busmaster with python 2.7 . The connection is possible so far:

import win32com.client

BUSMASTER_COM_NAME = "CAN_MonitorApp.Application" CONF_FILE = b"Y:\apiconf.cfx"

myBusMaster = win32com.client.Dispatch(BUSMASTER_COM_NAME)

load configuration (can interface setup is not possible by api)

myBusMaster.LoadConfiguration(CONF_FILE)

myBusMaster.LoadAllDll() myBusMaster.Connect(True) myBusMaster.StartLogging()

How to send the message with SendCANMSg ? I can't find an Input description, is there an example how to do it?

Thanks

Simon

Speagle commented 9 years ago

Hello what is CAN_MonitorApp.Application ?? can we connect busmaster with any other CAN simulator through port number

slongeri commented 9 years ago

Hi,

COM_NAME means not the COM-Port of your computer, it means COM-Object which is dispatched by its thread name in windows, in this case "CAN_MonitorApp.Application.

SantoshVenkatesh commented 9 years ago

Hello,

Can anybody Explain how to send data on CAN Bus with Python.I am able to establish COM connection with Bus Master.I am trying to call COM API from my python script but not all API work. Is there any example with python to send and receive CAN data?? Thanks in advance!!

dani1479 commented 8 years ago

Also I have had the same difficulties. An example?Is there any example with python to send and receive CAN data?

nabiali1994 commented 7 years ago

have you Any Solution ?