help create GUI using VBS macros

Professional Windows® software to communicate with CAN and CAN FD busses and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
ankur17
Posts: 9
Joined: Wed 1. Dec 2021, 14:10

help create GUI using VBS macros

Post by ankur17 » Wed 1. Dec 2021, 14:30

Hello Support @ peak
I want to implement CCP protocol using PCAN USB and PCAN FD. Right now im able to transmit data via PCAN and displayed on Explorer 6. I think we have write the script on VBS to implement CCP/XCP. Pls support us the sample code for write CCP/XCP protocol. Finally I need to generate GUI to diagnosis the vehicle.

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: help create GUI using VBS macros

Post by M.Heidemann » Wed 1. Dec 2021, 15:43

Hello,

PCAN-Explorer 6 does not have XCP/CCP specfic features.

We do not provide any sample code to implement the CCP or XCP protocol
via macros, nor do we recommend to implement the protocols in macro. If
you only need to implement small portions of the protocol it might be feasible, implementing the whole protocol we do not recommend nor
can we specifically support that.

We have a CCP and XCP APIs which allows you to write your own software for
those protocols:

PCAN CCP API
https://www.peak-system.com/PCAN-CCP-AP ... .html?&L=1
PCAN XCP API
https://www.peak-system.com/PCAN-XCP-AP ... .html?&L=1

The APIs come with examples on how to use the API.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

ankur17
Posts: 9
Joined: Wed 1. Dec 2021, 14:10

Re: help create GUI using VBS macros

Post by ankur17 » Thu 2. Dec 2021, 05:58

what do you mean by small portion of protocol?
If we cannot implement CCP/XCP on macro then what platform and framework you suggest for implementing the same. I suppose Microsoft visual studio can support this. But have zero clue how to start about.

One more thing
Can we create a .exe file for the GUI ? to play with our parameters

ADMIN(add second request to keep the thread clean..)

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: help create GUI using VBS macros

Post by PEAK-Support » Thu 2. Dec 2021, 11:46

PCAN-Explorer is a CAN Anaylzer - you could write simple scripts, but we offer no protocoll implementation inside the Tool (exception is J1939).
If you want to implement a single protocoll request (one small part of a protocol) it might be possible (your job) but we do not recommend it...
The PE6 Macros are not the right choice. (thats what Marvin means with "small portion of protocol" )

We offer a Software Stack as an Windows Interface DLL for the CCP/XCP Protocols - see information from Marvin.
With this API´s you could easy build own applications using C/C++/C#/Pascal-Delphi/VB-Net etc.
BUT you need to have to understand how the protocoll works, have read and understand the protocol description. Then the API is easy to use.

If you later on build own Appliation with a GUI or only command line is your up to you and your work.
We offer the Protocol Stack, and our customer have the knowledge to build his project with our Tools.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

UlfMuller
Posts: 4
Joined: Wed 9. Oct 2019, 16:36

Re: help create GUI using VBS macros

Post by UlfMuller » Fri 3. Dec 2021, 11:45

Hi
Is there a way to set up an multiframe and put it out from the Transmit window without using any API?
for us that lack programming experience ;)

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: help create GUI using VBS macros

Post by PEAK-Support » Fri 3. Dec 2021, 11:51

What exactly do you mean by a "multi-frame"?
If you want to send e.g. a sequence of CAN frames, this is very easy to do with the simple standard macro´s (also with VBS - but more complicated).
Search in the online help for standard macros - there are also embedded examples available.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

UlfMuller
Posts: 4
Joined: Wed 9. Oct 2019, 16:36

Re: help create GUI using VBS macros

Post by UlfMuller » Fri 3. Dec 2021, 12:42

I´m interested in sending for example frame "DierctionData" PGN: 130577 (hex: 1FE11), and signal for "Drift Speed" from NMEA2000 std where signal has start bit 96.
Is using Standard macro suitable for this?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: help create GUI using VBS macros

Post by PEAK-Support » Fri 3. Dec 2021, 12:53

You talk now about a J1939 Msg - this is possible if you own the J1939 AddIn and if it does NOT use one of NMEA specific transfer protocols ( see NMEA Documentation )
otherwise you need to know what you do and build the frame "manual" in VBS
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply