Jishar13 / pvbeancounter

Automatically exported from code.google.com/p/pvbeancounter
1 stars 0 forks source link

New PVBC Wont Connect to SB4000TL #88

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Have all running on my main laptop (vista) no probs. 

Set-up on old XP laptop (latest version standard install) . 

Explorer will connect to SB4000TL. It works if I click on the sunneyexplorer 
file in the PVoutput folder .. connects find and displays data. 

However when I start PV Bean Counter , passes the diag test .. loads explorer 
but shows a failed to connect in the log attached.

Any advice greatly appreciated 

Peter

Original issue reported on code.google.com by pwwukpw on 3 Aug 2011 at 1:00

GoogleCodeExporter commented 8 years ago
The most likely cause is the Bluetooth drivers in use on the old notebook.

I have found that some Toshiba and Blue Soliel bluetooth drivers do not work 
with software running under the "Local Service" account, or possibly software 
that is not associated with the Windows UI login session.

You could try changing the account used by the PVService.exe service. As below:

....use Control Panel / Services to change the credentials used by PVBC when it 
is running. Change the log on account in services for PVBC to "local system 
account" and check the box "allow services to interact with desktop". This 
worked for at least one other PVBC user who had Toshiba bluetooth hardware. 
(Note that you will need to do this after each install of a new version of 
PVBC).

