navitron
 
Renewable Energy and Sustainability Forum
UK's most popular Renewable Energy Forum May 25, 2012, 03:57:10 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Anyone wishing to register as a new member on the forum is strongly recommended to use a "proper" email address - following recent spam/hack attempts on the forum, all security is set to "high", and "disposable" email addresses like Gmail, Yahoo and Hotmail tend to be viewed with suspicion, and the application rejected if there is any doubt whatsoever
 
Recent Articles: UPDATE ON DECC APPLICATION FOR LEAVE TO APPEAL TO THE SUPREME COURT | Yingli Green Energy's PV Module Ranks No.2 in TUV Rheinland Energy Yield Test | Navitron Solar Showers at Glastonbury for Year 5!
   Home   Help Search Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: Networking help needed for 1-Wire/ SQL database  (Read 2286 times)
StBarnabas
Hero Member
*****
Offline Offline

Posts: 2111


St Barnabas Chapel (2009)


« on: September 23, 2009, 06:38:41 PM »

Want to get my 1-Wire system on a more serious basis. Have a PC with Network card in the attic which can see my LINKSYS wireless/router/ADSL box (192.168.1.1) via the local wireless network address of attic PC is  192.168.1.102. My main PC is hardwired to the LINKSYS box (ethernet) and I want to be able to access the SQL tables from it. I was going to set up an ad hoc network but the main PC and attic ones are too far away to be visible from each other. I have set up file sharing but am unable to see the attic PC. Any suggestions anyone?
Logged


Gestis Censere. 40x47mm DHW with TDC3. 3kW ASHP, 9kW GSHP, 3kW Navitron PV with Platinum 3100S GTI, 6.5kW WBS, 5 chickens. FMY 2009.
CeeBee
Hero Member
*****
Offline Offline

Posts: 827


WWW
« Reply #1 on: September 23, 2009, 06:50:49 PM »

Sounds liks it should just work. What's the IP address of the main PC then? Given that you seem to be using 192.168.1.*, then I'd imagine it should be some number like that, with something other than 1 or 102 for '*'. If it's (say) 192.168.0.* then there might be more difficulty.

Can you 'ping' the PCs from each other? i.e. DOS command box, ping 192.168.1.102 etc. and see whether it says "Reply...". That had better work before anything else will.

When you say "can't see", what are you trying? I never know how windows works out 'names' corresponding to IP addresses - seems like a black art sometimes. So rather than just peering in "Network neighbourhood", "My network", or whatever it's called today, try (after setting up some shared folders) Start Button, then Run..., then type e.g.  \\192.168.1.102 in the box
« Last Edit: September 23, 2009, 07:39:35 PM by CeeBee » Logged

StBarnabas
Hero Member
*****
Offline Offline

Posts: 2111


St Barnabas Chapel (2009)


« Reply #2 on: September 23, 2009, 07:02:49 PM »

Hi Clarke,
thanks Ping certainly seems to work but map does not. Winders don't you just love it!


* ping1.gif (9 KB, 668x335 - viewed 239 times.)

* map1.gif (13.24 KB, 649x368 - viewed 245 times.)
Logged


Gestis Censere. 40x47mm DHW with TDC3. 3kW ASHP, 9kW GSHP, 3kW Navitron PV with Platinum 3100S GTI, 6.5kW WBS, 5 chickens. FMY 2009.
CeeBee
Hero Member
*****
Offline Offline

Posts: 827


WWW
« Reply #3 on: September 23, 2009, 07:07:36 PM »

"Map network drive" wants a share name on the end of the string: e.g. \\192.168.1.102\share (where 'share' is the name you gave it when you set the folder shared). Have you actually set any particular folder to be shared, even the whole drive if you must?

Try what I said with Start Button, then Run... - it should list all available shares rather than just trying to connect to a particular one.
« Last Edit: September 23, 2009, 07:39:53 PM by CeeBee » Logged

sleepybubble
Hero Member
*****
Offline Offline

Posts: 988


expect the unexpected, then its expected


« Reply #4 on: September 23, 2009, 07:16:42 PM »

Ok just to translate to my own way of thinking...

You have a PC in the attic acting as an SQL server, upon which you have allowed Windows file sharing.
You have this machine connected to you network via wireless.

