Android Question Please help me wrap these libraries (in java) to run on B4A

NGUYEN TUAN ANH

Active Member
Licensed User

I want to wrap these source codes to create additional libraries for B4A to serve the purpose of scientific research on GNSS satellite positioning technology in Vietnam
I only have a small budget of 30$, please help me
Thank you very much.
1729739349769.png
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
You will not be able to use this java codes with b4i as b4i does not use java-language.

For the NTRIP-Client i can´t help. I wrote one in the past for a Customer. But as it was a paid Job i can not give out the Library.
 
Last edited:
Upvote 0

NGUYEN TUAN ANH

Active Member
Licensed User
Bạn sẽ không thể sử dụng mã Java này với b4i vì b4i không sử dụng ngôn ngữ Java.

Đối với NTRIP-Client, tôi không thể giúp được. Tôi đã từng viết một cái cho một Khách hàng. Nhưng vì đó là Công việc được trả lương nên tôi không thể cung cấp Thư viện.
PS. i have url "https://14.238.1.125:2101", when i open it on chrome browser it will automatically let me download the file "download" to my computer, could you please help me code in B4A to get this file
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

teddybear

Well-Known Member
Licensed User
Upvote 0

Sandman

Expert
Licensed User
Longtime User
The server speaks http 0.9, which is a headerless response. I have no idea if it's possible to use that out of the box with the current http libraries we have. It should be very possible to just grab it using standard network communication though, you just have to craft the GET command, which is basic stuff.

For reference, here's how to get the data using curl:
Bash:
sandman@mothership:~ curl http://14.238.1.125:2101/
curl: (1) Received HTTP/0.9 when not allowed
sandman@mothership:~ curl --http0.9 --verbose http://14.238.1.125:2101/
*   Trying 14.238.1.125:2101...
* Connected to 14.238.1.125 (14.238.1.125) port 2101 (#0)
> GET / HTTP/1.1
> Host: 14.238.1.125:2101
> User-Agent: curl/7.88.1
> Accept: */*
>
SOURCETABLE 200 OK
Server: GNSS Spider 7.7.1.9072/1.0
Date: Thu, 24 Oct 2024 12:38:23 GMT
Content-Type: text/plain
Content-Length: 2322

STR;VRS.105M6;VRS.105M6;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.105M3;VRS.105M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.103M3;VRS.103M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.104M3;VRS.104M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.104_30M3;VRS.104_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.104_45M3;VRS.104_45M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.105_30M3;VRS.105_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.105_45M3;VRS.105_45M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.106M3;VRS.106M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.106_15M3;VRS.106_15M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.106_30M3;VRS.106_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.107M3;VRS.107M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.107_15M3;VRS.107_15M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.107_30M3;VRS.107_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.107_45M3;VRS.107_45M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.108M3;VRS.108M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.108_15M3;VRS.108_15M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.108_30M3;VRS.108_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.111M6;VRS.111M6;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
STR;VRS.WGS84;VRS.WGS84;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20.67;105.53;1;1;Leica GNSS Spider;none;B;Y;9600;
ENDSOURCETABLE
* Closing connection 0
 
Upvote 0

NGUYEN TUAN ANH

Active Member
Licensed User
Máy chủ nói http 0.9, đây là phản hồi không có tiêu đề. Tôi không biết liệu có thể sử dụng nó ngay với các thư viện http hiện tại mà chúng ta có hay không. Tuy nhiên, có thể chỉ cần lấy nó bằng giao tiếp mạng tiêu chuẩn, bạn chỉ cần tạo lệnh GET, đây là lệnh cơ bản.

Để tham khảo, đây là cách lấy dữ liệu bằng curl:
Bash:
sandman@mothership:~ curl http://14.238.1.125:2101/
curl: (1) Đã nhận HTTP/0.9 khi không được phép
sandman@mothership:~ curl --http0.9 --verbose http://14.238.1.125:2101/
* Đang thử 14.238.1.125:2101...
* Đã kết nối tới cổng 14.238.1.125 (14.238.1.125) 2101 (#0)
> NHẬN / HTTP/1.1
> Máy chủ: 14.238.1.125:2101
> Tác nhân người dùng: curl/7.88.1
> Chấp nhận: */*
>
CÓ THỂ NGUỒN 200 OK
Máy chủ: GNSS Spider 7.7.1.9072/1.0
Ngày: Thứ năm, ngày 24 tháng 10 năm 2024 12:38:23 GMT
Loại nội dung: văn bản/thuần túy
Nội dung-Độ dài: 2322

STR;VRS.105M6;VRS.105M6;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.105M3;VRS.105M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.103M3;VRS.103M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.104M3;VRS.104M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.104_30M3;VRS.104_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.104_45M3;VRS.104_45M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.105_30M3;VRS.105_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.105_45M3;VRS.105_45M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.106M3;VRS.106M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.106_15M3;VRS.106_15M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.106_30M3;VRS.106_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.107M3;VRS.107M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.107_15M3;VRS.107_15M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.107_30M3;VRS.107_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.107_45M3;VRS.107_45M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.108M3;VRS.108M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.108_15M3;VRS.108_15M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.108_30M3;VRS.108_30M3;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.111M6;VRS.111M6;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
STR;VRS.WGS84;VRS.WGS84;RTCM 3;;2;GPS+GLO+GAL+BDS+QZSS;DoSM;;20,67;105,53;1;1;Leica GNSS Spider;không có;B;Y;9600;
BẢNG NGUỒN CUNG CẤP CUỐI CÙNG
* Đóng kết nối 0
[/MÃ SỐ]
[/QUOTE]
Thank you, but i want to do it with B4A Code
 
Upvote 0
Top