....alternatively you could try replacing the bluetooth drivers (only try this 
if you arre confident you can remove and reinstall the drivers

....or you could buy an inexpensive USB bluetooth adapter. I have a Belkin USB 
bluetooth that uses Broadcom drivers. This works well. It cost me about $30.

Dennis M-F

Original comment by DennisMackayFisher on 3 Aug 2011 at 9:09

GoogleCodeExporter commented 8 years ago

Original comment by DennisMackayFisher on 3 Aug 2011 at 9:10

GoogleCodeExporter commented 8 years ago
Thanks again for your advice .. 

I changed the PVService.exe to Admin & Peter .. no joy .. 

I ordered and received a Belkin BT Adaptor .. 

Same issue .. 

PVBC run sunnyexplorer .. (SYSTEM) and it loads .. 

The Bluetooth ICON light & the Bluetooth light on the inverter lights for 2-3 
seconds .. 

No data is downloaded and 'failed' connect in the log 

Peter

--------------------------------------------------------------------------------
-----------------------

05/08/2011 15:10:03 :T1 :PVService: PVService loaded - version:1.5.0.12
05/08/2011 15:10:03 :T4 :PVService: Start requested
--------------------------------------------------------------------------------
--------------------------------------------------------
Timeline Content
--------------------------------------------------------------------------------
--------------------------------------------------------
Start: 00:00:00 - End: 05:59:00 - Sleeping - EveningSuspend - Mandatory
Start: 06:00:00 - End: 19:59:00 - Running - EveningSuspend
Start: 20:00:00 - End: 23:59:00 - Sleeping - EveningSuspend - Mandatory
--------------------------------------------------------------------------------
--------------------------------------------------------
05/08/2011 15:10:13 :T5 ExecutionManager :ExecutionStateManager: State: Running 
Until:05/08/2011 20:00:00
05/08/2011 15:10:22 :T5 ExecutionManager :InverterManagerManager: StartService: 
connecting to database: Data Source=C:\PVRecords\pvhistory.s3db
05/08/2011 15:10:26 :T5 ExecutionManager :InverterManagerManager: Loading 
Inverter Managers
05/08/2011 15:10:27 :T5 ExecutionManager :Sunny Explorer: Inverter Manager - Id 
= 2 loading
05/08/2011 15:10:27 :T5 ExecutionManager :Sunny Explorer: Inverter Manager - Id 
= 2 loaded
05/08/2011 15:10:27 :T3 Sunny Explorer Inverter Mgr :GenThread.RunThread: 
Thread starting - SunnyExplorerInverterManager
05/08/2011 15:10:27 :T3 Sunny Explorer Inverter Mgr :Sunny Explorer: DoWork - 
Inverter Manager - Id = 2 - manager running
05/08/2011 15:10:27 :T3 Sunny Explorer Inverter Mgr :GenThread.RunThread: 
Thread started - SunnyExplorerInverterManager
05/08/2011 15:10:27 :T5 ExecutionManager :InverterManagerManager: Inverter 
Managers Loaded
05/08/2011 15:10:27 :T6 PVOutput Manager :GenThread.RunThread: Thread starting 
- PVOutputUtilities
05/08/2011 15:10:27 :T5 ExecutionManager :SystemServices: SetupWakeEvent - 
Timer 1: 06/08/2011 06:00:00 - Timer 2: 07/08/2011 06:00:00
05/08/2011 15:10:27 :T6 PVOutput Manager :PVOutputUtilities: pvoutput.org 
update started
05/08/2011 15:10:27 :T6 PVOutput Manager :GenThread.RunThread: Thread started - 
PVOutputUtilities
05/08/2011 15:10:28 :T3 Sunny Explorer Inverter Mgr :FindCompleteDays: limit 
day: 02/08/2011 00:00:00
05/08/2011 15:10:28 :T3 Sunny Explorer Inverter Mgr :FindCompleteDays: SQLite 
adjusted limit day: 01/08/2011 00:00:00
05/08/2011 15:10:28 :T7 :SystemServices: ChangeTimer - Timer 1 set - wake at: 
06/08/2011 06:00:00
05/08/2011 15:10:28 :T8 :SystemServices: ChangeTimer - Timer 2 set - wake at: 
07/08/2011 06:00:00
05/08/2011 15:10:28 :T3 Sunny Explorer Inverter Mgr :FindInCompleteDays: day: 
02/08/2011 00:00:00
05/08/2011 15:10:28 :T3 Sunny Explorer Inverter Mgr :FindInCompleteDays: day: 
03/08/2011 00:00:00
05/08/2011 15:10:28 :T3 Sunny Explorer Inverter Mgr :FindInCompleteDays: day: 
04/08/2011 00:00:00
05/08/2011 15:10:28 :T3 Sunny Explorer Inverter Mgr :FindInCompleteDays: day: 
05/08/2011 00:00:00
05/08/2011 15:10:28 :T3 Sunny Explorer Inverter Mgr :SunnyExplorerExtractCSV: 
Starting SunnyExplorer: "C:\PVRecords\SunnyExplorer.sx2" -userlevel user 
-password "0000" -exportdir "C:\PVRecords" -exportrange "20110802-20110805" 
-export energy5min
05/08/2011 15:10:31 :T3 Sunny Explorer Inverter Mgr :SunnyExplorerExtractCSV: 
SunnyExplorer Started - waiting
05/08/2011 15:10:38 :T6 PVOutput Manager :PVOutputUtilities: DoWork: running 
update
05/08/2011 15:10:57 :T5 ExecutionManager :ExecutionStateManager: State: Running 
Until:05/08/2011 20:00:00
05/08/2011 15:10:57 :T5 ExecutionManager :SystemServices: SetupWakeEvent - 
Timer 1: 06/08/2011 06:00:00 - Timer 2: 07/08/2011 06:00:00
05/08/2011 15:10:57 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
1 already set: 06/08/2011 06:00:00
05/08/2011 15:10:57 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
2 already set: 07/08/2011 06:00:00
05/08/2011 15:11:27 :T5 ExecutionManager :SystemServices: SetupWakeEvent - 
Timer 1: 06/08/2011 06:00:00 - Timer 2: 07/08/2011 06:00:00
05/08/2011 15:11:27 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
1 already set: 06/08/2011 06:00:00
05/08/2011 15:11:27 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
2 already set: 07/08/2011 06:00:00
05/08/2011 15:11:57 :T5 ExecutionManager :SystemServices: SetupWakeEvent - 
Timer 1: 06/08/2011 06:00:00 - Timer 2: 07/08/2011 06:00:00
05/08/2011 15:11:57 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
1 already set: 06/08/2011 06:00:00
05/08/2011 15:11:57 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
2 already set: 07/08/2011 06:00:00
05/08/2011 15:12:00 :T3 Sunny Explorer Inverter Mgr :SunnyExplorerExtractCSV: 
SunnyExplorer Completed: exit code = 0
05/08/2011 15:12:00 :T3 Sunny Explorer Inverter Mgr :SunnyExplorerExtractCSV: 
Sunny Explorer - Standard Output: 
CSV-Export: establishing connection to plant ...
CSV-Export: establishing connection to plant failed!
05/08/2011 15:12:00 :T3 Sunny Explorer Inverter Mgr :SunnyExplorerExtractCSV: 
Sunny Explorer - Error Output: 
[05.08.2011 14:12:43.860] [SetAdapterCommand] command 1156 on adapter 16 with 
result 0
[05.08.2011 14:12:43.270] [CAdptrMgrWorker::DispatchCmd] command 1156
[05.08.2011 14:12:43.272] [CAdptrMgrWorker::DispatchCmd] All needed records 
have been created with res = 0
[05.08.2011 14:12:50.312] [CAdptrMgrWorker::UpdateStatus] status 1148
[05.08.2011 14:12:50.347] [WaitForAdapterStatus] result 1148
[05.08.2011 14:12:50.368] [SetAdapterCommand] command 1157 on adapter 16 with 
result 0
[05.08.2011 14:12:50.398] [CAdptrMgrWorker::DispatchCmd] command 1157
[05.08.2011 14:12:54.434] [CAdptrMgrWorker::UpdateStatus] status 1211
[05.08.2011 14:12:54.474] [WaitForAdapterStatus] result 1211
05/08/2011 15:12:00 :T3 Sunny Explorer Inverter Mgr :SunnyExplorerExtractCSV: 
returning
05/08/2011 15:12:00 :T3 Sunny Explorer Inverter Mgr :FindCompleteDays: limit 
day: 02/08/2011 00:00:00
05/08/2011 15:12:00 :T3 Sunny Explorer Inverter Mgr :FindCompleteDays: SQLite 
adjusted limit day: 01/08/2011 00:00:00
05/08/2011 15:12:01 :T3 Sunny Explorer Inverter Mgr :FindInCompleteDays: day: 
02/08/2011 00:00:00
05/08/2011 15:12:01 :T3 Sunny Explorer Inverter Mgr :FindInCompleteDays: day: 
03/08/2011 00:00:00
05/08/2011 15:12:01 :T3 Sunny Explorer Inverter Mgr :FindInCompleteDays: day: 
04/08/2011 00:00:00
05/08/2011 15:12:01 :T3 Sunny Explorer Inverter Mgr :FindInCompleteDays: day: 
05/08/2011 00:00:00
05/08/2011 15:12:02 :T6 PVOutput Manager :PVOutputUtilities: pvoutput.org - 
Auto Backload starting - 1 of 4
05/08/2011 15:12:03 :T6 PVOutput Manager :PVOutputUtilities: BackloadPVOutput : 
no suitable days in database: oldestDay:  : maxDay : 22/07/2011 00:00:00
05/08/2011 15:12:03 :T6 PVOutput Manager :PVOutputUtilities: pvoutput.org - 
Auto Backload completed
05/08/2011 15:12:03 :T6 PVOutput Manager :PVOutputUtilities: DoWork - Preparing 
Yield Load List
05/08/2011 15:12:03 :T6 PVOutput Manager :PVOutputUtilities: DeleteOldLogEntries
05/08/2011 15:12:03 :T6 PVOutput Manager :PVOutputUtilities: DoWork - running 
LoadPVOutputBatch
05/08/2011 15:12:28 :T5 ExecutionManager :SystemServices: SetupWakeEvent - 
Timer 1: 06/08/2011 06:00:00 - Timer 2: 07/08/2011 06:00:00
05/08/2011 15:12:28 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
1 already set: 06/08/2011 06:00:00
05/08/2011 15:12:28 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
2 already set: 07/08/2011 06:00:00
05/08/2011 15:12:58 :T5 ExecutionManager :SystemServices: SetupWakeEvent - 
Timer 1: 06/08/2011 06:00:00 - Timer 2: 07/08/2011 06:00:00
05/08/2011 15:12:58 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
1 already set: 06/08/2011 06:00:00
05/08/2011 15:12:58 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
2 already set: 07/08/2011 06:00:00
05/08/2011 15:13:28 :T5 ExecutionManager :SystemServices: SetupWakeEvent - 
Timer 1: 06/08/2011 06:00:00 - Timer 2: 07/08/2011 06:00:00
05/08/2011 15:13:28 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
1 already set: 06/08/2011 06:00:00
05/08/2011 15:13:28 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
2 already set: 07/08/2011 06:00:00
05/08/2011 15:13:58 :T5 ExecutionManager :SystemServices: SetupWakeEvent - 
Timer 1: 06/08/2011 06:00:00 - Timer 2: 07/08/2011 06:00:00
05/08/2011 15:13:58 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
1 already set: 06/08/2011 06:00:00
05/08/2011 15:13:58 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
2 already set: 07/08/2011 06:00:00
05/08/2011 15:14:28 :T5 ExecutionManager :SystemServices: SetupWakeEvent - 
Timer 1: 06/08/2011 06:00:00 - Timer 2: 07/08/2011 06:00:00
05/08/2011 15:14:28 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
1 already set: 06/08/2011 06:00:00
05/08/2011 15:14:28 :T5 ExecutionManager :SystemServices: SetupWakeEvent: Timer 
2 already set: 07/08/2011 06:00:00

Original comment by pwwukpw on 5 Aug 2011 at 2:20

GoogleCodeExporter commented 8 years ago
Sunny Explorer has some quirks that tend to catch you out!

If using the new USB adapter, ensure the other (original) bluetooth device is 
disabled or even uninstalled. If both are present I suspect PVBC could continue 
to use the original.

The SunnyExplorer.sx2 file only works with the Bluetooth drivers / hardware in 
use when it was created. Rename the existing SunnyExplorer.sx2 file so that you 
can get it back if you need it. Recreate the SunnyExplorer.sx2 file with the 
new Bluetooth hardware / drivers. (Follow the instructions on the Wiki)

I suspect that this will get you going (I hope)

Dennis M-F

Original comment by DennisMackayFisher on 6 Aug 2011 at 9:15

GoogleCodeExporter commented 8 years ago
Dennis .. 

Sorry I'd already tried that from the FAQs. (before the log above) 

Turned off (switch) the onboard bluetooth.
I deleted the SunnyExplorer.sx2 file .. 

Re ran Sunny Exploer .. Created a new profile (called SunnyExplorer) .. found 
the Inverter ID4 Pass 0000 .. Gets the data OK. Copied the new .sx2 file in to 
the PVrecords directory .. PVBC runs up .. See a black CMD box as Sunnyexplorer 
loads (see it running in the task manager ..) Bluetooth lights up on the status 
bar .. Bluetooth lights up on the inverter for 2-3 seconds .. then goes out .. 
no data downloaded & Failed connect message as per log above .. 

Anything else I can try ? 

Thank you so much .. 

Peter

Original comment by pwwukpw on 6 Aug 2011 at 10:58

GoogleCodeExporter commented 8 years ago
I've remove SE and PVBC. 

I reinstalled SE with the new Belkin BT adaptor in place and other disabled. 

SE works fine .. every time .. (run as 'PETER') 

But when SE is called by PVBC (runs as 'SYSTEM') it fails to connect 

Any ideas ? 

Many thanks 

Peter

Original comment by pe...@nhsfr.org.uk on 11 Aug 2011 at 10:37

GoogleCodeExporter commented 8 years ago
I assume the errors are still:

05/08/2011 15:12:00 :T3 Sunny Explorer Inverter Mgr :SunnyExplorerExtractCSV: 
Sunny Explorer - Standard Output: 
CSV-Export: establishing connection to plant ...
CSV-Export: establishing connection to plant failed!

Try changing the "Bluetooth Service" and "Bluetooth Support Service" to run 
under "Local System" account and check Allow service to interact with desktop.

Reboot after making these changes to ensure the services are restarted with new 
settings.

This is clutching at straws. Something is preventing Sunny Explorer from 
accessing the Bluetooth drivers when it is run from a service. Apart from 
changing the credentials of the services, I have no other ideas.

Dennis M-F

Original comment by DennisMackayFisher on 11 Aug 2011 at 8:44

GoogleCodeExporter commented 8 years ago
Dennis .. 

Bluetooth as Local System with allow interact desktop no difference.

The Bean Counter now runs as [PETER] 

But the PVRecords runs as [SYSTEM]

When I run SB Explorer by clicking on the file in the PVRECORDS directory it  
runs as [PETER] and has no issues. 

When SB Explorer get run by PVrecords it runs as [SYSTEM] .. the bluetooth 
lights up briefly but with the fail to connect message in the log as per above 
.. Buying and installing the Belkin BT does not seem to have made any change .. 

Any ideas given the extra info ? 

Peter

Original comment by pe...@nhsfr.org.uk on 12 Aug 2011 at 3:21

GoogleCodeExporter commented 8 years ago
Debbis, 

Uninstantiated PVBC .. 

Re installed new version on Sun. 

Now PVBC runs (as [PETER]).. but when I start service .. PVRECORDS [SYSTEM] 
loads but then stops and DW20 runs for 30 seconds ? 

As SunnyExplorer is running perfect every time with the Belkin BT adaptor .. I 
cant be far off .. 

Peter

Original comment by pe...@nhsfr.org.uk on 15 Aug 2011 at 9:26

GoogleCodeExporter commented 8 years ago
Dennis .. sorry for the finger trouble !  Peter

Original comment by pwwukpw on 15 Aug 2011 at 9:51

GoogleCodeExporter commented 8 years ago
What do you mean by DW20?

I suggest you check "Trace", save settings, stop the service, delete or rename 
the old log file, run for half an hour and upload a copy of the new log file. 
Also upload the Settings.xml file.

Dennis M-F

Original comment by DennisMackayFisher on 15 Aug 2011 at 8:46

GoogleCodeExporter commented 8 years ago
As commented in issue 82 comment 28.....
I had a very similar problem where I could get one connection to the Sunny Boy 
4000TL either with Sunny Explorer or with PVBC with a Belkin USB BT dongle but 
to reconnect needed to reboot Windows.
The solution for me was here http://bluetoothinstaller.com which forced ( I 
believe) Microsoft BT Drivers/Stack to be used with the Belkin - the connection 
now very happy!

