Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:16 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : SDI-12 Sensor Comms

Author Message
jewmac
Newbie

Joined: 25/07/2019
Location: Australia
Posts: 1
Posted: 12:27pm 25 Jul 2019
Copy link to clipboard 
Print this post

Hi Forum,

Just wanting to know if any members have had successful comms with a SDI-12 sensor using mmbasic.

I am after some code examples if you are willing to share. I have been told that it would need to be a bit bang routine and mmbasic is not capable of doing this and a third party device is required.

However I am sure there a some clever people amongst us who like to prove others wrong and have a little snippet of code to do so.

If you can help I would be very appreciative

Edited by jewmac 2019-07-26
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 02:35pm 25 Jul 2019
Copy link to clipboard 
Print this post

If it's 1200 baud but can't be done using a uart or the like then that's so slow that I expect mmbasic can cope.

(I'm ignoring any hardware issues if there are any, such as voltages.)

JohnEdited by JohnS 2019-07-27
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2170
Posted: 03:02pm 25 Jul 2019
Copy link to clipboard 
Print this post

Hey jewmac, welcome to the forum.

There was some discussion a couple of years back for controlling some radiator valves(?) for a smart home using a proprietary protocol. Where as the protocol was decoded, the member had the same problem... I seem to remember that a fellow shedder wrote a CSUB to provide an arbitrary stream of bits, i.e. any protocol could be simulated.

This may give you some ideas?

https://www.thebackshed.com/forum/forum_posts.asp?TID=9353 Edited by CaptainBoing 2019-07-27
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 01:45am 27 Jul 2019
Copy link to clipboard 
Print this post

This was discussed a couple of years ago
https://www.thebackshed.com/forum/ViewTopic.php?TID=9608&P=1#105532

Getting the 7 bits plus parity is easy enough.
You need to think about the serial interface.

Jim
VK7JH
MMedit
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 986
Posted: 07:24am 27 Jul 2019
Copy link to clipboard 
Print this post

Thanks Jim for adding that link. I have had some micromites conversing with SDI-12 probes for a couple of years without issues. Has been difficult to search and get the appropriate discussions as the site has been under repair.

Here is more of the discussion and some example code:

http://www.thebackshed.com/Forum/printer_friendly_posts.asp?TID=9608

OA47
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025