mainDataExplorer - Support: sr #110540, Support of MegaCellCharger

 
 

sr #110540: Support of MegaCellCharger

Submitter:  None
Submitted:  Wed 15 Sep 2021 08:45:51 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 24 Sep 2021 09:10:24 PM UTC, comment #2: 

I'm not a java programmer :(
So it will be hard to me to extend gde.comm.IDeviceCommPort.java interface class to cover TCP/HTTP requests.

If you could do this hard Java programming part, and make a simple example to read/parse simple JSON response, then I could play with making MegaCellCharger's JSON reply parsing.

Anonymous
Wed 15 Sep 2021 02:06:46 PM UTC, comment #1: 

DataExplorer does not support TCP communication actually, this is correct. Yes, it would be possible. But it would completely miss the target MegaCellCharger is developed for.

There are similar single cell charger supported by USB communication (SkyRC MC300, 4 cells) as well as AV4ms (Friedrich Mössinger, 4 cells).

I use Eclipse IDE to develop DataExplorer. There is a description how to set up a eclipse workspace (HowToSetupEclipseWorkspace). In project DataExplorer within the workspace you will find gde.comm.IDeviceCommPort.java. This interface class needs to be extended to cover TCP/HTTP requests. An implementation needs to be created and junit tests. After this is done a new device MegaCellCharger may be created as an individual project to implement all things required for the single cell charger.

I hope this first description help to lead into the right direction. Again, I am not aware if DataExplorer is really helpful and usable for the MegaCellCharger, even if ther is already a software supporting this device.

Winfried Brügmann <brueg>
Group administrator
Wed 15 Sep 2021 08:45:51 AM UTC, original submission:  

There is such kind of charger:
https://megacellcharger.com/
It produces this JSON data (in attachments too) on simple HTTP get request:
https://pastebin.com/VcGttA0Y

So it provides data using TCP socket, which I could  not find examples of across existing plugins (they use serial, usb native, file)

Just in case, HTTP headers of reply:
< HTTP/1.1 200 OK
< Content-Type: text/json
< Content-Length: 4834
< Connection: close

I could imagine to poll the URL and store current reply to a file by overwriting it in an external script. This file later could be read by DataExlorer.

How it could be possible to add its support to Data Explorer?
If you could suggest a best way and point me to proper direction, I could try to do that.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #51919:  get_cells_info added by None (5KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by brueg (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-28 brueg Open/ClosedOpen Closed
    2021-09-15 None Attached File- Added get_cells_info, #51919

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code