Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve W1209 ease of use #42

Closed
TG9541 opened this issue Jul 22, 2017 · 7 comments
Closed

Improve W1209 ease of use #42

TG9541 opened this issue Jul 22, 2017 · 7 comments
Assignees

Comments

@TG9541
Copy link
Owner

TG9541 commented Jul 22, 2017

Several users have had difficulties getting the W1209 serial communication to work, e.g.:

Issue #41 enables using e4thcom (and regular serial terminal programs) more easily. Consistent documentation, board support, and decisions about "phasing out" sensor header communication shall be taken here.

@TG9541 TG9541 self-assigned this Jul 22, 2017
@TG9541
Copy link
Owner Author

TG9541 commented Jul 22, 2017

Issue #41 is now closed. e4thcom works fine using PC4/PC5 (keys "+" and "-"), and using the board keys in interactive mode works, too.

@TG9541
Copy link
Owner Author

TG9541 commented Jul 22, 2017

@barewires: according to the hobbycompents W1209 STM8EF forum thread your experience with the sensor header serial interface were, well, not good. What's your opinion about the new solution?

v2.2.13.snapshot contains the W1209-FD variant.

@alfredluca
Copy link

I tested the W1209-FD.ihx binary and wrote a "how-to":

How-To:

  • get a W1209, erase the chip if necessary
  • flash the W1209-FD.ihx binary
  • connect the serial interface (+key pin near LED display -> TxD, -key -> RxD)
  • use terminal program "9600/N/8/1"

It's as easy as using a STM8S103F3 breakout board!

@TG9541
Copy link
Owner Author

TG9541 commented Jul 23, 2017

Thanks for the feedback so far!

I updated the Wiki.

@barewires
Copy link

Great work Thomas! I had put the W1209 on the back burner concentrating on the MINDEV, RCWL-0516 Cat Detector and HC12 comms. My only thought is grounding the TX/RX and debounce. Still a much appreciated update.

@TG9541
Copy link
Owner Author

TG9541 commented Jul 24, 2017

Hi Barewires, thanks for the feedback!

I read your latest hobbycomponents forum post - together with Alfredo's post it makes a good account of what can go wrong, and why independent testing is important. I hope that we're on track now. Thanks a lot :-)

I also updated the Wiki (please refer to the link in my previous comment). It would be nice if you could comment on it's usefulness.

You mention debouncing measures for RX/TX. Did you observe communication errors?
Can you propose a circuit (e.g. RC)?

PS: it's great that Picocom works. That's a good starting point for using e4thcom (it now has a STM8EF plugin, and it should work on the Raspberry Pi). Here is a small demo what it can do to make an STM8EF programmer's life easier.

@TG9541
Copy link
Owner Author

TG9541 commented Jul 29, 2017

Let's then use the "full duplex" option as the default. The docs will be changed accordingly which, I guess, will make new users life much easier.

@TG9541 TG9541 closed this as completed Jul 29, 2017
hexagon5un pushed a commit to hexagon5un/stm8ef that referenced this issue Aug 8, 2017
* upstream/master: (25 commits)
  reference to Wiki updated
  library additions
  library mcu according to e4thcom convention
  Update README.md
  some bytes saved
  some editing
  Fixes TG9541#44: XH-M188 lockup after power cycle
  fixes TG9541#43 Provide a Forth library infrastructure
  fixes TG9541#42 Improve W1209 ease of use
  fixes TG9541#42 Improve W1209 ease of use
  fixes TG9541#41: improved full duplex simulated serial
  edit
  Fix for UART simulation with 2 GPIOs
  HAS_ALIAS default on (IMMEDIATE words in RAM possible)
  SWIMCOM fix for HEADER macro, option WORDS_HWREG off
  issue TG9541#32 Build framework feature #include
  fixes TG9541#39 : underflow error message doesn't match normal pattern
  fixes TG9541#39 : underflow error message doesn't match normal pattern
  issue TG9541#32 Build framework feature: Forth application binary with uCsim
  issue TG9541#32: use telnet library
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants