![]() |
#16 |
Jack O' Apes
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
You might have something there I wonder if there is something different in the html at that site.
The output that I get from there in the eb1150 window is identical to what I get with other sites but it ends and the socket closes after several 4092 byte chunks followed by an odd sized ending chunk. Then the reader displays the page. The other links do the same thing but after the odd sized chunk I start getting those 0 byte length ones and socket never closes. Off to look at the html from ebookwise.com. |
![]() |
![]() |
![]() |
#17 | |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
What port does eb1150 connect to? In proxy1150.cpp line 203, it gets set and line 210, it gets printed out. Is it 127.0.0.1:9090? And impserve is 127.0.0.1:9090? Just poking to see if there's life... ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Jack O' Apes
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
eb1150 is connecting to 127.0.0.1:9090
I was looking at the code in proxy1150.cpp and this looks like it should prevent any data that is 0 bytes being sent. Once it finds the end of the string it should close the socket, I think. Maybe some of the data coming out of impserve isn't null terminated. Code:
if (data.length() > 0) { // Parse and dispatch to the proxy methods if (data.find("gethostbyname") != string::npos) { gethostbyname(data); } else if (data.find("socket") != string::npos) { socket(data); } else if (data.find("connect") != string::npos) { connect(data); } else if (data.find("send") != string::npos) { send(data); } else if (data.find("recv") != string::npos) { recv(data); } else if (data.find("close") != string::npos) { close(data); } } |
![]() |
![]() |
![]() |
#19 | |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
I tried to debug eb1150 (by placing debug printf's after each if segment to print the data); this is the code I used: Code:
if (data.length() > 0) { // Parse and dispatch to the proxy methods if (data.find("gethostbyname") != string::npos) { cout << "1: " << data << " gethostname\n"; gethostbyname(data); } else if (data.find("socket") != string::npos) { cout << "2: " << data << " socket\n"; socket(data); } else if (data.find("connect") != string::npos) { cout << "3: " << data << " connect\n"; connect(data); } else if (data.find("send") != string::npos) { cout << "4: " << data << " send\n"; send(data); } else if (data.find("recv") != string::npos) { cout << "5: " << data << " recv\n"; recv(data); } else if (data.find("close") != string::npos) { cout << "6: " << data << " close\n"; close(data); } } Now where to look further... BTW, I think I remember seeing all those 0 byte message when first using Linreb with hyperlinks to the internet, so it may very well be a eb1150 (linux usb driver) issue. Is there a way to use the ETI (windows) usb driver with wine and bypass eb1150? |
|
![]() |
![]() |
![]() |
#20 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Need to do more debugging... Last edited by nrapallo; 09-05-2008 at 12:42 PM. |
|
![]() |
![]() |
![]() |
#22 | |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
If you want to see what HTTP header information impserve is getting, try inserting the following debug statements after line 211 in "impserve/__init__.py": Code:
#temp debug statements for header and body of request print self.headers print info |
|
![]() |
![]() |
![]() |
#23 | |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
I started eb1150 and the EBW1150 connected flawlessly with the ETI servers (see detailed log below) but when I tried to use impserve everything was fine until I accessed real world urls (see simple log below)! I don't know why one way works and the other way it sends 0 bytes at the end (continuously) after accessing a link to the internet. Ashish? The one thing I do see is that the ETI communications were without the "HTTP://" prefix and whereas the "real world" urls have it. The local proxy for *.ebooksytem.net excepted! ![]() Last edited by nrapallo; 09-08-2008 at 01:22 PM. |
|
![]() |
![]() |
![]() |
#24 |
Jack O' Apes
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
I did a little more digging on this problem before I left it. I didn't save any of the output but if you change proxy1150.cpp so that it is showing whats coming into and out it. The eternal URLs are being processed but its like ashkulz thought. It looks like for some reason even after all the data is finished there seems to be more when there really isn't. All of the html is being sent right down to the last </html> tag. I didn't really try too hard to figure out what is really happening because transfering my books to the ebw-1150 reader works without a hitch so far with the orignal code. For now that is enough for me.
Below is the code that I changed if I remember correctly its been a few days. Code:
// Pass the received data from the content server to the device void Proxy1150::recv(string &data) { vector<string> data_vector; split(data, data_vector, 5); int buffer_size = atoi(data_vector[4].c_str()); char buffer[4092] = ""; int ret; ret = ::recv(_socket, buffer, buffer_size, 0); if (ret < 0) { cerr << "Error: Recv failed (errno = " << errno << ")\n"; nak(data_vector[1], "0"); } else { string buf_str; buf_str.assign(buffer, ret); cout << "Recv: " << ret << " byte(s)\n"; // added the next line so I could see what was being moved around cout << "buffer str " << buf_str << " content\n"; ack(data_vector[1], buf_str); } } |
![]() |
![]() |
![]() |
#25 | |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
![]() ![]() Let's hope this can easily be fixed. |
|
![]() |
![]() |
![]() |
#26 |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
impserve and eb1150 usb driver now working in linux!!!
Great news!
Learned from ashkulz recently that the null bytes error when using the eb1150 usb driver with impserve in linux is a thing of the past. I just verified this for myself using Ubuntu 8.04. Accessing the internet from the links in your content/index.html now fully work; as it does for the links within a .imp ebook. Only thing missing is direct .imp creation support; ![]() ![]() |
![]() |
![]() |
![]() |
#27 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
For those interested in the reason why it failed earlier: the problem was that some servers sent a 'Content-Length' which was more than the actual data, and the ebook went on waiting ... I've fixed that in ebookutils-0.7 from a bug report from nrapallo for Munsey's, and it seems to work well everywhere
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic G:RSS: Optimized Google Reader (RSS) for the Nook [BETA Testers needed] | Fmstrat | Barnes & Noble NOOK | 24 | 12-28-2010 12:22 PM |
Putting stuff on my EBW-1150 | Bleumoon_Selene | Fictionwise eBookwise | 3 | 02-14-2010 08:54 AM |
Can anyone suggest a hard case for the eBw 1150? | the7gerbers | Fictionwise eBookwise | 8 | 02-19-2009 05:31 PM |
clock hack for EBW 1150??? | the7gerbers | Fictionwise eBookwise | 1 | 02-18-2009 10:32 AM |
New USB driver for ebw 1150 | kgian | Fictionwise eBookwise | 0 | 12-06-2007 12:32 PM |