tag:blogger.com,1999:blog-4339813531032979196.post4484811941917217891..comments2024-02-28T07:32:59.864+00:00Comments on HydraRaptor: ESP8266 SPI Spynopheadhttp://www.blogger.com/profile/12801535866788103677noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-4339813531032979196.post-55241541256901098622021-04-01T20:23:48.514+01:002021-04-01T20:23:48.514+01:00I'd have the same problem and i'd like to ...I'd have the same problem and i'd like to sniff a HT1621 from a condutivity sensor , did you get success on this job ? could you share the code whit me ?Anonymoushttps://www.blogger.com/profile/01207485542179311464noreply@blogger.comtag:blogger.com,1999:blog-4339813531032979196.post-3830358559337263002021-04-01T10:05:48.440+01:002021-04-01T10:05:48.440+01:00Yes it is certainly the most complicated SPI contr...Yes it is certainly the most complicated SPI controller I have used and the least flexible. During this project I bought a small 8 pin PIC to act as a protocol converter as an plan B because I didn't think I would be able to get it to work but in the end I managed it without.nopheadhttps://www.blogger.com/profile/12801535866788103677noreply@blogger.comtag:blogger.com,1999:blog-4339813531032979196.post-91897033387840766932021-04-01T08:56:24.988+01:002021-04-01T08:56:24.988+01:00How strange! Even now the only stuff I can find on...How strange! Even now the only stuff I can find online is other people trying to understand where bit 19 came from.<br />I gave up with the ESP8266 as the SPI spy for now - my data starts with 8 random bits then 8 known bits, so it's more of a hassle to trick the ESP into recording it.<br />I've gone back to AVR to snoop and the ESP for WiFi, only needs one 8-bit register to set up the SPI!Andrew Whttps://scientistinsitu.wordpress.com/noreply@blogger.comtag:blogger.com,1999:blog-4339813531032979196.post-90299640100343944562021-03-31T10:57:04.029+01:002021-03-31T10:57:04.029+01:00I must have found it in a header online somewhere....I must have found it in a header online somewhere.nopheadhttps://www.blogger.com/profile/12801535866788103677noreply@blogger.comtag:blogger.com,1999:blog-4339813531032979196.post-47956312222624248742021-03-31T09:40:17.127+01:002021-03-31T09:40:17.127+01:00How on earth did you figure out:
SPI1P = 1 <...How on earth did you figure out:<br /> SPI1P = 1 << 19; // SPI_PIN_REG, Clock idle high, seems to cause contension on the clock pin if set to idle low.<br />?<br /><br />I've looked over the technical references for the esp8266 and the ESP32, and both keep<br />the slave mode configuration hidden behind 'reserved' blocks. Especially bit 19 of SPI_PIN_REG!<br />(though bit 29 is labelled as SPI_CK_IDLE_EDGE, this seems to be for master only)Andrew Whttps://scientistinsitu.wordpress.com/noreply@blogger.comtag:blogger.com,1999:blog-4339813531032979196.post-16039522377666507832021-03-31T09:35:38.402+01:002021-03-31T09:35:38.402+01:00How on earth did you figure out :
SPI1P = 1 <&...How on earth did you figure out : <br />SPI1P = 1 << 19; // SPI_PIN_REG, Clock idle high, seems to cause contension on the clock pin if set to idle low.<br />?<br /><br />It also works for me on a different device, but the technical datasheets for the ESP32 and ESP8266 both hide bit 19 in a big 'reserved' block!Andrew Whttps://scientistinsitu.wordpress.com/noreply@blogger.comtag:blogger.com,1999:blog-4339813531032979196.post-72195965416006334922019-01-09T19:19:35.856+00:002019-01-09T19:19:35.856+00:00bummer, i bought an PZEM-021 and noticed just that...bummer, i bought an PZEM-021 and noticed just that, I'll take your advice and try to sniff the Holtek HT1621 insteadZez0https://www.blogger.com/profile/02805211163622904716noreply@blogger.comtag:blogger.com,1999:blog-4339813531032979196.post-76534932192426891842018-05-31T13:41:30.609+01:002018-05-31T13:41:30.609+01:00NOTE it has been brought to my attention by a comm...NOTE it has been brought to my attention by a comment on Hackaday that the PZEM-021 now comes with a V5 PCB that uses a Vango<br />Technologies V9821S “Low-power Multifunctional Energy Metering SoC” so there is no SPI bus to sniff, boo.<br /><br />It does have a serial link to the Holtek HT1621 display controller that could be sniffed but it isn’t SPI, it has separate read and write clocks. Possibly they could be ANDed together to read it with SPI. However, the data would be pixels, so a bit of a job to turn it back to digits.nopheadhttps://www.blogger.com/profile/12801535866788103677noreply@blogger.com