You have a workstation on the network connected to the switch/router via cables.

Firstly can you 'see' the server using network browsing, or can you ping the server from the command prompt. This will proove network connectivity.

Secondly On the SQL server have you allowed remote connections in SQL? I know that in MySQL on linux you have to define which users and address ranges can connect to the server.

Just starting points for now....

Oh by the way if you activate RAS on the server machine you can drive it from the client as if you were sat at it....

<edit> as Ceebee posted before me... if you can ping, then you should see the machine, things to look out for within the vageries of windows networking, it can take a while for machines to notice each other, up to 15 minutes. It helps if they are in the same WORKGROUP.

It helps to disable windows firewall completely, you dont actually need it as your ADSL router is already acting as a firewall, it just prevents cross contamination within a windows networking framework. If you dont disable it, it will soon annoy you with permission requests.

</edit>
Logged

;-)
wyleu
Guest
« Reply #5 on: September 23, 2009, 07:42:49 PM »

Any chance of a diagram? Pictures?, long winded moments of spontaneous enlightenment mixed with crushing realisation?
What are you running your one-wire kit on? presumably MySQL and Digitemp?

Is the PC genuinely in the attic? I have found PC's don't last long there.


Logged
StBarnabas
Hero Member
*****
Offline Offline

Posts: 2111


St Barnabas Chapel (2009)


« Reply #6 on: September 23, 2009, 08:59:14 PM »

Help slow down!

My DB skills are limited to MS Access. As stared before what I can do possibly better than most on the forum is to create physical models of systems- algorithm driven rather than data driven applications! Anyway what I wish to do is to run things from the comfort of the chancel- because  I want to connect to the SQL server on the attic PC and pull out one-wire data.  CeeBee yes I have sort of mapped my attic PC - I shared my c: drive root - difficult to see this even inside the chapel so not worried about hackers...

Wyleu I will try to get photos tomorrow..

The attic environment is transformed since the PV went in. Used to boil in sunshine but now cool! 




How sophisticated do I need my tank model to be to mimic the StB tank?
Logged


Gestis Censere. 40x47mm DHW with TDC3. 3kW ASHP, 9kW GSHP, 3kW Navitron PV with Platinum 3100S GTI, 6.5kW WBS, 5 chickens. FMY 2009.
sleepybubble
Hero Member
*****
Offline Offline

Posts: 988


expect the unexpected, then its expected


« Reply #7 on: September 23, 2009, 09:08:19 PM »

I think to make things easy for you, if it is a PC running windows Remote access is going to be your friend. Look it up in windows help....

If you are thinking of logging temperatures to MsAccess I would think again... Acess is a nice tool for mocking up Relational databases, and playing with interfaces etc but its not the best of tools as a 'server'. Don't be scared of coding in SQL its really simple and there is loads of online support for it.
I don't know if there is a version of MySQL which runs on windows, (there is bound to be!) but it would be worth installing that instead of access as your backend.
You can still use Access as your client software if you find coding a bit scary...
Logged

;-)
wyleu
Guest
« Reply #8 on: September 23, 2009, 09:17:23 PM »

MySQL is emerging is a db of choice, largely as digitemp spit's out to it. There is a windows implementation and it does what it say's on the tin.
Please avoid access for deep storage, as sleepy bubble says it has it's uses but they ain't this sort of application.

Now that doesn't mean you have to throw everything you know away. There is a thing called ODBC which is a clever little thing Microsoft did invent. ODBC is a layer that allows you to declare a Data source  which can be interpreted by Microsoft applications fairly easily.  This includes Access AND Excel, so if you can mock up a MySQL database as an OBC source in Microsoft land ( and you most certainly can http://www.google.co.uk/search?q=ODBC+MySQL&ie=utf-8&oe=utf-8) then all those hardwon skill in Excel can be put to good use on your temperature data stored in MySQL. Ain't that great everyone is happy. You can draw sexy graphs in Excel from MySQL data generated by Digitemp.

We will dance till dawn if Ivan will organise another party...   Roll Eyes
Logged
StBarnabas
Hero Member
*****
Offline Offline

Posts: 2111


St Barnabas Chapel (2009)