Original comment by johnwdo...@gmail.com on 26 Aug 2011 at 10:06

GoogleCodeExporter commented 8 years ago
Thank you will try this weekend

Dw error is sorted so just the Bluetooth issue to sort from pvrecords
(fine from sunnyexplore)

Peter

Sent from my iPhone 4

On 26 Aug 2011, at 11:06, "pvbeancounter@googlecode.com"
<pvbeancounter@googlecode.com> wrote:

Original comment by pwwukpw on 26 Aug 2011 at 1:14

GoogleCodeExporter commented 8 years ago
Is this still a problem?

Have you succeeded? I collect solutions to problems for future reference.

Dennis M-F

Original comment by DennisMackayFisher on 4 Sep 2011 at 12:36

GoogleCodeExporter commented 8 years ago
Dennis, 

Not had much time to play .. but did work in it yesterday. 

Had to remove the BT device.  Remove all drivers .. find them on disk so they 
would not auto install. 

Then attached using http://bluetoothinstaller.com  as John suggested .. 

Did not work 1st time .. but on 2nd try it recognised the adaptor and added its 
driver. 

All the data came down from the SMA and uploaded ! 

Been running now for 24 Hrs  ,, Brilliant ! 

TY VM ! 

Peter 

http://pvoutput.org/intraday.jsp?id=3827&sid=3014 

Original comment by pe...@nhsfr.org.uk on 4 Sep 2011 at 10:58

GoogleCodeExporter commented 8 years ago

Original comment by DennisMackayFisher on 4 Sep 2011 at 11:52