Commit Graph

45 Commits

Author SHA1 Message Date
Youen
5621c45c02 Merge pull request #5 from ntruchsess/fixresetdetection
fix missing detection of reset during write of zero-bits
2016-02-25 19:03:38 +01:00
ntruchsess
c7457d0d8a fix missing detection of reset during write of zero-bits 2016-02-23 17:23:54 +01:00
Youen Toupin
887741a806 - added possibility to be notified of individual bits received
- fixed bug when sending individual bits or canceling a write operation
- DS18B20 sample now sends zeros during conversion, and ones when conversion is finished
2015-12-14 23:00:27 +01:00
Youen Toupin
c5a141b57e added code to write individual bits (instead of bytes), and to cancel the current write operation before it completes 2015-12-14 22:32:26 +01:00
Youen Toupin
35b866d933 basic implementation of DS18B20 emulation 2015-12-13 22:03:13 +01:00
Youen Toupin
b97a643227 - breaking change: global instance of OneWireSlave renamed from "OneWire" to "OWSlave" to avoid conflict with the OneWire master library in case someone wants both libraries in the same sketch
- upgrade to visual 2015 and arduino IDE 1.6.6
2015-12-13 21:33:43 +01:00
Youen Toupin
216fcf8cb5 - methods that don't write memory now take const parameters
- simplified pin number management
2015-08-11 21:18:35 +02:00
Youen Toupin
0790201af9 removed debug code 2015-08-11 20:40:57 +02:00
Youen Toupin
baaf4c474b Merge branch 'master' of ssh://thor:22/OneWireIO 2015-08-09 09:54:01 +02:00
neuoy
d3ad2ab361 Update README.md 2015-08-09 09:51:23 +02:00
neuoy
d3a465828d Update LICENSE 2015-08-09 09:20:47 +02:00
neuoy
085759c403 Initial commit 2015-08-09 09:19:19 +02:00
Youen Toupin
14711750d6 cleaned up project for public distribution (removed debug and unrelated stuff) 2015-08-09 09:15:32 +02:00
Youen Toupin
cf5f36b503 improved high-level protocol 2015-08-08 22:36:24 +02:00
Youen Toupin
4d94761fd5 - implemented simple protocol to turn an output on/off
- disabled debug code
2015-04-27 23:17:45 +02:00
Youen Toupin
c0a183c769 finished implementation of most important 1-wire functionalities 2015-04-27 21:53:31 +02:00
Youen Toupin
b5fa47249d ROM commands, read/write bytes (wip) 2015-04-26 22:01:30 +02:00
Youen Toupin
300a6be90f added background reset check (in case the master sends a reset while another operation had started) 2015-04-26 21:09:30 +02:00
Youen Toupin
2294595995 - fixed bug in Pin::attachInterrupt (this is an arduino bug : interrupts that have been triggered before the handler is attached will cause it to be called immediately ; but only interrupts happening after should call the handler)
- changed OneWireSlave interface to make it completely static (there is an instance, but it's only a wrapper to the static stuff, so that the syntax looks nice)
- the search rom algorithm works fine most of the time, but sometimes it fails, probably because of interrupts being blocked at the wrong time (small delay to respond to the master to send a zero)
2015-04-26 20:24:11 +02:00
Youen Toupin
b492dc675c refactoring wip : search rom (doesn't work yet) 2015-04-26 19:46:52 +02:00
Youen Toupin
dedc44d9d7 refactoring wip : read bytes 2015-04-26 01:08:37 +02:00
Youen Toupin
22e5d690a0 refactoring (wip) 2015-04-25 21:40:38 +02:00
Youen Toupin
0f941a85fb missing files 2015-04-25 13:04:32 +02:00
Youen Toupin
b6f8497f64 start of code refactoring (OneWireSlave class) 2015-04-25 13:04:10 +02:00
Youen Toupin
55d1bbf127 more robust reset detection, now purely implemented in interrupts, that allows the match rom algorithm to work even if our rom is not the first one 2015-04-25 12:19:31 +02:00
Youen Toupin
cf3f309ade added code to monitor time spent in interrupt handlers 2015-04-25 00:19:47 +02:00
Youen Toupin
c0250f685b more reliable search rom (but also with more active waiting) 2015-04-25 00:06:00 +02:00
Youen Toupin
f53e2adae8 small optimization 2015-04-24 22:55:29 +02:00
Youen Toupin
6b4f76c5f4 search rom works, but not completely reliable yet 2015-04-24 22:34:55 +02:00
Youen Toupin
74b3f2100e search rom algorithm almost working (but code is in an awful state, and master doesn't recognize the ROM yet, maybe a CRC issue) 2015-04-24 20:17:29 +02:00
Youen Toupin
68f4fce878 attempt to implement search ROM algorithm (doesn't work at this time) 2015-04-24 12:13:29 +02:00
Youen Toupin
b236a684ca implemented reading of bytes sent by the 1-wire master 2015-04-24 11:29:59 +02:00
Youen Toupin
8c473f50e4 implemented presence with timer interrupts 2015-04-24 10:30:11 +02:00
Youen Toupin
8fb20ab065 improved debugging messages on serial port (approximate measured time to append a message : 10µs ; messages are actually sent later, from the main loop) 2015-04-23 18:56:18 +02:00
Youen Toupin
03c2f0afd3 implemented reset detection 2015-04-23 17:26:33 +02:00
Youen Toupin
e8677549ea Merge branch 'master' of ssh://thor:22/OneWireIO
Conflicts:
	OneWireIO.ino
2015-04-23 15:07:36 +02:00
Youen Toupin
3359c244eb oscilloscope burst mode test 2015-04-23 15:06:13 +02:00
Youen Toupin
a474a381f9 start of actual OneWireIO project 2015-04-23 10:39:45 +02:00
Youen Toupin
ef01fe74bb added code to transmit sample frequency along with sample data (more compatibility between arduino and PC, and possibility to change sampling rate at run-time) 2015-04-16 19:30:57 +02:00
Youen Toupin
d0ef4ee9f9 finished basic oscilloscope functionalities (max sampling rate seems to be 38KHz) 2015-04-14 00:16:48 +02:00
Youen Toupin
691ce28d95 basic display of oscilloscope values in SerialMonitor (no zoom or scroll yet) 2015-04-12 19:49:17 +02:00
Youen Toupin
b728db1e26 first version of debug messages display in Serial Monitor console 2015-04-12 12:16:54 +02:00
Youen Toupin
a7ae407b6c - removed the OWSlave library (that just doesn't work, at least on Arduino Uno when talking to a DS9490 master)
- added debugging tools (oscilloscope and debug messages through serial port ; work in progress)
- empty C# application for displaying debug data (work in progress)
2015-04-11 20:28:53 +02:00
Youen Toupin
16dbbc37e4 Device identification and simple command listening (not tested yet) 2015-04-11 13:18:12 +02:00
Youen Toupin
8be66217dd Empty Arduino sketch with OWSlave library downloaded from http://forum.arduino.cc/index.php?topic=65706.msg1756727#msg1756727 2015-04-11 12:49:46 +02:00