custom protocol on onewire

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
henryscott
Posts: 16
Joined: Wed Apr 29, 2015 11:32 am

custom protocol on onewire

Post by henryscott »

I have to interface a device with a connection bus similar to OneWire, but with a communication protocol customized.
Flowcode6 I can use to build the protocol on a wire, or I have to use other software, such as Visual Basic? How can I use Flowcode to build custom protocol on OneWire connection?

regards

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: custom protocol on onewire

Post by Benj »

Hello,

Using an output or input icon in single bit mode you should be able to bit bang a serial 1-wire style data connection.

This is how the Flowcode 1-wire component was created.

henryscott
Posts: 16
Joined: Wed Apr 29, 2015 11:32 am

Re: custom protocol on onewire

Post by henryscott »

this is the protocol I need to interface. And I do not know how to made it in Flowcode 6

regards
Attachments
protocol description.rar
(18.15 KiB) Downloaded 231 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: custom protocol on onewire

Post by Benj »

Hello,

Here is something I cobbled together very quickly for you to match the waveform in the pdf. I'm not 100% sure it will work but it should be fairly close and should help to show you the way.
Flowcode1.fcfx
(8.6 KiB) Downloaded 250 times
Any questions then please let us know.

henryscott
Posts: 16
Joined: Wed Apr 29, 2015 11:32 am

Re: custom protocol on onewire

Post by henryscott »

I see this is the call function, how can I make the receive in the single wire connection?

I attach the process call and receive I have in the board I attach

regards
Attachments
the data sent is organized in bytes.doc
(29.5 KiB) Downloaded 218 times

henryscott
Posts: 16
Joined: Wed Apr 29, 2015 11:32 am

protocol single wire

Post by henryscott »

this is the call example, and receive example in the single wire?

this is the complete protocol to interface

regards
Attachments
the data sent is organized in bytes.doc
(29.5 KiB) Downloaded 228 times

henryscott
Posts: 16
Joined: Wed Apr 29, 2015 11:32 am

single wire protocol

Post by henryscott »

this is the call and receive example in the single wire protocol.

how it will be in the flowcode6?

regards
Attachments
the data sent is organized in bytes.doc
(29.5 KiB) Downloaded 218 times

Post Reply