« Reply #9 on: September 23, 2009, 09:54:31 PM »

Guys
thanks. Maybe we can do something great here! I know little about databases but I do understand algorithms and can plot graphs. Excel is kindergarden from my point of view.   I can do modelling - will need a good algorithmic engine such as Octave. Sorry I am lazy and use Matlab  - but need a 100th order differential equation solving?
Logged


Gestis Censere. 40x47mm DHW with TDC3. 3kW ASHP, 9kW GSHP, 3kW Navitron PV with Platinum 3100S GTI, 6.5kW WBS, 5 chickens. FMY 2009.
wyleu
Guest
« Reply #10 on: September 24, 2009, 09:23:17 AM »

Fantastic!

Really if we can produce a lowest common denominator system using generally available analysis tools like excel then that would be a great starting point. The important thing is to modularise things so each component is small and good at what it does. The temptation to believe that there is one solution say, Microsoft Measure or some such is not really the way to go.

But of course the sotfware salesmen won't like that approach, perhaps we can manage without them  Grin
Logged
kristen
Hero Member
*****
Offline Offline

Posts: 1568


« Reply #11 on: September 24, 2009, 01:33:52 PM »

"I want to connect to the SQL server on the attic PC"

I'm reading that as "Grown up SQL" rather than "MS Access"?

MySQL probably the preferred tool-of-choice as it is the LCD for this type of job.

MS SQL is my day job, so happy to help with that if you go down that route. I'll PM you a phone number in case you need it
Logged
StBarnabas
Hero Member
*****
Offline Offline

Posts: 2111


St Barnabas Chapel (2009)


« Reply #12 on: September 24, 2009, 03:49:05 PM »

Hi Kristen
Many thanks. Yes it is MySQL on the attic PC and will take you up on your kind offer within the next week or two.
I am currently also writing to ascii files and have got that up and running as a stopgap. I have had a few hardware problems which has slowed things down a bit - the heat sink paste I am using tends to short out the sensors and my thermal contact is still not great - but am getting there. Rejigged the sensors this afternoon and have currently 7 tank sensors going. Will try to post a first image later today..


* tank1.jpg (39.89 KB, 800x1067 - viewed 234 times.)
Logged


Gestis Censere. 40x47mm DHW with TDC3. 3kW ASHP, 9kW GSHP, 3kW Navitron PV with Platinum 3100S GTI, 6.5kW WBS, 5 chickens. FMY 2009.
sleepybubble
Hero Member
*****
Offline Offline

Posts: 988


expect the unexpected, then its expected


« Reply #13 on: September 24, 2009, 04:44:45 PM »

don't know about MySQL on windows but under linux you need to edit my.cnf

Code:
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (using the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
server-id = 1

above is the relevent section... if the line with skip-networking isn't uncommented then you can only use the local machine for connections.
On my installation it remains commented as I use PHPMyAdmin for managing my database so basically all my SQL admin is done via a web interface, running on localhost.

Don't like the look of that proviso with regards windows machines and named pipes....

What was your linksys router again? can't it be flashed with  linux
Logged

;-)
StBarnabas
Hero Member
*****
Offline Offline

Posts: 2111


St Barnabas Chapel (2009)


« Reply #14 on: September 24, 2009, 05:36:45 PM »

Many thanks Guys
I have rather cheated today and read the text files directly. Was messing about with the sensors till about 3:00pm today - I still have some more to put in.  Here is the first tank false colour temperature image - does not look too exciting apart from maybe to graph nuts like me. You can ignore the stuff before about 3:00pm as I was connecting sensors up then. The rest of the graph is pretty boring (you should be able to see the ASHP warming the tank till about 15:20) Almost no solar today and no water drawn off. Over the next few days it should look more interesting. I will try to play around with the format. Any suggestions welcome...


* tankT1.jpg (71.87 KB, 1201x900 - viewed 218 times.)
« Last Edit: September 24, 2009, 05:40:28 PM by StBarnabas » Logged


Gestis Censere. 40x47mm DHW with TDC3. 3kW ASHP, 9kW GSHP, 3kW Navitron PV with Platinum 3100S GTI, 6.5kW WBS, 5 chickens. FMY 2009.
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!