-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getInfoData() function not returning info for Tracer Model A, here's the fix. #4
Comments
Hello, Working with a 3210A and get "Timeout on reading from serial port" from the getInfoData function. |
Yes, I had to compile the xr_usb_serial_common-1a kernel module in order to enable the RS-485 protocol, I got it from https://github.com/kasbert/epsolar-tracer.git I had to get the kernel-header files installed before it would compile. I also has to remove the cdc_acm module before adding the kernel module, Good luck |
Hello, Took your advice. Had a problem with the header part and found the cause and solution ini a program called rpi-source. After running the program, I, compiled and installed the driver easily. |
I edited using "sudo vi /etc/rc.local" and added the rm/insmod. There is On Wed, Aug 24, 2016 at 8:49 AM, jimlynnjulian [email protected]
|
Hello, let me thank you for your simple library at first. |
I have a 3210A as well and when I run example_cli.php I get this:
Any ideas? I compiled the driver on an Asustor AS1002T Arm based NAS brynn :-) |
Hi brynn, the other parts are working? 2016-11-07 3:04 GMT+01:00 Brynn Neilson [email protected]:
|
Brynn, |
Thanks guys. I found my issue. I thought the device was at /dev/ttyS1 but it was at /dev/ttyXRUSB0 - doh! Here's the output: `Info Data00 Manufacturer: EPsolar Tech co., Ltd Rated Data00 PV array rated voltage: 100V RealTime Data00 PV array voltage: 13.88V Statistical Data00 Max input voltage today: 14.79V Settings Data00 Battery type: 1 Coils Data00 Manual control the load: 1 Discrete Data00 Over temperature inside device: 0 |
I am having trouble getting the cable supplied by EPSolar to be recognised. After following all these instructions and also giving this alternative a go: http://indilib.org/forum/general/1085-baader-diamond-steeldrive-not-working.html?start=12 The only device I have is /dev/ttyAMA0 I can see the USB device being detected when plugged in as "Exar Device" Not sure where to go from here... |
What are you plugging into, a Raspberry Pi? If so, you should have '/dev/ttyXRUSB0'. |
For the RPi, the linux headers have to be re-compiled before the driver can be compiled. If you're not using a RPi, then I can't help you. If the Exar UART is being recognized, the cable is probably fine unless there is a reason why you think not. |
Yeah I am using RPi, The driver compiled fine. Cable being recognised but not showing as '/dev/ttyXRUSB0' which is also what I was expecting. I must be doing something wrong but cant figure out what... |
Hello,
If the driver was not compiled with new headers, it will not work. Did you run the rpi-source program to re-compile the system headers?
Cogito ergo sum. - René DesCarte ~1665
("I think, therefore I am")
Sum ergo cogito. - Google ~2014
("So I'm thinking...")
… On Jan 18, 2017, at 4:32 PM, bonkas ***@***.***> wrote:
Yeah I am using RPi, The driver compiled fine. Cable being recognised but not showing as '/dev/ttyXRUSB0' which is also what I was expecting. I must be doing something wrong but cant figure out what...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
hello,
If the driver is good, all you have to do is remove the default driver module and insert the Exar driver module. The you should see '/dev/ttyXRUSB0' in your list.
Cogito ergo sum. - René DesCarte ~1665
("I think, therefore I am")
Sum ergo cogito. - Google ~2014
("So I'm thinking...")
… On Jan 18, 2017, at 4:32 PM, bonkas ***@***.***> wrote:
Yeah I am using RPi, The driver compiled fine. Cable being recognised but not showing as '/dev/ttyXRUSB0' which is also what I was expecting. I must be doing something wrong but cant figure out what...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yeah I used the rpi-source application before I built the driver. I am rebuilding the file now, will check for typos in /etc/rc.local as explained above and see what happens. |
Try a manual removal and insertion of modules. If that works, the automation may be the problem.
sudo rmod cdc-acm
sudo insmod /path/to/xr_usb_serial_common.ko
Cogito ergo sum. - René DesCarte ~1665
("I think, therefore I am")
Sum ergo cogito. - Google ~2014
("So I'm thinking...")
… On Jan 18, 2017, at 4:50 PM, bonkas ***@***.***> wrote:
Yeah I used the rpi-source application before I built the driver.
It is being recognised...
/dev/bus/usb/001/006 - Exar_Corp._XR21B1411_H7180876441
Just not showing as '/dev/ttyXRUSB0'...
I am rebuilding the file now, will check for typos in /etc/rc.local as explained above and see what happens.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hmmm have noticed the raspberry pi reboots upon inserting the cable after loading this driver. |
I have made progress here... The USB device is now showing correctly!
Is there any way to make this changer permanent? |
Hello,
There are a couple of ways. Using rc.local is one. You mentioned that. Have you tried using the rc.local option? The most common would probably be a cronjob. Google linux cron for more. The rc.local option is considered to be obsolete or deprecated and replaced by systemd services and daemons. Systemd is not built into Raspbian and has to be downloaded.
Jim J
Cogito ergo sum. - René DesCarte ~1665
("I think, therefore I am")
Sum ergo cogito. - Google ~2014
("So I'm thinking...")
… On Jan 19, 2017, at 3:45 AM, bonkas ***@***.***> wrote:
I have made progress here... The USB device is now showing correctly!
Although to get this to happen I have to run these commands in sequence - admittedly I am not 100% on thier full function:
rmmod cdc-acm modprobe -r usbserial modprobe usbserial insmod ./xr_usb_serial_common.ko
Is there any way to make this changer permanent?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I recently ran update and upgrade on my RPi. Afterward, the Epever service I wrote would not run. The driver would not load. I recompiled the headers and driver and the driver ran for a day. Currently, attempts to manually load the driver result in a 'file exists' message and a list of running modules includes the Exar driver. However, when I list the TTY, the Exar driver is not on the list. The upgrade is the first time since the current installation of Raspbian. I'm thinking that has something to do with the problem. Anyone have any ideas? |
I'm having exactly the same issue. Did you move from kernel 3.x to 4.x? |
Linux raspberrypi 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux |
If the Rpi-Source script is no longer useful, I'll use a copy of Raspbian I put on DVD a few months ago, and not make any upgrades. Hopefully, updates will have no effect. My next step will, if I don't run across another option, be to re-record my SD card and start over. I'm going to keep searching though, that seems draconian for the moment. |
But wait! I just rebooted the RPi and, while the driver was not loaded, a manual load succeeded and the data's being recorded. I ran Rpi-Source again an got a message stating the kernel was fine. One thing I did do differently was to remove all of the driver related files created in the first compile (several months ago). Then I recompiled. The reboot must have reset something because the driver is working now. |
I got mine reading the data now.. Except it is not reading the manufacturer for some reason. This way of reading the data gives me the manufacturer but no other data... https://github.com/kasbert/epsolar-tracer EDIT: Doh re-read the thread title and the first post... |
This is how I resolved having to manually insert the driver in each boot... Copy my kernel module to the drivers directory. $ sudo cp mymodule.ko /lib/modules/$(uname -r)/kernel/drivers/ Add the simple name of my module to the file /etc/modules. You can edit the file or just append to it as shown here. $ echo 'mymodule' | sudo tee -a /etc/modules Update the list of module dependencies. $ sudo depmod Reboot the computer and voila, it worked. |
Hello toggio, |
Hi, Did you get this to work? I'm trying to figure out if the EPIPC-COM is actually using modbus as it's MPPT Tracer-siblings Regards, |
Hi. Did You manage to communicate with the EPIPC-COM ? I am trying now, but get broken data. |
Hello,
If you pull data too fast, some data gets skipped.
Try slowing down your transfer rate.
Cogito ergo sum.
René Descartes circa 1685
“I think, therefore, I am.”
Sum ergo cogito.
Google 2004
“So, I’m thinking...”
… On Apr 6, 2020, at 12:46 PM, audunbrekke ***@***.***> wrote:
EPIPC-COM
Hi. Did You manage to communicate with the EPIPC-COM ? I am trying now, but get broken data.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Ok. I have been trying with baud rate 9600. Is'nt it the right baud rate ? Or do you mean delay in write / read commands in the software ? |
Hello,
The software you're using to pull data may need to use a time delay loop.
Cogito ergo sum.
René Descartes circa 1685
“I think, therefore, I am.”
Sum ergo cogito.
Google 2004
“So, I’m thinking...”
… On Apr 6, 2020, at 2:22 PM, audunbrekke ***@***.***> wrote:
Ok. I have been trying with baud rate 9600. Is'nt it the right baud rate ? Or do you mean delay in write / read commands in the software ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Confirming this fix in the first post works on a raspi3b - connected via socat to an ebox-wifi-01 in STA mode to my home wifi. Info Data00 Manufacturer: EPsolar Tech co., Ltd
|
i have a TriRon 3210N and tracer 1210AN. when i enable debug php gives me this on example_web.php: DEBUG [query sent]: \x01\x2b\x0e\x01\x00\x70\x77 DEBUG [response received]: \x DEBUG [query sent]: \x01\x43\x31\x00\x00\x76\xcb\x1f DEBUG [response received]: \x DEBUG [no response] the usb device i have is Bus 001 Device 003: ID 04e2:1411 Exar Corp. XR21B1411 Both 3210N and tracer 1210AN are not working :/ Mybe someone could help me? |
Have you tried the Epever app to know for sure you can communicate with the
devices using USB on that computer?
When you get no answer, it could be anything such as wrong 485 settings.
So I would advise to get some communication to work first with the devices
before using the more fancy SW to use it.
That will give you confidence that you have a good physical connection
(proper wires connected), with the right speed settings.
I think that (from memory) if you put a serial / 485 monitor running on
your side, you should see some traffic on your computer coming from the
device.
Basically it might think it's talking to the remote display for instance,
and just send some data on a regular basis.
That might be a way to check that things are working.
Good luck. Post your findings.
…On Sun, Oct 9, 2022 at 6:49 AM Isi ***@***.***> wrote:
@aaronrryan <https://github.com/aaronrryan>
i have a tracer 3210N and tracer 1210AN.
Installed drivers and they are showing as /dev/ttyXRUSB0
when i enable debug php gives me this on example_web.php:
DEBUG [query sent]: \x01\x2b\x0e\x01\x00\x70\x77 DEBUG [response
received]: \x DEBUG [query sent]: \x01\x43\x31\x00\x00\x76\xcb\x1f DEBUG
[response received]: \x DEBUG [no response]
the usb device i have is Bus 001 Device 003: ID 04e2:1411 Exar Corp.
XR21B1411
Mybe someone could help me?
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABK4I2KZNGVV2F6AHOIDH33WCLENNANCNFSM4CMX4LYQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
yes the cable works fine, i used the cable with windows 11 and the epever software to configure the devices, they show up properly on windows. but i cant get it work on the pi. there musst be something i am missing out, mybe it dosent work with the pi 4? |
Good that the cable works.
You might check in case the cable shows up as two different devices.
See what
lsusb
in a terminal window shows
also
dmesg | grep -i USB
after you plug the cable.
google the modprobe commands. There's one more command I forgot to give a
regular user access to a device.
But basically, your cable has a usb to serial (485 here) adapter chip in
it. You want the driver for that device to be loaded. Which seems to be the
case here, as you ended up with a "tty" device.
But there are speed settings, possibly parity settings... for the 485 port.
In your windows program, check how they are set when you connect the cable
to the epever.
You will want to set the same settings when running from the Pi.
I went a different way on my side, with a 485 to wifi adapter (all solar
stuff is outside), and I had a windows server running, so I consume the
data from there. But the Chinese 485-wifi adapter was a pain to configure
right (it has its own settings) to get a connection going.
A serial monitor tool (on the Pi one could pipe the output of the tty
device to the console, or connect a console to the tty device. Type some
commands, see if you get any answer.
…On Mon, Oct 10, 2022 at 2:40 AM Isi ***@***.***> wrote:
@TerryFrench <https://github.com/TerryFrench>
yes the cable works fine, i used the cable with windows 11 and the epever
software to configure the devices, they show up properly on windows. but i
cant get it work on the pi.
i compiled the driver on the pi and the usb device is showing correctly
/dev/ttyXRUSB0.
but using the software gives me DEBUG [response received]: \x
there musst be something i am missing out
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABK4I2N3HT2SADTW2ZHY6X3WCPQAPANCNFSM4CMX4LYQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Just for the record, the Epever Triron 4210 is a plugin replacement for the Tracer 3210 when using this software. (aaronrryan variant). |
I was able to fix it by editing the getInfoData() function in PhpEpsolarTracer.php
and changing line number 263:
from: $string = preg_replace('/[\f\r]/u', ' - ', $result);
to: $string = preg_replace('/[\f\r\v]/', ' - ', $result);
And now it'll work with Tracer Model A, specifically Tracer2210A.
-= Tracer Info =-
Manufacturer EPsolar Tech co., Ltd
Model Tracer2210A
Version V01.12+V02.11C
The text was updated successfully, but these errors were encountered: