Forfatter Emne: rasperry pi 2 og Pellmon ingen forbindelse  (Læst 4122 gange)

0 Medlemmer og 1 Gæst læser dette emne.

Offline Profft

  • Øvet
  • **
  • Indlæg: 30
  • Respekt optjent: +0/-0
    • Fyr online
rasperry pi 2 og Pellmon ingen forbindelse
« Dato: Okt 31, 2015, 15:07 »
Jeg har opgivet stokerkontrol på min rasperry men er nu gået igang med Pellmon.

Det er også gået godt.

Men

Jeg kan ikke få kontakt mellem pillefyr og Pellmon den står bare på "Connecting..."

Nogle forslag, er kørt fast :-/
Hvorfor være besværlig når man med en lille smule omhu kan blive fuldstændig umulig.

Offline kivi

  • Top of the pop
  • *****
  • Indlæg: 352
  • Respekt optjent: +6/-0
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #1 Dato: Okt 31, 2015, 15:56 »
Jeg går ud fra du benytter en USB til seriel adapter, virker den?
Mvh
Ole
BlackStar 1016, 16 kW, V6.76, 160+54 m2,  kompressorrens, 300L VVB med solfanger, Pellmon på Raspberry pi

Offline Profft

  • Øvet
  • **
  • Indlæg: 30
  • Respekt optjent: +0/-0
    • Fyr online
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #2 Dato: Okt 31, 2015, 16:00 »
Ja det skulle jeg mene.

Den kommer i hverfald frem når jeg skriver lsusb
Hvorfor være besværlig når man med en lille smule omhu kan blive fuldstændig umulig.

Offline kivi

  • Top of the pop
  • *****
  • Indlæg: 352
  • Respekt optjent: +6/-0
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #3 Dato: Okt 31, 2015, 16:08 »
Og du har givet Pellmon lov til at benytte seriel porten som beskrevet i Readme.

Mvh
Ole
BlackStar 1016, 16 kW, V6.76, 160+54 m2,  kompressorrens, 300L VVB med solfanger, Pellmon på Raspberry pi

Offline Profft

  • Øvet
  • **
  • Indlæg: 30
  • Respekt optjent: +0/-0
    • Fyr online
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #4 Dato: Okt 31, 2015, 16:20 »
Ja og den skriver sådan her i events

2015-10-31 17:19:15,437 - INFO - Activated plugins: ScotteCom, SiloLevel, Consumption
2015-10-31 17:19:15,420 - INFO - version detection failed
2015-10-31 17:19:15,401 - INFO - Timeout again, give up and return fail
2015-10-31 17:19:13,380 - INFO - Timeout again, give up and return fail
2015-10-31 17:19:11,336 - INFO - serial port ok
2015-10-31 17:19:10,860 - INFO - starting pelletMonitor
2015-10-31 17:10:51,288 - INFO - Activated plugins: ScotteCom, SiloLevel, Consumption
Hvorfor være besværlig når man med en lille smule omhu kan blive fuldstændig umulig.

Offline Profft

  • Øvet
  • **
  • Indlæg: 30
  • Respekt optjent: +0/-0
    • Fyr online
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #5 Dato: Okt 31, 2015, 16:34 »
Kan det være porten der er forkert?
og hvor retter jeg evt den?

Citér
Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x067b Prolific Technology, Inc.
  idProduct          0x2303 PL2303 Serial Port
  bcdDevice            3.00
  iManufacturer           1 Prolific Technology Inc.
  iProduct                2 USB-Serial Controller
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0000
  (Bus Powered)
Hvorfor være besværlig når man med en lille smule omhu kan blive fuldstændig umulig.

Offline kivi

  • Top of the pop
  • *****
  • Indlæg: 352
  • Respekt optjent: +6/-0
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #6 Dato: Okt 31, 2015, 16:58 »
Her kommer jeg nok lidt til kort ???

Mine Linux evner er desværre rimeligt begrænsede.

Men Motoz plejer at svare hurtigt på spørgsmål her i forummet, så mon ikke han kan jeg hjælpe.
Mvh
Ole
BlackStar 1016, 16 kW, V6.76, 160+54 m2,  kompressorrens, 300L VVB med solfanger, Pellmon på Raspberry pi

Offline Profft

  • Øvet
  • **
  • Indlæg: 30
  • Respekt optjent: +0/-0
    • Fyr online
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #7 Dato: Nov 01, 2015, 18:13 »
Jeg ved heller ikke meget om Linux, så det er godt Google kan hjælpe hjælpe lidt :-)

Nu har jeg prøvet at starte helt forfra med at geninstaller raspberry og lægge pellmon på igen og jeg kommer frem til samme resultat :-/

Så jeg håber der er nogle der har et løsningsforslag?

Hvorfor være besværlig når man med en lille smule omhu kan blive fuldstændig umulig.

Offline kivi

  • Top of the pop
  • *****
  • Indlæg: 352
  • Respekt optjent: +6/-0
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #8 Dato: Nov 01, 2015, 18:22 »
Og du har fulgt installationsvejledningen slavisk og husket de såkaldte dependendies.
Mvh
Ole
BlackStar 1016, 16 kW, V6.76, 160+54 m2,  kompressorrens, 300L VVB med solfanger, Pellmon på Raspberry pi

Offline Profft

  • Øvet
  • **
  • Indlæg: 30
  • Respekt optjent: +0/-0
    • Fyr online
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #9 Dato: Nov 01, 2015, 19:18 »
Ja det har jeg.

Har prøvet igen og den skriver de er opdateret.
Hvorfor være besværlig når man med en lille smule omhu kan blive fuldstændig umulig.

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #10 Dato: Nov 03, 2015, 06:44 »
Hello Profft.

First, run this in the terminal:
Kode: [Vælg]
ls /dev/ttyU*then you should see:
Kode: [Vælg]
/dev/ttyUSB0
But that hardly is the problem.

Looking at your message history I found that at some point you had chip version 4.13. Is that still the case?

Pellmon is made according to the protocol specifications found here http://www.nbe.dk/download/pc-kommunikation.html, starting from version 4.99. I know that older versions did communication slightly different (no checksums), but since I don't have any specifications or access to a control box with the old chip I had to guess how to handle it.

PellMon does try to work with a chip that responds without checksum but the code is untested and might be wrong. It works like this: if there is no answer on version detection to a request with checksum then PellMon resends the request without checksum and expects a response without checksum. It is possible that the request should still have a checksum even though the response doesn't have it, or vice versa, or the code might be buggy since I couldn't test it. Another possibility of course is that these old chips have completely different communication.

Anyway, If you are interested we could try to work out a solution (which involves you trying out possibly several different test versions of pellmon), otherwise chip version 4.99 should work fine.


Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline Profft

  • Øvet
  • **
  • Indlæg: 30
  • Respekt optjent: +0/-0
    • Fyr online
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #11 Dato: Nov 03, 2015, 20:24 »
I am with to try different versions.
Hvorfor være besværlig når man med en lille smule omhu kan blive fuldstændig umulig.

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: rasperry pi 2 og Pellmon ingen forbindelse
« Svar #12 Dato: Nov 15, 2015, 17:48 »
Thanks to the patient cooperation by Profft we now have support for V4 control boxes older than 4.17 in PellMon version 0.3.0

(PellMon finally has a version number, releases and a changelog)

https://github.com/motoz/PellMon/releases

I'm still not quite sure how V4 boxes from 4.17 but older than 4.99 and the earliest V5 boxes behave. PellMon tries to handle them anyway but I haven't gotten any feedback on those yet.
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon