Hi,
The decoder is now merged, thanks again! I've done a few cosmetic
changes and fixed two smaller issues (one timing change was needed for
the sensors I had here apparently, not sure why). The AM2301 also seems
to have a few more bits after the 40 initial ones (see dumps), haven't
checked the datasheet as to what they mean yet.
Thanks!
The timing values used in the protocol decoder are based on my personal
experience. They differ significantly from the values given in the data
sheets (which apparently can't be trusted).
According to the data sheet of the AM2301, it uses the exact same
protocol (with 40 bits). There are 24 additional bits at the end, all
zeros. Never seen something like this before. As they are cheap, I
ordered an AM2301. I can then try to reproduce your observation.
As mentioned above, it would be nice to get a few additional ones e.g.
from an AM2302 and AM2303 etc.
The patches attached to this mail add example dumps for the AM2302 and
AM2303, respectively.
I haven't yet added test-cases in the sigrok-test repo, let me know if
you want to work on that.
I'll definitely have a look at it, although it may take me another week
or two.
A small wiki page for the decoder is up here:
http://sigrok.org/wiki/Protocol_decoder:Am230x
While I was testing all this, I couldn't resist to take the sensors
apart as well, so if you're interested in PCB photos those are up too.
I can add photos of the am2302 and am2303 if you grant me access to the
wiki. Unfortunately these devices are sealed and can't be opened without
destroying the housing.
Best regards,
Johannes
>From 7bd1b7950c076bfb7c8146a394aeace6a0f09d10 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20R=C3=B6mer?= <[email protected]>
Date: Sun, 12 Oct 2014 18:55:36 +0200
Subject: [PATCH 1/2] Add an Aosong AM2302 humidity/temperature sensor dump.
---
am230x/am2302/README | 19 +++++++++++++++++++
am230x/am2302/am2302_1mhz.sr | Bin 0 -> 613 bytes
2 files changed, 19 insertions(+)
create mode 100644 am230x/am2302/README
create mode 100644 am230x/am2302/am2302_1mhz.sr
diff --git a/am230x/am2302/README b/am230x/am2302/README
new file mode 100644
index 0000000..e828dfb
--- /dev/null
+++ b/am230x/am2302/README
@@ -0,0 +1,19 @@
+-------------------------------------------------------------------------------
+Aosong AM2302
+-------------------------------------------------------------------------------
+
+This is an example capture of the Aosong AM2302 temperature and humidity sensor
+single-wire protocol.
+
+The sensor was connected to an Atmel ATmega8 running a custom software to read
+out this type of devices.
+
+
+Logic analyzer setup
+--------------------
+
+The logic analyzer used was an MCU123 USBee AX Pro clone (at 1 MHz):
+
+ Probe AM2302
+ ------------------
+ 0 SDA
diff --git a/am230x/am2302/am2302_1mhz.sr b/am230x/am2302/am2302_1mhz.sr
new file mode 100644
index 0000000000000000000000000000000000000000..5f0bde7615ee236fc7f3264e623dac330deb648d
GIT binary patch
literal 613
zcmWIWW@Zs#U|`^2@SW`A%DeBX6f=;=2*m6_T$Wl?oSC0z%)}6YqHbD`b!a<Kelrkr
z0C8?=Nn%Q3Nuuf*Tdu<fJPr?Imw#ZDdh|zMic5A^$twvXi*;Epb1iQ8wawYL^p;)4
z2e;>kbN;Y&#`4IQ2KdN?>2&YXU_2%+o8$SCbIr|9axc%$yTE?@+aksGoISUaW@tWS
zIH@yxd4|!#u>Rki{}+9%+|8wZrAbQLv3cu)qiz=xwO?!$=DBfrUy)zUzhfU*Q5`$W
z*Iaxf(2)z;7#TQ$bWVPHX0ooKuHoAoHw764cvuhon=PjMV`63Ec7{Vw3|0Y^U;zqu
zncA{fzMXLI@{R<z2Gs*oc)C|DI{xlj<+Aea-=;q=UwmNAF7XBT<Tn4!Uc2t!xn*0t
zLYFOjHf3d{sbWn%6BYwW7LvIU;LQj$33qg%8VQX&bWP}ShtQ+}WWr(+T^D*FB6M8^
YGT}iQ;LXYgl41tJML>EjC?zof0Pzr_%K!iX
literal 0
HcmV?d00001
--
1.8.3.1
>From 0d7bd31257bfc5111578a05cf9b788f388a0c8df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20R=C3=B6mer?= <[email protected]>
Date: Sun, 12 Oct 2014 18:57:38 +0200
Subject: [PATCH 2/2] Add an Aosong AM2303 humidity/temperature sensor dump.
---
am230x/am2303/README | 19 +++++++++++++++++++
am230x/am2303/am2303_1mhz.sr | Bin 0 -> 610 bytes
2 files changed, 19 insertions(+)
create mode 100644 am230x/am2303/README
create mode 100644 am230x/am2303/am2303_1mhz.sr
diff --git a/am230x/am2303/README b/am230x/am2303/README
new file mode 100644
index 0000000..6d661c8
--- /dev/null
+++ b/am230x/am2303/README
@@ -0,0 +1,19 @@
+-------------------------------------------------------------------------------
+Aosong AM2303
+-------------------------------------------------------------------------------
+
+This is an example capture of the Aosong AM2303 temperature and humidity sensor
+single-wire protocol.
+
+The sensor was connected to an Atmel ATmega8 running a custom software to read
+out this type of devices.
+
+
+Logic analyzer setup
+--------------------
+
+The logic analyzer used was an MCU123 USBee AX Pro clone (at 1 MHz):
+
+ Probe AM2303
+ ------------------
+ 0 SDA
diff --git a/am230x/am2303/am2303_1mhz.sr b/am230x/am2303/am2303_1mhz.sr
new file mode 100644
index 0000000000000000000000000000000000000000..5708df234b2f2f0313c98f51d08cd75557923e3e
GIT binary patch
literal 610
zcmWIWW@Zs#U|`^2V2k!~<=uBxiW$gb1Y&j|E=w&c&dkp<W?~3HQ8%r}I<y@qzZr-*
zfH*g`BrzqiBvJK@E!SZK9*2jq%RjJ6J^G_B#U;C|<duYx#kwq)xfVD4+UD$Addsfj
zgWL1NIe%C>V|nCD1AJt{bh>wGFdh?^&GCH6x#s34xtC|>U0^@{ZINPo&YoLIGc+GE
zoYa}UJi};VSpRR%|BF6W?&i|I(j=wr*t~VYQMU_;+AlT=^V~SRugI_F-?0y@sE+Me
z^6Jkzpd%NwF*0xh>74xZ%w%0dUBkE6PYWJU;9x!QZ?>5A2~E!ZcbO7oYI)p%YKR5=
zd<F;jKdv*XyYf0nf0F#I({K0l2L3!fXX@Lh&rjy=xAuH}tn6de(rL<Xa}}y5r<}Oy
zug2H(WxW}(=EKxEB#Q@lGcqwS;EpSpQV0!=Ido0v5r@#E0c66W5nUI02qJV{1v25`
V8Q{&z29jb1!bL!O6(|`o0041_oihLc
literal 0
HcmV?d00001
--
1.8.3.1
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel