Author Topic: My Scratch Pad  (Read 98501 times)

0 Members and 1 Guest are viewing this topic.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #105 on: February 14, 2015, 10:20:52 pm »
Hehe Let's just say my strange sense of humor... wasn't an accident. My dad was at least as strange as I am, and apparently, my humor may even be diluted.

The only thing dated with any certainty is the Sears catalog, circa 1977. The only other thing I can certify about it is that it sounds as good as it looks. ;)

Wanted: Schrödinger's cat, dead and alive.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #106 on: February 19, 2015, 09:21:18 am »
3760-0
Wanted: Schrödinger's cat, dead and alive.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #107 on: February 21, 2015, 09:11:45 am »
3770-0
Wanted: Schrödinger's cat, dead and alive.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #108 on: February 21, 2015, 10:36:32 pm »
Result of

./newmodbus 192.168.254.144 4372\<8

1 second sleep, while [ 0 ] loop:

Code: [Select]

ID CLASSIC
ClassicTime 23:29:22  21/02/2015
4372 58183 (0xE347)
ID CLASSIC
ClassicTime 23:29:23  21/02/2015
4372 40263 (0x9D47)
ID CLASSIC
ClassicTime 23:29:24  21/02/2015
4372 8007 (0x1F47)
ID CLASSIC
ClassicTime 23:29:25  21/02/2015
4372 46919 (0xB747)
ID CLASSIC
ClassicTime 23:29:26  21/02/2015
4372 8007 (0x1F47)
ID CLASSIC
ClassicTime 23:29:27  21/02/2015
4372 63047 (0xF647)
ID CLASSIC
ClassicTime 23:29:28  21/02/2015
4372 19271 (0x4B47)
ID CLASSIC
ClassicTime 23:29:29  21/02/2015
4372 40263 (0x9D47)



Result of

./newmodbus 192.168.254.144 4372\>8

1 second sleep, while [ 0 ] loop:
Code: [Select]

ID CLASSIC
ClassicTime 23:30:21  21/02/2015
4372 220
ID CLASSIC
ClassicTime 23:30:22  21/02/2015
4372 10
ID CLASSIC
ClassicTime 23:30:23  21/02/2015
4372 10
ID CLASSIC
ClassicTime 23:30:24  21/02/2015
4372 13
ID CLASSIC
ClassicTime 23:30:25  21/02/2015
4372 10
ID CLASSIC
ClassicTime 23:30:26  21/02/2015
4372 24
ID CLASSIC
ClassicTime 23:30:27  21/02/2015
4372 102
ID CLASSIC
ClassicTime 23:30:28  21/02/2015
4372 162
ID CLASSIC
ClassicTime 23:30:29  21/02/2015
4372 31
ID CLASSIC
ClassicTime 23:30:30  21/02/2015
4372 227
ID CLASSIC
ClassicTime 23:30:31  21/02/2015
4372 157

Wanted: Schrödinger's cat, dead and alive.

Offline rossw

  • Senior Moderator
  • Hero Member
  • *******
  • Posts: 879
  • Karma: +35/-0
  • Grumpy-old-Unix-Admin
Re: My Scratch Pad
« Reply #109 on: February 22, 2015, 01:42:23 am »
Unless you've hacked my source, newmodbus doesn't have a shift-left operator  (<), only shift-right (>), divide (/), multiply (*), modulo (%), assign (=) and convert-to-fahrenheit (f)

Offline tomw

  • Not as bad as you might think
  • Senior Moderator
  • Hero Member
  • *******
  • Posts: 739
  • Karma: +35/-0
  • hoplophobic people will fear my lifestyle
    • Zubbly's photos!
Re: My Scratch Pad
« Reply #110 on: February 22, 2015, 12:12:12 pm »
Unless you've hacked my source, newmodbus doesn't have a shift-left operator  (<), only shift-right (>), divide (/), multiply (*), modulo (%), assign (=) and convert-to-fahrenheit (f)

So, what is the "current" version of it?

I am still using what must be an ancient version {1.0.20}.

Just getting back at some of this stuff after dismantling most of my system this Fall / Winter.

Tom
Do NOT mistake me for any kind of "expert".

( ?° ?? ?°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies

Offline rossw

  • Senior Moderator
  • Hero Member
  • *******
  • Posts: 879
  • Karma: +35/-0
  • Grumpy-old-Unix-Admin
Re: My Scratch Pad
« Reply #111 on: February 22, 2015, 02:03:24 pm »
So, what is the "current" version of it?

I am still using what must be an ancient version {1.0.20}.

G'day Tom. There obviously hasn't been enough wrong with it to require changes! (Same version still)

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #112 on: February 22, 2015, 08:40:00 pm »
Hehe Nope, no source hacking. It makes much more sense now...

If anyone is wondering, boB from Midnite explained how the register is encoded...

4372 is the WBJR temp register, and the "47" in the (0xXX47) hex output is the encoded temperature in deg C.

After masking off the high 8 bits and obtaining the 47, convert it to decimal.

0x47 = 71

Subtract 50 from this result to obtain deg C, 21 in this case.
Wanted: Schrödinger's cat, dead and alive.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #113 on: February 25, 2015, 08:40:05 am »
Took some time and drew up some basics... work in progress...

3775-0
Wanted: Schrödinger's cat, dead and alive.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #114 on: February 25, 2015, 09:19:25 am »
3777-0
Wanted: Schrödinger's cat, dead and alive.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #115 on: February 25, 2015, 09:59:42 am »
3779-0
Wanted: Schrödinger's cat, dead and alive.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #116 on: February 25, 2015, 03:48:34 pm »
3781-0

3783-1

3785-2
Wanted: Schrödinger's cat, dead and alive.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #117 on: February 25, 2015, 07:35:38 pm »
3787-0
Wanted: Schrödinger's cat, dead and alive.

Offline MadScientist267

  • Impossible Condition Curator
  • Moderator
  • Hero Member
  • *****
  • Posts: 1514
  • Karma: +44/-4
  • Rules? What rules?
Re: My Scratch Pad
« Reply #118 on: February 26, 2015, 07:10:14 am »
3789-0
Wanted: Schrödinger's cat, dead and alive.

Offline tomw

  • Not as bad as you might think
  • Senior Moderator
  • Hero Member
  • *******
  • Posts: 739
  • Karma: +35/-0
  • hoplophobic people will fear my lifestyle
    • Zubbly's photos!
Re: My Scratch Pad
« Reply #119 on: February 26, 2015, 07:22:35 am »
a dusting...
Do NOT mistake me for any kind of "expert".

( ?° ?? ?°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies