Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Communication cctalk

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Wed Jul 05, 2017 9:29 am    Post subject: Communication cctalk Reply with quote

Hi,

Are there examples of communication with peripherals using the cctalk protocol?

(BASCOM-AVR version : 2.0.7.8 )
Back to top
View user's profile Visit poster's website
Evert :-)

Bascom Expert



Joined: 18 Feb 2005
Posts: 2156

netherlands.gif
PostPosted: Wed Jul 05, 2017 3:47 pm    Post subject: Reply with quote

Never seen something written in Bascom for cctalk.
However it doesn't look that difficult (does it ever?).
You need some additional hardware because it will communicate serial over 1 wire.
Here's a simple sample in Arduino with hardware and software. You can port this simple to Bascom.

_________________
www.evertdekker.com Bascom code vault
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Wed Jul 05, 2017 3:59 pm    Post subject: Reply with quote

The problem I have no programming experience in C ...

I can try to convert some arduino project into bascom ...

Do you have any links?
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5915
Location: Holland

blank.gif
PostPosted: Wed Jul 05, 2017 7:33 pm    Post subject: Reply with quote

it is much simpler to code this yourself. cctalk is very simple. especial if you only code the master. just look at the procotol and then get a manual of the device you want to control.
cctalk is explained here : https://en.wikipedia.org/wiki/CcTalk
also nice : http://www.coinoperatorshop.com/media/products/manual/cctalk/cctalk44-3.pdf

most devices only require a few commands. like getting the serial number and then hopping the coins. but it really depends on the device you need to control. the protocol itself is simply and does not require or deserve a lib.

_________________
Mark
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Thu Jul 06, 2017 7:37 am    Post subject: Reply with quote

Thanks Mark,

always very helpful...
Back to top
View user's profile Visit poster's website
atmega64

Bascom Member



Joined: 23 Feb 2005
Posts: 298
Location: ITALY

italy.gif
PostPosted: Fri Apr 20, 2018 11:48 am    Post subject: Reply with quote

Mark, I'm sorry I took over the cctalk project recently,

in the meantime, I got a BILLYONE banknote reader (see Attachment), could you give me an example of how to send a command and how to receive it?

thank you.
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5915
Location: Holland

blank.gif
PostPosted: Sat Apr 21, 2018 8:11 pm    Post subject: Reply with quote

that pdf is not showing all the required info.
sorry i can not give a worked out example. MCS can work out code but this is a paid service.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum