Modbus RTU/HC06

A forum where Flowcode v7 user created components can be shared, discussed and reviewed.

Moderator: Benj

electronix
Posts: 58
Joined: Sat Aug 22, 2009 5:45 pm
Has thanked: 17 times
Been thanked: 7 times
Contact:

Modbus RTU/HC06

Postby electronix » Thu Feb 01, 2018 5:46 pm

Hi all.
Would it be possible to use the bluetooth component HC06 in FC7 to connect, for example, an Android device and use modbus rtu protocol?
Has anyone tried already? Any ideas on how it could be done?

/Nick

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

Re: Modbus RTU/HC06

Postby Benj » Fri Feb 02, 2018 4:18 pm

Hi Nick,

I can't say I've tried this but yes it should be possible.

The Bluetooth CDC class is basically just a standard asynchronous data connection so it should be just as easy as if you had a wire. I would get a wired version working first for sanity and then move to the Bluetooth version.
These users thanked the author Benj for the post:
electronix (Fri Feb 02, 2018 4:53 pm)
Rating: 5.56%
 

electronix
Posts: 58
Joined: Sat Aug 22, 2009 5:45 pm
Has thanked: 17 times
Been thanked: 7 times
Contact:

Re: Modbus RTU/HC06

Postby electronix » Fri Feb 02, 2018 4:53 pm

Hi Ben.

Thanks for your reply, and your suggestion is spot on what I´m trying right now, I´ll post the result here when I´m done.

/Nick
These users thanked the author electronix for the post:
Benj (Fri Feb 02, 2018 5:47 pm)
Rating: 5.56%