The Godfather talking
You may crack software. How about me?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 07:45:39 19:45


Login with username, password and session length


Pages: [1]
Print
Author Topic: 1-wire slave - emulated DS18B20 - and sniffer  (Read 6821 times)
0 Members and 1 Guest are viewing this topic.
xtal
Inactive

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 11


« on: May 19, 2014, 02:39:32 14:39 »

Attached is code for a 1-wire sniffer [12F1822] ,  and an emulated DS18B20 temperature sensor 12F6783 @ 8mhz and 12F1822 @8*4mhz.

The temperature only shows an emulated temperature, the CONVERT code would have to be altered along with adding a sensor.

The sniffer supports bauds of 115200, 230400, 460800, 921600 [ must use virtual comm port for high bauds except 115200]
The sniffer also enabled/disable the display of search data, how ever using this you might miss something [i.e] for example
IButtonviewer never showed a convert command, until I enabled the search data , and there it was , right after the search data
which does not agree with the DS18B20 flow chart, therefore my slave code was changed to act like a real DS18B20..

The DS18B20 code is really just a building block, for other stuff if wanted...

The big draw back is the supporting code for my Desktop.....

Posted on: May 19, 2014, 03:37:55 15:37 - Automerged

files
Logged
Nicolina1988
Junior Member
**
Offline Offline

Posts: 55

Thank You
-Given: 28
-Receive: 85


« Reply #1 on: August 24, 2014, 03:20:47 15:20 »

Thank for the interesting idea about the sniffer. I have 2 questions:
Is there limitations to use lower baudrates  down to 2400?
To translate ths basic code a CCS C style are there any time critical parts of it that may break the functionality?
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC