Difference between revisions of "BCAT services"

From Nintendo Switch Brew
Jump to navigation Jump to search
Line 1: Line 1:
 
BCAT (Background Content Asymmetric synchronized delivery and Transmission) encompasses a set of content download/upload related services.
 
BCAT (Background Content Asymmetric synchronized delivery and Transmission) encompasses a set of content download/upload related services.
  
= BCAT services =
+
= bcat:a, bcat:m, bcat:u, bcat:s =
Equivalent to 3DS BOSS(SpotPass). See [[BCAT_Content_Container|here]] for BCAT-content-container.
+
These are "nn::bcat::detail::ipc::IServiceCreator".
  
== bcat:u ==
+
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name
 +
|-
 +
| 0 || CreateBcatService
 +
|-
 +
| 1 || CreateDeliveryCacheStorageService
 +
|-
 +
| 2 || CreateDeliveryCacheStorageServiceWithApplicationId
 +
|}
  
== bcat:s ==
+
Equivalent to 3DS BOSS(SpotPass). See [[BCAT_Content_Container|here]] for BCAT-content-container.
  
== bcat:m ==
+
= <nowiki>news:a, news:c, news:m, news:p, news:v</nowiki> =
 +
These are <nowiki>"nn::news::detail::ipc::IServiceCreator"</nowiki>.
  
== bcat:a ==
+
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name
 +
|-
 +
| 0 ||
 +
|-
 +
| 1 ||
 +
|-
 +
| 2 ||
 +
|-
 +
| 3 ||
 +
|-
 +
| 4 ||
 +
|}
  
= News services =
+
= prepo:a, prepo:m, prepo:u, prepo:s =
 +
These are "nn::prepo::detail::ipc::IPrepoService".
  
== <nowiki>news:p</nowiki> ==
+
{| class="wikitable" border="1"
 
+
|-
== <nowiki>news:v</nowiki> ==
+
! Cmd || Name
 +
|-
 +
| 10100 || SaveReport
 +
|-
 +
| 10101 || SaveReportWithUser
 +
|-
 +
| 10200 || RequestImmediateTransmission
 +
|-
 +
| 10300 || GetTransmissionStatus
 +
|-
 +
| 20100 || SaveSystemReport
 +
|-
 +
| 20200 || [4.0.0+] SetOperationMode
 +
|-
 +
| 20101 || SaveSystemReportWithUser
 +
|-
 +
| 30100 || ClearStorage
 +
|-
 +
| 40100 || IsUserAgreementCheckEnabled
 +
|-
 +
| 40101 || SetUserAgreementCheckEnabled
 +
|-
 +
| 90100 || GetStorageUsage
 +
|-
 +
| 90200 || [5.0.0+] GetStatistics
 +
|-
 +
| 90201 || [5.0.0+] GetThroughputHistory
 +
|-
 +
| 90300 || [5.0.0+] GetLastUploadError
 +
|}
  
== <nowiki>news:m</nowiki> ==
+
== Data reporting ==
 
 
== <nowiki>news:c</nowiki> ==
 
 
 
== <nowiki>news:a</nowiki> ==
 
 
 
 
 
= Play Report services =
 
 
The "Play Report" (prepo) service uploads system and user information to a cloud server.
 
The "Play Report" (prepo) service uploads system and user information to a cloud server.
 
This includes the following fields:
 
This includes the following fields:
Line 46: Line 92:
 
It also checks the validity of the device's authentication token using the following URL:<br>
 
It also checks the validity of the device's authentication token using the following URL:<br>
 
* <nowiki>https://dauth-%.ndas.srv.nintendo.net/v1/device_auth_token</nowiki>
 
* <nowiki>https://dauth-%.ndas.srv.nintendo.net/v1/device_auth_token</nowiki>
 
== prepo:u ==
 
 
== prepo:s ==
 
{| class="wikitable" border="1"
 
|-
 
! Cmd || Name
 
|-
 
| 10100 ||
 
|-
 
| 10101 ||
 
|-
 
| 10200 ||
 
|-
 
| 10300 ||
 
|-
 
| 20100 ||
 
|-
 
| 20101 ||
 
|-
 
| 30100 ||
 
|-
 
| 40100 ||
 
|-
 
| 40101 ||
 
|-
 
| 90100 ||
 
|}
 
 
== prepo:m ==
 
 
== prepo:a ==
 
  
 
[[Category:Services]]
 
[[Category:Services]]

Revision as of 20:03, 27 March 2018

BCAT (Background Content Asymmetric synchronized delivery and Transmission) encompasses a set of content download/upload related services.

bcat:a, bcat:m, bcat:u, bcat:s

These are "nn::bcat::detail::ipc::IServiceCreator".

Cmd Name
0 CreateBcatService
1 CreateDeliveryCacheStorageService
2 CreateDeliveryCacheStorageServiceWithApplicationId

Equivalent to 3DS BOSS(SpotPass). See here for BCAT-content-container.

news:a, news:c, news:m, news:p, news:v

These are "nn::news::detail::ipc::IServiceCreator".

Cmd Name
0
1
2
3
4

prepo:a, prepo:m, prepo:u, prepo:s

These are "nn::prepo::detail::ipc::IPrepoService".

Cmd Name
10100 SaveReport
10101 SaveReportWithUser
10200 RequestImmediateTransmission
10300 GetTransmissionStatus
20100 SaveSystemReport
20200 [4.0.0+] SetOperationMode
20101 SaveSystemReportWithUser
30100 ClearStorage
40100 IsUserAgreementCheckEnabled
40101 SetUserAgreementCheckEnabled
90100 GetStorageUsage
90200 [5.0.0+] GetStatistics
90201 [5.0.0+] GetThroughputHistory
90300 [5.0.0+] GetLastUploadError

Data reporting

The "Play Report" (prepo) service uploads system and user information to a cloud server. This includes the following fields:

sys_info
data
application_id
event_id
operation_mode
lc_recorded_at (followed by a timestamp)
nc_recorded_at (followed by a timestamp)
nsa_id
os_version

And the contents of the following file:

is_user_agreement_check_enabled.bin

All the information is periodically uploaded to the following URL:

  • https://receive-%.dg.srv.nintendo.net/post

It also checks the validity of the device's authentication token using the following URL:

  • https://dauth-%.ndas.srv.nintendo.net/v1/device_auth_token