• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Giamba
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 47
    • Best 2
    • Controversial 0
    • Groups 0

    Giamba

    @Giamba

    3
    Reputation
    871
    Profile views
    47
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Giamba Unfollow Follow

    Best posts made by Giamba

    • RE: Decode api.cgi vars

      Hi, thanks for the job.
      I found functions in UserJS that do the job:

      • parseRealFromHex
      • parseIntFromHex
      • parseValueFromHash
        ...
        Now I have to find how to provide the type to decode in the right way.
        I have to look in html5_shark.xsl to modify it

      Thanks

      posted in Mervis
      G
      Giamba
    • RE: Debugging mode probleme

      Got it!
      Each fdb programme must have an entry in PLC Tasks.

      posted in Mervis
      G
      Giamba

    Latest posts made by Giamba

    • Unipi 1.1 Analog Inputs

      I have a rain sensor from VELUX VXPRVX00081.
      I would like to measure the voltage at the 220K resistor. I need the lowest current possible to avoid electrolysis on the sensor so I think I can't acheive the bottom diagram.
      With the top diagram, my multimeter read the correct value of the voltage. More water, more current, more voltage. But once plugged in the AIx the value return by the MCP3422 is always at maximum.
      I'm using an external 12V power supply because of the internal sensor heater. The grounds are not connected together.
      I'm reading the value from cpp program with WiringPi and mcp3422.h. The gain is b00, the sample_rate is b11 and LSB 15.625. I red The K factor from the EEPROM.
      Here the _read funtion:

      float Analog_Input::_read() {
          std::lock_guard<std::mutex> lock(*i2cMutex);
          float value;
          value = analogRead (MCP3422_PIN_BASE + this->getChannel()) - 16;
          //std::cout << std::to_string(value) << std::endl;
          value = value * this->lsb / 1000 * this->getK() / 1000;
          //std::cout << std::to_string(value) << std::endl;
          return value;
      }
      

      So why I can't read the value of the voltage on the resistor, how to do ?
      Thanks in advance.
      Giamba.
      WhatsApp Image 2025-06-14 à 14.59.27_cbf19f60.jpg

      posted in Unipi 1 - First Generation
      G
      Giamba
    • RE: Push button relay toggle

      0_1545042847414_mervis.png

      posted in Mervis
      G
      Giamba
    • RE: Access to variables from another PLC

      Hi CKB.
      Yes it's ok for me now. Tested with example and with my project.

      posted in Mervis
      G
      Giamba
    • RE: Access to variables from another PLC

      Hi, this is the SSCP Server log. Can U tell me how is managed the login on the RT (maybe cookie with wrong acl) and if the sscp connection have to be permanant keep-alive because it seems to reconnect on each request.

      [10.05 09:16:44.863]      TSvr12346: New connection on port 12346 (remote 192.168.1.55:48494)
      [10.05 09:16:44.883] <->  TSvr12346: Assigned client context no. 0
      [10.05 09:16:46.909] <->  TSvr12346: Unassigned client context no. 0
      [10.05 09:16:46.914]      TSvr12346: New connection on port 12346 (remote 192.168.1.55:48496)
      [10.05 09:16:46.919] <->  TSvr12346: Assigned client context no. 0
      [10.05 09:16:48.959] <->  TSvr12346: Unassigned client context no. 0
      [10.05 09:16:48.965]      TSvr12346: New connection on port 12346 (remote 192.168.1.55:48498)
      [10.05 09:16:48.970] <->  TSvr12346: Assigned client context no. 0
      [10.05 09:16:51.010] <->  TSvr12346: Unassigned client context no. 0
      [10.05 09:16:51.015]      TSvr12346: New connection on port 12346 (remote 192.168.1.55:48500)
      [10.05 09:16:51.020] <->  TSvr12346: Assigned client context no. 0
      [10.05 09:16:53.060] <->  TSvr12346: Unassigned client context no. 0
      [10.05 09:16:53.066]      TSvr12346: New connection on port 12346 (remote 192.168.1.55:48502)
      [10.05 09:16:53.085] <->  TSvr12346: Assigned client context no. 0
      [10.05 09:16:55.111] <->  TSvr12346: Unassigned client context no. 0
      [10.05 09:16:55.116]      TSvr12346: New connection on port 12346 (remote 192.168.1.55:48504)
      [10.05 09:16:55.121] <->  TSvr12346: Assigned client context no. 0
      
      posted in Mervis
      G
      Giamba
    • RE: Tool Tips in HMI pannel...

      Hi!
      It's purely Javascript and DOM.
      If you have knowledge in this, you can take a look at http://www.voicerss.org/ which translates the text that you pass to in audio. With Javascript, you fetch all the elements of the DOM until you find those where you set an attribute (data-my-text-to-read) to define it's hhover event. Methode for all recents browsers.
      You can edit the sources of the HMI web pages in the web directory of your project directory.
      Hope that's help.

      posted in Mervis
      G
      Giamba
    • RE: Access to variables from another PLC

      Up @tomas_hora

      posted in Mervis
      G
      Giamba
    • RE: Access to variables from another PLC

      As seen in https://kb.mervis.info/lib/exe/fetch.php/cs:mervis-ide:sharkprotocolspecification_user_2017_05_30.pdf,
      In port monitor:
      On receiving:

      • 01 SSCP address
      • C5 00 Read variables directly error
      • 00 04 Data length
      • 00 00 01 14 NotLogged

      So I have a resonse, credentials seems too be wrong, but I have admin - rw on PLC configuration and SSCP Device.
      Do you have an explanation ?

      posted in Mervis
      G
      Giamba
    • RE: Access to variables from another PLC

      Hi,
      I test lots of configurations and doesn't work yet.
      This is what I have in mervis:
      !0_1525599211705_Mervis com.JPG
      And netstat command:
      0_1525599296587_tcp connexion.JPG
      So, plz, can U tell me what's wrong ?

      posted in Mervis
      G
      Giamba
    • RE: Access to variables from another PLC

      hi @CKB, @tomas_hora ,
      Same problem for me, did you find the solution ?
      Thanks.

      posted in Mervis
      G
      Giamba
    • RE: 1 Wire problems

      Hi @tomas_hora,

      So this is the chart I get of few hours with some unusual peaks and a unfortunate no signal blackout at the end for a couple of minutes.

      Could you please provide me a chart that shows on a long term basis multiple 1wire sensors curves to make sure that the product (sensors and hub) you sold on you website are reliable.
      Thanks in advance.

      0_1510526864647_temp chart.png

      posted in Mervis
      G
      Giamba